Forum: Inkscape JPEG-compress embedded images in PDF

F4a804fbb24172b2bbdd8f17b5dc1b63?d=identicon&s=25 Tristan Miller (Guest)
on 2007-04-09 18:15
(Received via mailing list)
Greetings.

The PDF files generated by Inkscape are unacceptably large when the
document contains bitmap graphics.  (An A5 book cover I just did is over
33 megabytes -- far too large to publish online.)  I presume this is
because Inkscape is embedding raw bitmaps into the PDF file, rather than
using JPEG compression.

Is there a tool which will postprocess a PDF file to convert the
embedded
bitmaps to embedded JPEGs?  I would prefer something free (GPL or the
like) and available for GNU/Linux.

Regards,
Tristan

--
   _
  _V.-o  Tristan Miller [en,(fr,de,ia)]  ><  Space is limited
 / |`-'  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  <>  In a haiku, so it's hard
(7_\\    http://www.nothingisreal.com/   ><  To finish what you


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p...
42fcdcc46c4ad56fd0abbbc15d9dca81?d=identicon&s=25 Florian Ludwig (Guest)
on 2007-04-09 18:38
(Received via mailing list)
Am Montag, den 09.04.2007, 17:13 +0100 schrieb Tristan Miller:
>
> Is there a tool which will postprocess a PDF file to convert the
> embedded
> bitmaps to embedded JPEGs?  I would prefer something free (GPL or the
> like) and available for GNU/Linux.

I dont no such a tool, sorry. Perhaps you may work around the problem by
using OpenOffice.org to generate the pdfs. If you import an image to OOo
make sure you "link" to it. So you can reexport the image with inkscape
if you chaned something and dont need to reimport it in your openoffice
document.

Florian Ludwig
979333bd98940bb1d40aefb1820fcfa9?d=identicon&s=25 Bryce Harrington (Guest)
on 2007-04-09 18:50
(Received via mailing list)
On Mon, Apr 09, 2007 at 05:13:07PM +0100, Tristan Miller wrote:
> like) and available for GNU/Linux.
You might try pdftk.  I don't know if it has recompression capabilties,
but it's got quite a few capabilities for re-processing PDF files.

http://www.accesspdf.com/pdftk/

Bryce

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p...
2cb59b460a7d0e5fdf6a037279395205?d=identicon&s=25 Bats Man (bats)
on 2007-04-09 19:25
(Received via mailing list)
> Is there a tool which will postprocess a PDF file to convert the embedded
> bitmaps to embedded JPEGs?  I would prefer something free (GPL or the
> like) and available for GNU/Linux.
>
Or build your PDF in Scribus, I hear it's PDF-oriented.
I'm pretty sure there are cli tools to extract images from PDF files and
they
can then be imagemagicked, but getting them back *into* the PDF is not
something I know about.

/d

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p...
F4a804fbb24172b2bbdd8f17b5dc1b63?d=identicon&s=25 Tristan Miller (Guest)
on 2007-04-09 22:35
(Received via mailing list)
Greetings.

In article <20070409164911.GB31981@bryceharrington.org>, Bryce
Harrington
wrote:
>> Is there a tool which will postprocess a PDF file to convert the
>> embedded
>> bitmaps to embedded JPEGs?  I would prefer something free (GPL or the
>> like) and available for GNU/Linux.
>
> You might try pdftk.  I don't know if it has recompression capabilties,
> but it's got quite a few capabilities for re-processing PDF files.

I've got that (one of my favourite programs, in fact); it doesn't
transcode
embedded images.

Regards,
Tristan

--
   _
  _V.-o  Tristan Miller [en,(fr,de,ia)]  ><  Space is limited
 / |`-'  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  <>  In a haiku, so it's hard
(7_\\    http://www.nothingisreal.com/   ><  To finish what you


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p...
F4a804fbb24172b2bbdd8f17b5dc1b63?d=identicon&s=25 Tristan Miller (Guest)
on 2007-04-09 22:36
(Received via mailing list)
Greetings.

In article <20662484.du6kY4JJE0@polecat.worldsocialism.org>, Tristan
Miller
wrote:
> The PDF files generated by Inkscape are unacceptably large when the
> document contains bitmap graphics.  (An A5 book cover I just did is over
> 33 megabytes -- far too large to publish online.)  I presume this is
> because Inkscape is embedding raw bitmaps into the PDF file, rather than
> using JPEG compression.
>
> Is there a tool which will postprocess a PDF file to convert the embedded
> bitmaps to embedded JPEGs?  I would prefer something free (GPL or the
> like) and available for GNU/Linux.

I just discovered a tool which does what I want: PStill
<http://www.pstill.com/>.  It is available for several platforms in
command-line and GUI versions, though it is not free software.

I still think that there must be some way of doing this with
Ghostscript,
but I haven't as yet figured it out.

Regards,
Tristan

--
   _
  _V.-o  Tristan Miller [en,(fr,de,ia)]  ><  Space is limited
 / |`-'  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  <>  In a haiku, so it's hard
(7_\\    http://www.nothingisreal.com/   ><  To finish what you


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p...
5000d09f0668690684d8279ffbd2374e?d=identicon&s=25 Maarten van der Velde (Guest)
on 2007-04-10 08:47
(Received via mailing list)
And what about printing to pdf? In PDFCreator I believe you can set
compression ratios and the like? So no "export" to it, just PRINT to
PDF?

PDFCreator is available from sourceforge.net, although I'm not sure if
it is for non-WIN platforms.
84334e784ca6274fd0ee76c52b9795e8?d=identicon&s=25 pro ton (proton)
on 2012-02-02 11:15
Hi,

Why don't you use ghostscript to compress the pdf?

As an example see the

http://www.itechies.net/blog/archives/1764 (Ghostscript on Windows,
English)



A little bit more extensive bash-scripts (therefore for Linux) also
using ghostscripts can be found here

http://www.alfredklomp.com/programming/shrinkpdf/

http://blog.tenstral.net/2010/05/pdfs-verkleinern.html

and here

https://dr-luthardt.de/linux.htm?tip=pdfshr

Regards
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.