PageZoom.FitWidth Question

PageZoom.FitWidth Question

Forum member · Nov 9, 2005
Hello, I am evaluating DynamicPDF for .Net -- great product. I anticipate using this product primarily for the web-tier. Accordingly, using document.DrawToWeb -- how do I PageZoom.FitWidth on the initial load. I read in your help files how it was done with outlines; however I do not have an outline. Can I automatically FitWidth without using Outlines?

Re:PageZoom.FitWidth Question

Forum member · Nov 9, 2005
Oh -- One more thing - this is for CSharp

Re:PageZoom.FitWidth Question

Support · Nov 9, 2005
Hello, You can surely set the PageZoom.FitWidth on initial load of the document without using the Outlines. All you need to do is set the document objects InitialZoom property to the PageZoom enumerations FitWidth value. Here is the code snippet: C#: ceTe.DynamicPDF.Document document = new ceTe.DynamicPDF.Document(); document.InitialPageZoom = ceTe.DynamicPDF.PageZoom.FitWidth; document.DrawToWeb(this, "HelloWorld.pdf"); Thanks, ceTe Software Support Team

Re:PageZoom.FitWidth Question

Forum member · Nov 9, 2005
Thanks ceTe -- I will give that a try.