View Single Post
Old 01-24-2009, 06:15 PM   #4
Jim Lester
Evangelist
Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.
 
Jim Lester's Avatar
 
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
Quote:
Originally Posted by Juggle4Evr View Post
That's a bit of an overkill...
I agree it is a bit much, if all you are going to use it for is just changing the titles, but it will definitely do that as well

Quote:
Originally Posted by Juggle4Evr View Post
I just found out that I can overwrite the title with a hex editor, a bit unconvenient but it works.
A couple of thoughts:
1.) The title can be maintained in multiple places. The InfoDict which you have most likely found, and the XMP Metadata, which you may not have. Although most of the PDF viewers out there only look at the InfoDict, use of the XMP metadata is becoming more common. Search for "/Title" to find the correct InfoDict entry, and "title>" for the XMP metadata. (it will usually be in a "<dc:title>" element but different producers may deal with the namespaces differently).

2.) Make sure you don't change the size of the string when you change the title, by adding spaces if you decrease it and making sure not to add to size. A PDF is a series of objects with the location of each object pointed to a by the XREF table. If you change the size of an object (such as the InfoDict), the offsets of the following objects in the XREF table will no longer be correct. Depending upon how much you change the size of the string and the tolerances of the viewer that you are using, the file will end up being considered corrupt.

Hopefully someone else can turn up with a better solution for you.
Jim Lester is offline   Reply With Quote