Hmmmm... I tried viewing my PDF on windows in foxit pdf view and it's great!
Evince under ubuntu is rubbish and shows all the half-tone style dithering and the rest.
However I can't put all the blame there, I have a PDF of a document this one was derived from, using many of the same images and it still displays fine, and from the artifacts when zooming closely, must be using JPEG (and it's a much smaller file).
So I'm guessing that the PS/PDF internal image format I'm now getting from TeXmacs is different such that
1. images are larger
2. when converted to pdf, display badly in evince pdf viewer (but as PS display fine).
I don't have any record of how big the .ps files used to be.
I'll try and find an ubuntu 10.10 machine I can run pstopdf on and see if that produces PDF of a normal size.
Sam
On 12/05/11 11:53, Sam Liddicott wrote:
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.