Re: ToUnicode table in subset font not correct?

2011-05-03 Thread mehdi houshmand
Hi Chris, No not quite. The patch attached to bugzilla 51144, works in trunk as it should and has no dependence on TrueTypeInPostScript. However, when I initially created the patch, I also made quite a few changes, code improvements etc, that do depend on changes made within the TrueTypeInPostScri

Re: ToUnicode table in subset font not correct?

2011-05-03 Thread Chris Bowditch
On 03/05/2011 13:44, mehdi houshmand wrote: Hi Medhi, Just for future reference, the change hasn't been made in the patch to bug 50483. I made the change while implementing full CIDMap embedding as a feature for the TrueTypeInPostScript branch and have yet to finish implementation of this featu

RE: PDF size reduction

2011-05-03 Thread Roberto Cahanap
Thank you everybody for responding. So based on the responses, we need to change the quality of the JPG first and then create the PDF. I'll research around for an app that will allow me to do this programmatically. Thank you again! -Roberto From: Giuseppe Briotti [mailto:g.brio...@gmail.com]

Re: ToUnicode table in subset font not correct?

2011-05-03 Thread mehdi houshmand
Just for future reference, the change hasn't been made in the patch to bug 50483. I made the change while implementing full CIDMap embedding as a feature for the TrueTypeInPostScript branch and have yet to finish implementation of this feature. Hopefully I will get the chance to finish it, but it's

RE: PDF size reduction

2011-05-03 Thread Eric Douglas
It should depend on how the image is referenced, if it's embedding the image once in the document, if it's referenced multiple times and embedding it multiple times, or if it's an external link. The obvious answer if you don't care about quality is to reduce the size of the image before you try to

RE: Change bars

2011-05-03 Thread Eric Douglas
I'm currently drawing lines with xslfo code programatically, so yes I do it with absolute positioning and it may be difficult to do if you need to print something without absolute positioning. I had started out trying to set a border on a block to draw a line and ended up drawing the block as such

Re: PDF size reduction

2011-05-03 Thread TvT
Hi, i agree with Michael - reducing the image size is the key. We had this problem once with huge TIFF files which can (after scanning) easily have a size of 50MB or bigger. With the java image io we converted those pics into TIFF-G4 standard which are greatly reduced in size (kb level). Afterwar

Re: ToUnicode table in subset font not correct?

2011-05-03 Thread ruud grosmann
On 03/05/2011, mehdi houshmand wrote: > Hi Ruud, > > Yes this is a bug, which has been fixed in my patch, but since I... Hi Mehdi, I'm very glad to hear the problem is known. I have filed a bug report. https://issues.apache.org/bugzilla/show_bug.cgi?id=51144 I hope the description is not too b

Re: ToUnicode table in subset font not correct?

2011-05-03 Thread mehdi houshmand
Hi Ruud, Yes this is a bug, which has been fixed in my patch, but since I didn't think anyone else had bumped into it I didn't want to put it into trunk since I also made some code improvements to the class and was weary that it could cause merge issues when/if the branches are merged. The issue

Re: Change bars

2011-05-03 Thread Chris Bowditch
On 02/05/2011 20:57, Fredrik Bengtsson wrote: Hi Fredrik, You mean absolutely positioned AT blocks, not fo:blocks? Right, I thought I'd do something like that. It'd be hard to solve at the FO level at any rate, for corner cases like tables, indented/nested blocks or variablelists. Do you mea

Re: PDF size reduction

2011-05-03 Thread Giuseppe Briotti
2011/5/3 Giuseppe Briotti > > > 2011/5/3 Michael Rubin > >> If you aren't bothered about image quality, then (albeit not knowing >> what format the image is currently) can you not use something like high JPEG >> compression on the graphics? This will dramatically reduce the image size >> and th

Re: PDF size reduction

2011-05-03 Thread Pascal Sancho
What FOP version do you use? until FOP 0.94 (IIRC), color profile was systematically included in PDF. Now, when sRGB profile is used, it is not embedded in PDF. Removing color profile will reduce PDF size. Le 03/05/2011 09:09, Pascal Sancho a écrit : > Hi, > > There is no mechanism to reduce gra

Re: PDF size reduction

2011-05-03 Thread Giuseppe Briotti
2011/5/3 Michael Rubin > If you aren't bothered about image quality, then (albeit not knowing what > format the image is currently) can you not use something like high JPEG > compression on the graphics? This will dramatically reduce the image size > and therefore the PDF size. > > Thanks. > > -

Re: PDF size reduction

2011-05-03 Thread Michael Rubin
If you aren't bothered about image quality, then (albeit not knowing what format the image is currently) can you not use something like high JPEG compression on the graphics? This will dramatically reduce the image size and therefore the PDF size. Thanks. -Mike On 02/05/11 16:12, Roberto Cah

Re: PDF size reduction

2011-05-03 Thread Pascal Sancho
Hi, There is no mechanism to reduce graphic size in FOP. You have to optimize it before running FOP. You should find tools that can resample bitmap images in a batch process. Le 02/05/2011 17:12, Roberto Cahanap a écrit : > Hello fop users! > > Is there a way in FOP to reduce the size of the PD