Start page in adobe reader

Start page in adobe reader

Forum member · Mar 29, 2008
Hi, when my pdf reports get shown i Adope Reader, the page that is shown first, is page 2 ??? (also problems with change of zoomlevel) I have tried/looked at InitialPage and InitialPageMode, with no luck. Regards... (Adobe Reader 8.1.2, ASP.NET V. 2)

Re: Start page in adobe reader

Support · Mar 31, 2008
Hello, In order to set the Initial page zoom you will have to use the InitialPageZoom property of the document object. Following is the sample line of code for this. document.InitialPageZoom = PageZoom.FitHeight; Please make sure that you have the latest build of our product. We are able to set the initial page using the InitialPage property of the document without any problem. You can download the latest build from our CustomerArea by logging in using your current serial number. Thanks, ceTe Software Support Team.

Re: Start page in adobe reader

Forum member · Mar 31, 2008
Hello, thanks, got InitialPageZoom to work, but I still have problems with InitialPage. (still starts with page 2, nine times out af ten) document.InitialPage = 1; document.InitialPageZoom = PageZoom.FitHeight; document.InitialPageZoom = PageZoom.FitWidth; document.DrawToWeb("test.pdf"); DynamicPDF for .NET 2.0 - Server Edition, Version 4.0.3.20 Regards...

Re: Start page in adobe reader

Support · Mar 31, 2008
Hello, We did some more testing rendering static PDF documents using BinaryWrite method of the Response object and noticed the same behavior. So its Acrobat that is causing this behavior more likely. We viewed the output PDF from our product and it is pointing to the right page at which the PDF document should be opened. So nothing within our product is causing this behavior to occur. Below is the sample code we used for testing: FileInfo fInfo = new FileInfo(@"C:\Temp\DocumentA.pdf"); long numBytes = fInfo.Length; FileStream fStream = new FileStream(@"C:\Temp\DocumentA.pdf", FileMode.Open, FileAccess.Read); BinaryReader bReader = new BinaryReader(fStream); byte [] data = bReader.ReadBytes((int)numBytes); Response.ContentType = "application/pdf"; Response.BinaryWrite(data); Thanks, ceTe Software Support Team.

Re: Start page in adobe reader

Forum member · Apr 7, 2008
So is there any type of work around or anything we can do? I am having the same problem. The PDFs I can creating are confusing other people because they are opening to page two. thanks

Re: Start page in adobe reader

Support · Apr 7, 2008
Since this is a behavior being demonstrated by Acrobat's opening of the PDF documents, then this is something that you may need to investigate specifically with Adobe. In our component you can specify the page number to open the PDF document on but it is up to the PDF viewer to read that and open the correct page. Thanks, ceTe Software Support Team

Re: Start page in adobe reader

Forum member · Nov 5, 2008
I had a similar problem and solved it by Setting the InitialPage=1 after the InitialPageZoom ASP.NET 1.1 and PDF Merger 4.0.0.0 document.InitialPageZoom =PageZoom.FitWidth; document.InitialPage =1; document.DrawToWeb("Test1.pdf"); Response.End();