Comment 4 for bug 1341549

Revision history for this message
Jon Aske (4fgf6v-jon-50eaa2) wrote : Re: [Bug 1341549] Re: calibre bug 1341549

I know this is not a high priority for some, but let me press on, if I may.
For some of us, this is important. I have a feeling this swelling of the
PDF file after embedding metadata may have to do with the saving of the
book COVER image file to the book in some form, probably highly
uncompressed. Could it be? It's the only thing I can think of. I can send
you a couple of PDF's where after obtaining metadata (including covers)
from the usual places (Google, Amazon), and embedding it, the PDF file
swells by about 0.5MB. If I then enter the file with Adobe Acrobat and do a
Save As Reduced-Size PDF, things get back to normal size. So, some kind of
compressing done by Acrobat seems to undo the swelling of the PDF file.

On Mon, Jul 14, 2014 at 11:08 AM, Kovid Goyal <email address hidden>
wrote:

> I cannot reproduce this. Steps I tried:
>
> 1) Download a minimal PDF file:
> http://brendanzagaeski.appspot.com/minimal.pdf (739 bytes)
> 2) Add it to calibre and add some metadata
> 3) Use the embed metadata tool
> 4) The PDF filesize becomes 17KB (an increase of ~16KB nowhere near
> 500KB)
>
> Embedding metadata embeds *all* the mettadata for that book present in
> calibre, this means all the standard fields,m comments and all custom
> columns. Assuming you dont have a book sized comments field pdf filesize
> will typically increase by 10-20KB.
>
> status invalid
>
> ** Changed in: calibre
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1341549
>
> Title:
> Embed Metadata for PDF consistently adds 0.5MB to book size
>
> Status in calibre: e-book management:
> Invalid
>
> Bug description:
> I have noticed that the much awaited Embed Metadata button for PDF's
> (thank you, Kovid!) quite consistently (though not always) adds 0.5MB
> to book size, way more than would have been expected (a 1.1MB book
> becomes a 1.6MB book, for example).
>
> Interestingly, this 0.5MB can be then made disappear by resaving the
> pdf with Adobe Acrobat Professional, for example.
>
> Not sure what's going on, but it does seem like a bug and not a design
> feature, though I am not sure exactly what is being embedded or how.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1341549/+subscriptions
>