AppendPDF and initial page

AppendPDF and initial page

Forum member · Mar 17, 2009
Dear ladies and sirs, we're using the Enterprise-Version and try to do merge four PDF-files (each has only one page) to one new PDF-file. This works fine - but if I open some of the resulting PDFs then initially their last page is displayed instead of the first one. In some other cases (other source-PDF-files) it works fine. Here's a snippet of the code how we have realized this in VB6: 'Create a new document Set MyDocument = CreateObject("DynamicPDF.Document") 'get the first filename strFileName = Dir(strSourcePath & "*.PDF") If StrComp(strFileName, strDestinationFile, vbTextCompare)=0 Then strFileName = Dir End If 'Load the first document Call MyDocument.LoadPdf(strSourcePath & strFileName) 'get all other files in the directory strFileName = Dir Do Until strFileName = "" If StrComp(strFileName, strDestinationFile, vbTextCompare)<>0 Then Call MyDocument.AppendPdf(strSourcePath & strFileName) End If strFileName = Dir Loop 'save the resulting fiel MyDocument.DrawToFile (strSourcePath & strDestinationFile) Please let me know what I can do to ensure that on opening the created PDF-file it always displays its first page. Thanks for your efforts in advance. Regards, Dirk Flakowski

Re: AppendPDF and initial page

Support · Mar 17, 2009
Hello Dirk, Currently it is not possible to set the initial page using the v4.0 of our COM/ActiveX product when opening a PDF document. We will add this feature in our next version v5.0 of our product. But currently we do not have any immediate plans on this. Thanks, ceTe Software Support Team.

Re: AppendPDF and initial page

Forum member · Mar 17, 2009
Dear Support Team, but why does it then work sometimes correctly and sometimes not? Or could I maybe make any change to my code so that it always works fine? Thanks for your efforts in advance. Regards, Dirk

Re: AppendPDF and initial page

Support · Mar 17, 2009
Hello Dirk, There is nothing in our product which causes this behavior of showing the last page when PDF opened. There is nothing related to the code you are using. This depends on the Reader which renders the PDF. This is coming from the Acrobat. Thanks, ceTe Software Support Team.