Hi,
I know that it is possible to add keywords using wPDF - you just set the Info.Keywords property.
Is it possible to create custom properties of a PDF - for example "Project Name", with value "Some Project"?
Thanks,
Peter
Hi,
I know that it is possible to add keywords using wPDF - you just set the Info.Keywords property.
Is it possible to create custom properties of a PDF - for example "Project Name", with value "Some Project"?
Thanks,
Peter
Hi,
Yes this is possible since wPDF V2.50.
The Info property has a strings property, too.
Example:
Info.Strings.Add('Project' + projectname );
Julian
Thanks - great news!
Is there an upgrade path from 1.40 to 2.50?
ie. Is there a cost involved, or are upgrades free?
And are all properties / methods backward compatible?
Thanks,
Peter
Hi,
V2.x is backwards compatible. It uses a new EMF to PDF conversion which works much better than in V1.
The upgrade link is
http://shareit1.element-5.de/cart.html?PRODUCT[175506]=1&language=English
Julian
Hi Julian,
You wrote that custom properties can be set with code like this:
Info.Strings.Add('Project' + projectname );
How does this allow setting a PDF custom property?
A custom property has both a name and a value, so I would expect a function like:
Info.AddCustomProperty('Project', projectname);
(where projectname is the value assigned to custom property 'Project')
I downloaded the demo to see if this is obvious, and there is no TWPPDFPrinter.Info.Strings property.
(But the demo uses version 2.05, not 2.50.)
Thanks,
Peter
Hi,
My mistake:
WPDFPrinter1.Info.Strings.Add('Project=' + projectname );
// note the =
I just (29.1.2005) posted a new demo which includes the new properties and the new DLL. It also includes the Delphi 2005 Win32 support.
Julian Ziersch