ViewPreference

ViewPreference

Forum member · Oct 23, 2008
How do I set the initial view properites for zoom for "Fit to Width" and for navigation bookmarks? I am using the professional version. From the VB merge example, I tried the following, and it did not work. Private Sub DrawMergePDF() Dim objDoc As DynamicPDF.Document Set objDoc = New DynamicPDF.Document '*************************************** ' my changes objDoc.InitialZoom = DPDF_Zoom_FitWidth objDoc.ViewerPreferences.HideWindowUI = False '*************************************** objDoc.Creator = "MergePDFs.asp" objDoc.Author = "Your Name" objDoc.Title = "Merge PDFs" objDoc.LoadPdf App.Path & "/PDFs/DocumentA.pdf" ' Append additional PDF objDoc.AppendPdf App.Path & "/PDFs/DocumentB.pdf" objDoc.AppendPdf App.Path & "/PDFs/DocumentC.pdf" ' Append 3 MyPages from an aditional PDF objDoc.AppendPdf App.Path & "/PDFs/DocumentD.pdf", 1, 3 ' Outputs the merged document to the current web MyPage objDoc.DrawToFile (App.Path & "\MergePDFs.pdf") MergePDF.Navigate (App.Path & "\MergePDFs.pdf") End Sub Thanks, GA

Re: ViewPreference

Support · Oct 23, 2008
Hello GA, Try adding the following line of code and see if that helps fixing the problem. <!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> Thanks, ceTe Software Support Team

Re: ViewPreference

Forum member · Oct 23, 2008
I apologize for the confusion. I am not running VBScript; I am using VB6. I just clipped the code from the example project. Thanks, GA