Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Large document size

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Large document size


Chronological Thread 
  • From: "Sam Liddicott" <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Large document size
  • Date: Thu, 12 May 2011 11:53:16 +0100
  • Envelope-to:
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAADxQTFRF NTdQY2Z/i286eHFugnNXoJBwm5GCs5VeoqO0ua+fwLCQ4c2q19C81NDF4eLr/unQ/PTf/fXW+/rq /f/7XKo76wAAAAlwSFlzAAALEwAACxMBAJqcGAAAAi9JREFUSMetloGSqyAMRVsFNAQkxP//15cE 62rFdt/MZqbTVu/hBhLEx/qf8fgDIAN455wHyPk7wCIe9nA+fwGSH87hgD8AHPfRpy2GwdMtcBh+ mg4Ech9Ih+RNixJKDLEL0GF8VLkSojePHrDlryNijbFW8zBg8PUKbBOI6D1WCV5Rf2DzxCtgBlMs tRRVW5LyVW3ew1TfAZZ6RcQicpb4yZmaC74DJADK6BdATOrUAbJzsZie+K22ZnEBknNYysvhVH6u 1X8CqAe4DuANoPoOrAbsHXUARJ5knc5z4EyyTnHoAqj7xvkYIdk65AwhyEZKMusOIDV2QQQaCnDQ gBiDR3RdIEb5CBESt2wgQJI0Yx/Agphg1MgNsD+QkszM9wHVPx/PeQOW+fmcR9DF8+4CyCJhCuP8 fDzmBbLqs8JzMODqYNfDvKhoGYM2lDosy5jlRozccRAgrPM8iygQS3Mv87IugUgKlC7NZ6liuy4r uresVq5QuQAr09ZKEga8OkluyKXeQ6Bs3SrtqgC1pWLNqAfwDhBnB+sK8OrVL4D4h1B4zWPWhJhu gPUHKA5EwSMYUMsdQK+UKDhIOTSHeg+8HCoTOGtB/gwcl4mSdGybwXegPWhM/RHYKwchkckhUNMX 6j7ueQNScLbZZOPRxaADyO2UQCJpl7wbnE6gQ+ksWjpngxOwF1tF5ecP3R6KB+AQxPfHLncQ+nKw 06fhu68OTIfJ869eTtg22l+9zfwDK3mKl5BFHMYAAAAASUVORK5CYII=


On 11/05/11 19:39, Sam Liddicott wrote:
I have a 48 page TeXmacs document, and many of which have images which are screen-shots and so not very high resolution - I think all are less than 800 pixels wide.

The png image source directory and .tm file come to under 9MB, and the document uses only about half of those images.

The exported post-script is 280MB and the PDF is 40MB - which are horrific sizes.

(I'm using latest git repository from git://gitorious.org/texmacs/texmacs.git)

I tried compiling with --enable-pdf-renderer but then pdf export fails with:


** WARNING ** Failed to load AGL file "pdfglyphlist.txt"...
** WARNING ** Failed to load AGL file "glyphlist.txt"...
/home/sam/.TeXmacs/system/tmp/tmp_2009563087.pdf
/home/sam/.TeXmacs/system/tmp/tmp_514256944.pdf
** ERROR ** TFM: Invalid TFM ID: -1

Does anyone have any tips on reducing the PDF size? I tried changing from 600dpi to 300dpi but it only saved 2MB on the PDF

I'm quite certain from the PDF view (where the screen shots are a bit washed out and have a funny interference pattern) that the images are being scaled up and even screened in some way, which is why the post script is so big.


Changing the dpi for the printer settings affected the relative size of the images in the document :-( so I had to change back.

Further examination lays the blame with pstopdf, although I guess a png decoder could have been embedded in the post-script which would have kept the .ps file small - and myabe the PDF small too, although I still have to investigate what the PDF is doing.

This link talks about png decoders in post-script.
http://www.tek-tips.com/viewthread.cfm?qid=1050035&page=7

Here is a slice of one of my images:
http://mail.liddicott.com/blotchy-2-orig.png

It looks just as fine in the post-script view.

And here is a screenshot from my PDF viewer at 400%
http://mail.liddicott.com/blotchy-2.png

The areas of solid 24 bit colour have been dot-ified, some kind of hatching or other dithering it seems.

The change I observe may be different defaults for pstopdf as I have just upgraded my ubuntu release.

Sam



Archive powered by MHonArc 2.6.19.

Top of Page