RE: Changes in pdf tiff compression configuration has no effect on size of pdf generated
I am using FOP version 1.1. I tried the following configurations, listed below. Let me know if any further information is required. Variant 1 renderer mime=image/tiff !--transparent-page-backgroundtrue/transparent-page-background-- !--compressionNONE/compression-- /renderer Variant 2 renderer mime=image/tiff !--transparent-page-backgroundtrue/transparent-page-background-- compressionNONE/compression /renderer Variant 3 renderer mime=image/tiff !--transparent-page-backgroundtrue/transparent-page-background-- compressionPackBits/compression /renderer Variant 4 renderer mime=image/tiff color-modergba/color-mode !--transparent-page-backgroundtrue/transparent-page-background-- compressionPackBits/compression /renderer Variant 5 renderer mime=image/tiff color-modergba/color-mode !--transparent-page-backgroundtrue/transparent-page-background-- renderingtrue/rendering compressionPackBits/compression /renderer Variant 6 renderer mime=image/tiff color-modergba/color-mode transparent-page-backgroundtrue/transparent-page-background renderingtrue/rendering compressionPackBits/compression /renderer
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Hi! Some more information from how to compress images in PDF can see here: http://xmlgraphics.apache.org/fop/1.1/configuration.html#pdf-renderer Bye, Szeak - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Yes Registar man is correct ! if your output is pdf, you can't use the renderer/tif I mentioned earlier. However, you can remove the pdf image compression by using something similar to ( according to what your ultimate goal is ) : renderer mime=application/pdf filterList type=image valuenull/value /filterList/renderer /renderers By using it on a example pdf with a simple tif (with LZW comp), the pdf's size went up from 40 kb to more than 600kb.Thanasis Date: Tue, 28 Jan 2014 12:52:12 +0100 From: szea...@gmail.com To: fop-users@xmlgraphics.apache.org Subject: Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated Hi! Some more information from how to compress images in PDF can see here: http://xmlgraphics.apache.org/fop/1.1/configuration.html#pdf-renderer Bye, Szeak - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Ignore my previous message I haven't seen your last email when posted. Thanasis Date: Tue, 28 Jan 2014 14:10:35 +0100 Subject: Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated From: valentina.cu...@tp.rs To: fop-users@xmlgraphics.apache.org Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB.The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList!-- provides compression using zlib flate (default is on) --valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size --!-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Hi! So, I think the FOP working mechanism is: By rendering the output it uncompress and rendering the images into the document. Because of you need to define the PDF settings i sent before for recompresing used images in the pdf. I don't use these settings ever, i just think it working as i wrote above. Bye Szeak - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Tiff image - color distortion
Hi I am including Tiff image in Pdf output. The problem is that it is not rendering the image correctly. For example, the original Tiff image has much stronger contrast (i.e. some very dark sections, some very light sections), whilst the pdf output image appears more greyish and noisy. Is this a known issue? Also I looked here: http://xmlgraphics.apache.org/fop/1.1/graphics.html#tiff FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image. There may be some limitation concerning images in the CMYK color space. Could someone explain the meaning of those sentences. Thanks.
Re: Tiff image - color distortion
Additional information - the input tiff image has the following properties: Horizontal resolution: 96dpi Vertical resolution: 96dpi Bit depth: 16 Compression: Uncompressed The image is grayscale type, there's no color. Are there any special settings which should be applied to make it render correctly in a pdf report? 2014-01-28 Valentina valent...@tp.rs Hi I am including Tiff image in Pdf output. The problem is that it is not rendering the image correctly. For example, the original Tiff image has much stronger contrast (i.e. some very dark sections, some very light sections), whilst the pdf output image appears more greyish and noisy. Is this a known issue? Also I looked here: http://xmlgraphics.apache.org/fop/1.1/graphics.html#tiff FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image. There may be some limitation concerning images in the CMYK color space. Could someone explain the meaning of those sentences. Thanks.
Re: Tiff image - color distortion
I had tried the following: * Setting resolution to 96 * Trying out different values of scaling-method for fo:external-graphic Configuration pages describe settings for tiff image renderer, but I assume all those would NOT be used in my case, only pdf renderer... 2014-01-28 Valentina Cupac valentina.cu...@tp.rs Additional information - the input tiff image has the following properties: Horizontal resolution: 96dpi Vertical resolution: 96dpi Bit depth: 16 Compression: Uncompressed The image is grayscale type, there's no color. Are there any special settings which should be applied to make it render correctly in a pdf report? 2014-01-28 Valentina valent...@tp.rs Hi I am including Tiff image in Pdf output. The problem is that it is not rendering the image correctly. For example, the original Tiff image has much stronger contrast (i.e. some very dark sections, some very light sections), whilst the pdf output image appears more greyish and noisy. Is this a known issue? Also I looked here: http://xmlgraphics.apache.org/fop/1.1/graphics.html#tiff FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image. There may be some limitation concerning images in the CMYK color space. Could someone explain the meaning of those sentences. Thanks.
Re: Tiff image - color distortion
Hi! I do not agree with the colors, but these setting may can help for you: Another (optional) setting specific to the PDF Renderer is an output color profile, an ICC color profile which indicates the target color space the PDF file is generated for. This setting is mainly used in conjunction with the PDF/X http://xmlgraphics.apache.org/fop/1.1/pdfx.html feature. An example: renderer mime=application/pdf filterList... output-profileC:\FOP\Color\EuropeISOCoatedFOGRA27.icc/output-profile fonts /renderer 2014-01-28 Valentina valent...@tp.rs I had tried the following: * Setting resolution to 96 * Trying out different values of scaling-method for fo:external-graphic Configuration pages describe settings for tiff image renderer, but I assume all those would NOT be used in my case, only pdf renderer... 2014-01-28 Valentina Cupac valentina.cu...@tp.rs Additional information - the input tiff image has the following properties: Horizontal resolution: 96dpi Vertical resolution: 96dpi Bit depth: 16 Compression: Uncompressed The image is grayscale type, there's no color. Are there any special settings which should be applied to make it render correctly in a pdf report? 2014-01-28 Valentina valent...@tp.rs Hi I am including Tiff image in Pdf output. The problem is that it is not rendering the image correctly. For example, the original Tiff image has much stronger contrast (i.e. some very dark sections, some very light sections), whilst the pdf output image appears more greyish and noisy. Is this a known issue? Also I looked here: http://xmlgraphics.apache.org/fop/1.1/graphics.html#tiff FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image. There may be some limitation concerning images in the CMYK color space. Could someone explain the meaning of those sentences. Thanks.
Re: Tiff image - color distortion
I'll try to find a suitable color profile. In the meantime, a related question is whether it is possible to embed images with pdf:embedded-file (displaying image, rather than link), to bypass any effects in rendering, i.e. to render a tiff image as-is? 2014-01-28 szeak33 szea...@gmail.com Hi! I do not agree with the colors, but these setting may can help for you: Another (optional) setting specific to the PDF Renderer is an output color profile, an ICC color profile which indicates the target color space the PDF file is generated for. This setting is mainly used in conjunction with the PDF/X http://xmlgraphics.apache.org/fop/1.1/pdfx.html feature. An example: renderer mime=application/pdf filterList... output-profileC:\FOP\Color\EuropeISOCoatedFOGRA27.icc/output-profile fonts /renderer 2014-01-28 Valentina valent...@tp.rs I had tried the following: * Setting resolution to 96 * Trying out different values of scaling-method for fo:external-graphic Configuration pages describe settings for tiff image renderer, but I assume all those would NOT be used in my case, only pdf renderer... 2014-01-28 Valentina Cupac valentina.cu...@tp.rs Additional information - the input tiff image has the following properties: Horizontal resolution: 96dpi Vertical resolution: 96dpi Bit depth: 16 Compression: Uncompressed The image is grayscale type, there's no color. Are there any special settings which should be applied to make it render correctly in a pdf report? 2014-01-28 Valentina valent...@tp.rs Hi I am including Tiff image in Pdf output. The problem is that it is not rendering the image correctly. For example, the original Tiff image has much stronger contrast (i.e. some very dark sections, some very light sections), whilst the pdf output image appears more greyish and noisy. Is this a known issue? Also I looked here: http://xmlgraphics.apache.org/fop/1.1/graphics.html#tiff FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image. There may be some limitation concerning images in the CMYK color space. Could someone explain the meaning of those sentences. Thanks.
Re: SVG - embedded CMYK bitmaps
Yes, by default JPEG CMYKs are converted to sRGB if the color profile is embedded in the image (I had not tried with JPEG CMYKs embedded in SVG but I think that also there the images are processed by FOP ). The reason this is done is due to the fact that the standard Java JPEG handling functions cannot handle CMYK. So FOP converts CMYK to sRGB to be able to embed the image with acceptable colors. The solution is to use a ImageIO library that can handle CMYK in JPEGs. The default jai_imageio.jar cannot handle that either. The only one I know is the TwelveMonkeys ImageIo. I tested it with JPEGs and also TIFF and it worked well. See http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201306.mbox/%3c51ba5640.1070...@gmail.com%3E. On 1/28/14, 9:09 PM, Matthias Reischenbacher wrote: Hi, I've noticed that JPEGs with DeviceCMYK color space, embedded in SVGs, are converted to sRGB when generating a PDF file. Does that happen with all kind of JPEG CMYKs? How are embedded bitmaps processed? Is that done by Batik and that's way its handled differently than normal fo:external-graphic CMYK-JPEGs? Thanks for any clarification on this matter... I've attached a sample SVG file. Best regards, Matthias - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Tiff image - color distortion
Two questions about CMYK on the same day! The JDK JPEG image handling functions cannot handle CMYK. If the images include a color profile then FOP can convert the images to RGB. To get FOP generate a PDF with images that preserve the CMYK colors you need to use a ImageIO library like TwelveMonkeys. Get it, compile it and place the JPEG related jar in the FOP lib directory (note that you will also need to add some of the core jars). On 1/28/14, 5:12 PM, Valentina wrote: Hi I am including Tiff image in Pdf output. The problem is that it is not rendering the image correctly. For example, the original Tiff image has much stronger contrast (i.e. some very dark sections, some very light sections), whilst the pdf output image appears more greyish and noisy. Is this a known issue? Also I looked here: http://xmlgraphics.apache.org/fop/1.1/graphics.html#tiff FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image. There may be some limitation concerning images in the CMYK color space. Could someone explain the meaning of those sentences. Thanks. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Note that the images use compression internally. If the image loader selected by FOP to process your image is the default ImageIO one (i.e., not a native FOP image loader) the image will be uncompressed. If then you turn off PDF stream compression, then yes, you should end up with a much larger file. Maybe you can explain why you do not want compression? On 1/28/14, 1:10 PM, Valentina Cupac wrote: Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com mailto:szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org mailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org mailto:fop-users-h...@xmlgraphics.apache.org
Re: altova stylevision fop rtf
Are you using trunk or 1.1? This example does not run with 1.1 as is. On 1/28/14, 3:56 PM, edi4988 wrote: Thank you for your help. I fixed the problem. You were right . I appreciate your time and help. Now, I use this example http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java but I have an error in this part: * // configure fopFactory as desired final FopFactory fopFactory = FopFactory.newInstance(new File(.).toURI());* this is my error: *The method newInstance() in the type FopFactory is not applicable for the arguments (URI)* Do you know why I have the error? Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/altova-stylevision-fop-rtf-tp4825p39916.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
The reason I didn't want compression is as follows: * My external Tiff image (96dpi, Bit-depth: 16, Compression: Uncompressed) wasn't rendering correctly, so I thought a possible reason could be compression * The next possible reason could be something about color profiles, which was the motivation for my other thread So the basic issue is that a grayscale image appears incorrectly in pdf (it appears washed out, lower contrast, more noisy) and I don't know what the cause is, and the above were the potential reasons that came to mind. 2014-01-29 Luis Bernardo lmpmberna...@gmail.com Note that the images use compression internally. If the image loader selected by FOP to process your image is the default ImageIO one (i.e., not a native FOP image loader) the image will be uncompressed. If then you turn off PDF stream compression, then yes, you should end up with a much larger file. Maybe you can explain why you do not want compression? On 1/28/14, 1:10 PM, Valentina Cupac wrote: Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Tiff image - color distortion
That is what I would like to do to preserving the original image. Just to clarify, you mentioned JDK JPEG image handling, is that what needs to be used for Tiff image handling (in my report I have just Tiff images), and if so, do any settings need to modified in the fop.xconf file? -- Forwarded message -- From: Luis Bernardo lmpmberna...@gmail.com Date: 2014-01-29 Subject: Re: Tiff image - color distortion To: fop-users@xmlgraphics.apache.org Two questions about CMYK on the same day! The JDK JPEG image handling functions cannot handle CMYK. If the images include a color profile then FOP can convert the images to RGB. To get FOP generate a PDF with images that preserve the CMYK colors you need to use a ImageIO library like TwelveMonkeys. Get it, compile it and place the JPEG related jar in the FOP lib directory (note that you will also need to add some of the core jars). On 1/28/14, 5:12 PM, Valentina wrote: Hi I am including Tiff image in Pdf output. The problem is that it is not rendering the image correctly. For example, the original Tiff image has much stronger contrast (i.e. some very dark sections, some very light sections), whilst the pdf output image appears more greyish and noisy. Is this a known issue? Also I looked here: http://xmlgraphics.apache.org/fop/1.1/graphics.html#tiff FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image I/O codec is necessary for decoding the image. There may be some limitation concerning images in the CMYK color space. Could someone explain the meaning of those sentences. Thanks. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org