Setting PDF Properties

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for COM/ActiveX (v5)  /  Re: Setting PDF Properties

DynamicPDF Generator for COM/ActiveX (v5) Forum

 May 10 2010 6:16 AM
Hi,
im Using Merger/Generator V5 ActiveX and i have that problem:
In my VB6 program I’m merging several PDFs to one PDF like that.

Set MyDocument = CreateObject("DynamicPDF.Document")
MyDocument.AppendPdf “c:\Temp\1.pdf”
MyDocument.AppendPdf “c:\Temp\2.pdf”
MyDocument.AppendPdf “c:\Temp\3.pdf"

MyDocument.Author = "Me"    ‘ to set the authio of the resulting PDF
MyDocument.Title = "Final"  ‘to set the title of the resulting PDF 
MyDocument.DrawToFile “c:\Temp\result.pdf”

1.pdf, 2.pdf and 3.pdf have different authors and titles.

When I open „result.pdf“ in acrobat reader V9 i expect to see the document author and title which I set after the append commands.

But it shows me author and title of the last appended file.
I tried it even using MergeOption object like that:

Set MyDocument = CreateObject("DynamicPDF.Document")
MyDocument.Author = "Me"    ‘ to set the authio of the resulting PDF
MyDocument.Title = "Final"  ‘to set the title of the resulting PDF
 
Set MgOptions = CreateObject( "DynamicPDF.MergeOptions" )
MgOptions. DocumentInfo =false   ‚ also with MgOptions. DocumentProperties=false
MyDocument.AppendPdf “c:\Temp\1.pdf”,,, MgOptions
MyDocument.AppendPdf “c:\Temp\2.pdf”,,, MgOptions
MyDocument.AppendPdf “c:\Temp\3.pdf”,,, MgOptions

MyDocument.Author = "Me"    ‘ to set the authio of the resulting PDF
MyDocument.Title = "Final"   ‘to set the title of the resulting PDF 

MyDocument.DrawToFile “c:\Temp\result.pdf”

But the „result.pdf“ still does not include my author and title settings.

Only when using “MgOptions.SetNone“ the „result.pdf“ includes my author and title settings !!! but a lot of content is lost.

Is there a bug or where is the error ?

Regards

 May 10 2010 7:30 AM
Posted by a ceTe Software moderator
Hello,

We are able to see the behavior you are telling about and we will forward this issue over to the developers to look into it further. We will post a message as soon as we have some information on this.

However if you are evaluating then you can try our V6 Beta and it is working fine. You can get it from our website.

Thanks,
ceTe Software Support Team.
 May 10 2010 10:36 AM
Posted by a ceTe Software moderator
Hello,

We have this issue fixed in our latest v5 product. Can you please send an email to our Support Team so that they can give you the latest build dlls which has this fix?

Thanks,
ceTe Software Support Team.
 Oct 21 2021 5:55 AM
Hi,

I want to set default Enable scrolling for pdf.Could you please suggest me
 Oct 21 2021 10:58 AM
Posted by a ceTe Software moderator
Hi,

Try setting the InitialPageLayout property of Document object to OneColumn. Please refer to the documentation on InitialPageLayout property here and DPDF_PageLayout Enumeration here

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 4:04 PM.