PDF Properties Observations

Discussions about PDF management.
Post Reply
MIKES
Posts: 49
Joined: Thu Jul 31, 2008 8:03 pm
Location: Michigan

PDF Properties Observations

Post by MIKES » Mon May 18, 2009 6:42 pm

Hi Loic,

As I am not sure I am doing this correctly I am posting my observations to see what thoughts you might have.

Been working with PdfCreateFromMultipageTIFF.
Specifically with the the Title, Author, Subject, Keywords.

Code: Select all

GdStatus = oGdPictureImaging.PdfCreateFromMultipageTIFF(MasterImageID, _
                                                                        UncPath & ".pdf", _
                                                                        True, _
                                                                        indexes.Standard_Title, _
                                                                        indexes.Standard_Person, _
                                                                        indexes.Standard_UserType, _
                                                                        pdfKeywords, _
                                                                        My.Application.Info.Title)
(1)
I looks to me that if the Title, Author, or Subject contains a comma then the resulting PDF property will be enclosed in quotes. If there is no comma, the resulting PDF Property will not be in quotes.
(Not saying that is right or wrong, just an observation)

(2)
I wanted to enter multi Line keywords, I found (by looking at a PDF created with acrobat) that 
 are used for CR/LF in the PDF Keyword field. So I do the following replace on the string read from a text file.

Code: Select all

 
pdfKeywords = pdfKeywords.Replace(Chr(13), "
")
pdfKeywords = pdfKeywords.Replace(Chr(10), "
")
This does get multiline keywords,
However the resulting PDF keywork property is duplicated. (see image)

(3)
I have also found that while the above codes do work, as with observation 1 regarding a comma, if the title, author, or subject contain an ampersand, then it messes up the implementation of the 
 and 
 codes. In the PDF keyword property field, they are displayed as text.
Attachments
pdf properties.jpg
duplicated pdf keyword

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PDF Properties Observations

Post by Loïc » Tue May 19, 2009 11:03 am

Hi Mike,

For (1) -> all seems normal for me (it's just a hint from Adobe Acrobat)

For (2) & (3) There is a small problem in the current version. This will be fixed for the next one. You will have to separate each line by CR+LF chars.


Cheers,

Loïc

MIKES
Posts: 49
Joined: Thu Jul 31, 2008 8:03 pm
Location: Michigan

Re: PDF Properties Observations

Post by MIKES » Tue May 19, 2009 1:57 pm

Thanks Loic,

Yes, I was originally just setting the PDF keywords with a text string that included CRLF.

Found that that showed up as /r/n in the PDF keywords field.

That's when I started looking and found the 
 stuff.

Mike.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests