Re: JPG to PDF conversion gives PDFs static name

Richard Neill <[email protected]>
Newsgroups gmane.comp.video.image-magick.bugs
Organization RUO3.org
Message-ID <[email protected]>

Laurin d'Volts wrote:
> Imagine I take a bunch of JPGs and turn them into a PDF file.
> Let's say the PDF file is created and called "1.pdf"
> I open it in a program, such as evince, and the recognized filename at
> the top is "1.pdf"
> 
> Well, then let's say I move that file to another folder.
> Now, I rename that file into "lab.pdf"
> 
> Now, if I open the file again inside of evince, evince appears to
> recognize it as "1.pdf" still. I don't know why this is.
> 
> It gets kind of annoying when I'm messing around with a lot of important
> documents at once. I like to see what the header is.
> 
> Now, I think this is primarily an imagemagick issues, because
> imagemagick has to give the PDF its name after converting all of those
> jpgs into a pdf.
> 
> Anyone else encounter this bug?
> Any ideas, solutions, and/or comments?




I don't think this is a bug in imagemagick at all. It's a feature of evince.

PDF documents contain a title attribute, which is inside the metadata of 
the file. This is set when the pdf is originally generated.

Renaming the file (eg with mv) doesn't change the internal metadata.
Evince then shows the title-attribute, not the filename in the window title.

3 possible workarounds:
   - use xpdf  (which always shows the filename)
   - rename your photo to "lab.jpg", before using convert.
   - use something like pdfedit to change the metadata

HTH,

Richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.