Re: PDF encryption and PDF image extension
The examples/fo/basic/images.fo example works well if you add -noprint to fop. That is: cd examples/fo/basic fop -noprint -fo images.fo -pdf images-noprint.pdf The end result shows the images and has Print disabled. So I don't think it is a FOP issue Luis On 11/16/11 7:12 PM, Matthias Reischenbacher wrote: Hi, when generating a PDF file with any of the PDF encryption parameters (noprint, nocopy etc.) PDF images (loaded by Jeremias' PDF image extension) are not displayed. Is this a limitation of the plugin or perhaps PDFbox or am I doing something wrong? See also the attached PDF files showing the issue. Thanks, Matthias - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Problem generating PDF from tifs with zero dpi
Have you tried setting the dpi in the image to something meaningful? You can use Gimp for that (assuming it will not choke with such image): Image -- Print Size..., and then set Resolution. Luis On 11/23/11 4:51 PM, qns.java wrote: Hi I am using Apache FOP to generate PDF from jpegs and tifs.When generating pdf from tifs which have a dpi of 0 an IllegalStateException : resolution mus be set is thrown. I tried setting source resolution to 96dpi on FOPFactory ,but that did not work.I am using FOP 0.95. Please advise what I am missing to do. Thankyou - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: #x200b; (Zero width space) not work
I see the ? in your source file (and in the generated PDF). Once I replace them by #x200b; they disappear from the PDF too. On 11/23/11 4:29 PM, pedro wrote: Hi i think i attach a bad file, but i see in my fo transformation that the ZWNJ is replaced by a ? Is possible is a codification problem? http://old.nabble.com/file/p32874268/fo.xml fo.xml pedro wrote: Hi all i use the#x200b; character in a table cell before i call a marker-retriever to workaround a bug(the solution is good), but the proble is that#x200b; characher is printed like a ? while i think isn't a printable character. Ani idea? [code] fo:table-cell fo:block font-family=Courier font-size=8pt text-align=center xsl:text disable-output-escaping=yes#x200b;/xsl:text fo:retrieve-marker retrieve-class-name=contr-conai retrieve-position=last-ending-within-page retrieve-boundary=page-sequence/ /fo:block /fo:table-cell [/code] i try also to put#x200b; directly in block or with ZWNJ and doesn't work. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Problem generating PDF from tifs with zero dpi
I would use imagemagik then from the command line: convert old.tif -density 300 new.tif On Thu, Nov 24, 2011 at 10:46 AM, qns.java qns.j...@gmail.com wrote: Hi The problem is, there is a huge bulk of Images that have this problem and I only have read access to these Images.I get the Image Locations from database and embed them in xml to pass on to FOP.I was trying to find out with the existing infrastructure how can I be able to generate a pdf. thankyou qns.java wrote: Hi I am using Apache FOP to generate PDF from jpegs and tifs.When generating pdf from tifs which have a dpi of 0 an IllegalStateException : resolution mus be set is thrown. I tried setting source resolution to 96dpi on FOPFactory ,but that did not work.I am using FOP 0.95. Please advise what I am missing to do. Thankyou -- View this message in context: http://old.nabble.com/Problem-generating-PDF-from-tifs-with-zero-dpi-tp32874297p32875054.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: Error when embedding PNG with iTXt metadata (text/international)
What fop version are you using? I ran your example with both the trunk and the 1.0 version and in both cases the PDF was generated with the image embedded (fop-1.0 throws a warning but still generates the PDF with the image). Luis On Fri, Nov 25, 2011 at 7:47 AM, mheigl michael.he...@yahoo.de wrote: Hi, I've a problem embedding PNGs within a PDF file. When trying to embed PNGs which are created (for example) in Adobe Photosop (using Metadata: All) FOP throws an error: Reason: org.apache.xmlgraphics.image.loader.ImageException: I/O error while extracting image metadata: Error reading PNG metadata (see position 41:110) It seems the problem is due to iTXt metadata entries - as soon as there is any iTXt metadata entry in the PNG the error is thrown. When I change iTXt to tEXt FOP creates the PDF and embeds the image I've attached a demo .fo and .png file http://old.nabble.com/file/p32875848/itxt.zip itxt.zip Thanks, Michael -- View this message in context: http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32875848.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: Error when embedding PNG with iTXt metadata (text/international)
Ok, then what is the java version and OS you are using? If you look at the error it is not really a fop error but an error in one of the libraries used by fop. I do not see the error using java 1.6.0_23. On Fri, Nov 25, 2011 at 9:45 AM, mheigl michael.he...@yahoo.de wrote: I am using FOP Version 1.0 binary. Yes, it creates the PDF but it does not embed the image lmpmbernardo wrote: What fop version are you using? I ran your example with both the trunk and the 1.0 version and in both cases the PDF was generated with the image embedded (fop-1.0 throws a warning but still generates the PDF with the image). Luis On Fri, Nov 25, 2011 at 7:47 AM, mheigl michael.he...@yahoo.de wrote: Hi, I've a problem embedding PNGs within a PDF file. When trying to embed PNGs which are created (for example) in Adobe Photosop (using Metadata: All) FOP throws an error: Reason: org.apache.xmlgraphics.image.loader.ImageException: I/O error while extracting image metadata: Error reading PNG metadata (see position 41:110) It seems the problem is due to iTXt metadata entries - as soon as there is any iTXt metadata entry in the PNG the error is thrown. When I change iTXt to tEXt FOP creates the PDF and embeds the image I've attached a demo .fo and .png file http://old.nabble.com/file/p32875848/itxt.zip itxt.zip Thanks, Michael -- View this message in context: http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32875848.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 -- View this message in context: http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32875936.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: Error when embedding PNG with iTXt metadata (text/international)
I confirm that the error exists with java 1.5.0_22. So I think if you upgrade it should go away. On Fri, Nov 25, 2011 at 10:33 AM, Luis Bernardo lmpmberna...@gmail.com wrote: Ok, then what is the java version and OS you are using? If you look at the error it is not really a fop error but an error in one of the libraries used by fop. I do not see the error using java 1.6.0_23. On Fri, Nov 25, 2011 at 9:45 AM, mheigl michael.he...@yahoo.de wrote: I am using FOP Version 1.0 binary. Yes, it creates the PDF but it does not embed the image lmpmbernardo wrote: What fop version are you using? I ran your example with both the trunk and the 1.0 version and in both cases the PDF was generated with the image embedded (fop-1.0 throws a warning but still generates the PDF with the image). Luis On Fri, Nov 25, 2011 at 7:47 AM, mheigl michael.he...@yahoo.de wrote: Hi, I've a problem embedding PNGs within a PDF file. When trying to embed PNGs which are created (for example) in Adobe Photosop (using Metadata: All) FOP throws an error: Reason: org.apache.xmlgraphics.image.loader.ImageException: I/O error while extracting image metadata: Error reading PNG metadata (see position 41:110) It seems the problem is due to iTXt metadata entries - as soon as there is any iTXt metadata entry in the PNG the error is thrown. When I change iTXt to tEXt FOP creates the PDF and embeds the image I've attached a demo .fo and .png file http://old.nabble.com/file/p32875848/itxt.zip itxt.zip Thanks, Michael -- View this message in context: http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32875848.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 -- View this message in context: http://old.nabble.com/Error-when-embedding-PNG-with-iTXt-metadata-%28text-international%29-tp32875848p32875936.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: Fail to insert png image into pdf
Probably a jar that is missing or not being found in the classpath. If you search the archives you will find that this error has been discussed in the past. There is no single solution but reading past discussions may help you fix the issue. On Sun, Dec 4, 2011 at 11:56 AM, Benjamin de Dardel benjamin.dedar...@gmail.com wrote: Hi all, As describe in this ticket, I try to transform docbook - fo - pdf : https://sourceforge.net/apps/mantisbt/ant4docbook/view.php?id=5 fo file seems to be good, because I succeed in to execute the command line : $ fop myfile.fo myfile.pdf but when I use, fo ant task, I fail to do this : impossible to include image. I always get an error : [fop] déc. 04, 2011 12:26:52 PM org.apache.fop.events.LoggingEventListener processEvent [fop] Grave: Image not available. URI: img/forum-inscription1.png. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for img/forum-inscription1.png (See position 6:264) [fop] déc. 04, 2011 12:26:52 PM org.apache.fop.events.LoggingEventListener processEvent [fop] Avertissement: Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. [fop] déc. 04, 2011 12:26:52 PM org.apache.fop.events.LoggingEventListener processEvent [fop] Avertissement: Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. [fop] déc. 04, 2011 12:26:52 PM org.apache.fop.events.LoggingEventListener processEvent [fop] Grave: Image not found. URI: img/forum-inscription1.png. (No context info available) [fop] myfile.fo - myfile.pdf Do you have any idea about this problem ? Regard, Benjamin - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Is there a master reference for FOP functionality?
http://www.w3.org/TR/xsl/ On Tue, Dec 13, 2011 at 9:54 AM, Theresa Jayne Forster ther...@inbrand.co.uk wrote: I am trying to learn all the options available to FOP but there doesn’t seem to be a reference that tells you everything, The w3schools XSL-FO reference tells you what parameters are available to a call. For instance, external-graphic below. But what I cant find is what are the valid options for the properties, ie clip in the example below. Is there a reference or list you can use for these? ** ** Kindest regards ** ** Theresa Forster Senior Software Developer ** ** *XSL-FO external-graphic Object* Syntax fo:external-graphic !-- Contents:EMPTY -- /fo:external-graphic Properties *Property [A-J]*** *Property [K-Z]*** alignment-adjust keep-with-next http://www.w3schools.com/xslfo/prop_keep-with-next.asp*** * alignment-baseline keep-with-previoushttp://www.w3schools.com/xslfo/prop_keep-with-previous.asp azimuth http://www.w3schools.com/xslfo/prop_azimuth.asp language http://www.w3schools.com/xslfo/prop_language.asp background-attachmenthttp://www.w3schools.com/xslfo/prop_background-attachment.asp left http://www.w3schools.com/xslfo/prop_left_right.asp background-colorhttp://www.w3schools.com/xslfo/prop_background-color.asp line-height http://www.w3schools.com/xslfo/prop_line-height.asp background-imagehttp://www.w3schools.com/xslfo/prop_background-image.asp margin-bottom http://www.w3schools.com/xslfo/prop_margin.asp background-repeathttp://www.w3schools.com/xslfo/prop_background-repeat.asp margin-left http://www.w3schools.com/xslfo/prop_margin.asp background-position-horizontal margin-right http://www.w3schools.com/xslfo/prop_margin.asp background-position-vertical margin-top http://www.w3schools.com/xslfo/prop_margin.asp baseline-shift overflow block-progression-dimension padding-after http://www.w3schools.com/xslfo/prop_padding.asp border-after-color http://www.w3schools.com/xslfo/prop_border_color.asp* *** padding-before http://www.w3schools.com/xslfo/prop_padding.asp border-after-style http://www.w3schools.com/xslfo/prop_border_style.asp* *** padding-bottom http://www.w3schools.com/xslfo/prop_padding.asp border-after-width http://www.w3schools.com/xslfo/prop_border_width.asp* *** padding-end http://www.w3schools.com/xslfo/prop_padding.asp border-before-color http://www.w3schools.com/xslfo/prop_border_color.asp padding-left http://www.w3schools.com/xslfo/prop_padding.asp border-before-style http://www.w3schools.com/xslfo/prop_border_style.asp padding-right http://www.w3schools.com/xslfo/prop_padding.asp border-before-width http://www.w3schools.com/xslfo/prop_border_width.asp padding-start http://www.w3schools.com/xslfo/prop_padding.asp border-bottom-color http://www.w3schools.com/xslfo/prop_border_color.asp padding-top http://www.w3schools.com/xslfo/prop_padding.asp border-bottom-style http://www.w3schools.com/xslfo/prop_border_style.asp pause-after http://www.w3schools.com/xslfo/prop_pause.asp border-bottom-width http://www.w3schools.com/xslfo/prop_border_width.asp pause-before http://www.w3schools.com/xslfo/prop_pause.asp border-end-color http://www.w3schools.com/xslfo/prop_border_color.asp*** * pitch http://www.w3schools.com/xslfo/prop_pitch.asp border-end-style http://www.w3schools.com/xslfo/prop_border_style.asp*** * pitch-range http://www.w3schools.com/xslfo/prop_pitch-range.asp border-end-width http://www.w3schools.com/xslfo/prop_border_width.asp*** * play-during http://www.w3schools.com/xslfo/prop_play-during.asp border-left-color http://www.w3schools.com/xslfo/prop_border_color.asp** ** relative-positionhttp://www.w3schools.com/xslfo/prop_relative-position.asp border-left-style http://www.w3schools.com/xslfo/prop_border_style.asp** ** richness http://www.w3schools.com/xslfo/prop_richness.asp border-left-width http://www.w3schools.com/xslfo/prop_border_width.asp** ** right http://www.w3schools.com/xslfo/prop_left_right.asp border-right-color http://www.w3schools.com/xslfo/prop_border_color.asp* *** role http://www.w3schools.com/xslfo/prop_role.asp border-right-style http://www.w3schools.com/xslfo/prop_border_style.asp* *** scaling border-right-width http://www.w3schools.com/xslfo/prop_border_width.asp* *** scaling-method border-start-color http://www.w3schools.com/xslfo/prop_border_color.asp* *** script border-start-style http://www.w3schools.com/xslfo/prop_border_style.asp* *** source-document http://www.w3schools.com/xslfo/prop_source-document.asp* *** border-start-width http://www.w3schools.com/xslfo/prop_border_width.asp* *** space-end
Re: Is there a master reference for FOP functionality?
Sorry, I think you probably meant FOP, not FO. Not everything in the spec is implemented in FOP, and I don't think there is a document that tells you what is implemented and what is not. Just by trying you will know. Luis On Tue, Dec 13, 2011 at 10:15 AM, Luis Bernardo lmpmberna...@gmail.comwrote: http://www.w3.org/TR/xsl/ On Tue, Dec 13, 2011 at 9:54 AM, Theresa Jayne Forster ther...@inbrand.co.uk wrote: I am trying to learn all the options available to FOP but there doesn’t seem to be a reference that tells you everything, The w3schools XSL-FO reference tells you what parameters are available to a call. For instance, external-graphic below. But what I cant find is what are the valid options for the properties, ie clip in the example below. Is there a reference or list you can use for these? ** ** Kindest regards ** ** Theresa Forster Senior Software Developer ** ** *XSL-FO external-graphic Object* Syntax fo:external-graphic !-- Contents:EMPTY -- /fo:external-graphic Properties *Property [A-J]*** *Property [K-Z]*** alignment-adjust keep-with-next http://www.w3schools.com/xslfo/prop_keep-with-next.asp** ** alignment-baseline keep-with-previoushttp://www.w3schools.com/xslfo/prop_keep-with-previous.asp azimuth http://www.w3schools.com/xslfo/prop_azimuth.asp language http://www.w3schools.com/xslfo/prop_language.asp background-attachmenthttp://www.w3schools.com/xslfo/prop_background-attachment.asp left http://www.w3schools.com/xslfo/prop_left_right.asp background-colorhttp://www.w3schools.com/xslfo/prop_background-color.asp line-height http://www.w3schools.com/xslfo/prop_line-height.asp background-imagehttp://www.w3schools.com/xslfo/prop_background-image.asp margin-bottom http://www.w3schools.com/xslfo/prop_margin.asp background-repeathttp://www.w3schools.com/xslfo/prop_background-repeat.asp margin-left http://www.w3schools.com/xslfo/prop_margin.asp background-position-horizontal margin-right http://www.w3schools.com/xslfo/prop_margin.asp background-position-vertical margin-top http://www.w3schools.com/xslfo/prop_margin.asp baseline-shift overflow block-progression-dimension padding-after http://www.w3schools.com/xslfo/prop_padding.asp border-after-color http://www.w3schools.com/xslfo/prop_border_color.asp padding-before http://www.w3schools.com/xslfo/prop_padding.asp border-after-style http://www.w3schools.com/xslfo/prop_border_style.asp padding-bottom http://www.w3schools.com/xslfo/prop_padding.asp border-after-width http://www.w3schools.com/xslfo/prop_border_width.asp padding-end http://www.w3schools.com/xslfo/prop_padding.asp border-before-colorhttp://www.w3schools.com/xslfo/prop_border_color.asp padding-left http://www.w3schools.com/xslfo/prop_padding.asp border-before-stylehttp://www.w3schools.com/xslfo/prop_border_style.asp padding-right http://www.w3schools.com/xslfo/prop_padding.asp border-before-widthhttp://www.w3schools.com/xslfo/prop_border_width.asp padding-start http://www.w3schools.com/xslfo/prop_padding.asp border-bottom-colorhttp://www.w3schools.com/xslfo/prop_border_color.asp padding-top http://www.w3schools.com/xslfo/prop_padding.asp border-bottom-stylehttp://www.w3schools.com/xslfo/prop_border_style.asp pause-after http://www.w3schools.com/xslfo/prop_pause.asp border-bottom-widthhttp://www.w3schools.com/xslfo/prop_border_width.asp pause-before http://www.w3schools.com/xslfo/prop_pause.asp border-end-color http://www.w3schools.com/xslfo/prop_border_color.asp** ** pitch http://www.w3schools.com/xslfo/prop_pitch.asp border-end-style http://www.w3schools.com/xslfo/prop_border_style.asp** ** pitch-range http://www.w3schools.com/xslfo/prop_pitch-range.asp border-end-width http://www.w3schools.com/xslfo/prop_border_width.asp** ** play-during http://www.w3schools.com/xslfo/prop_play-during.asp border-left-color http://www.w3schools.com/xslfo/prop_border_color.asp* *** relative-positionhttp://www.w3schools.com/xslfo/prop_relative-position.asp border-left-style http://www.w3schools.com/xslfo/prop_border_style.asp* *** richness http://www.w3schools.com/xslfo/prop_richness.asp border-left-width http://www.w3schools.com/xslfo/prop_border_width.asp* *** right http://www.w3schools.com/xslfo/prop_left_right.asp border-right-color http://www.w3schools.com/xslfo/prop_border_color.asp role http://www.w3schools.com/xslfo/prop_role.asp border-right-style http://www.w3schools.com/xslfo/prop_border_style.asp scaling border-right-width http://www.w3schools.com/xslfo/prop_border_width.asp scaling-method border-start-color http://www.w3schools.com/xslfo
Re: More on external graphics
On 12/15/11 7:44 PM, Samuel Penn wrote: On Thursday 15 December 2011 00:26:43 Luis Bernardo wrote: Your page definitions (margins, paddings, and so on) may be part of the problem. Negative margins in a page are suspicious to me... I probably had a reason for that, but I did that 10 years ago, so I don't remember why. Maybe to get around a bug... but you should not need to do so now. But it is important to understand the page regions and how margins relate to extents. I fixed your example by reducing it a simpler case. If you are not using using the start, end, before and after regions you do not need to define them. Probably later you will want to use them for static content but for the purposes of your example they are not needed. I do need all those regions in the real document. I've added your margins into my actual stylesheet, and the graphics are fixed, however the page dimensions are now too squashed. For some reason, if I tweak the margins a bit, then the image problem comes back. I did remove the negative margins whilst testing the example I sent, and it made no difference, so it seems not to be -ve margins as such, but it is something to do with those margins. Attached is an example with the side regions in place. The output is the same as before. At least this gives me something to play with, and I can try tweaking the values (and refresh my memory of what they all mean) to try and find out exactly what values cause the issue. Thanks very much for your help. ?xml version=1.0? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:yb=http://yagsbook.sourceforge.net/xml; fo:layout-master-set fo:simple-page-master master-name=leftPage page-height=297mm page-width=210mm margin-top=10mm margin-bottom=10mm margin-left=10mm margin-right=10mm fo:region-body margin-left=5mm margin-right=20mm margin-top=5mm margin-bottom=5mm / fo:region-before extent=5mm / fo:region-after extent=5mm / fo:region-start extent=5mm / fo:region-end extent=20mm / /fo:simple-page-master fo:simple-page-master master-name=rightPage page-height=297mm page-width=210mm margin-top=10mm margin-bottom=10mm margin-left=10mm margin-right=10mm fo:region-body margin-left=20mm margin-right=5mm margin-top=5mm margin-bottom=5mm / fo:region-before extent=5mm / fo:region-after extent=5mm / fo:region-start extent=20mm / fo:region-end extent=5mm / /fo:simple-page-master fo:page-sequence-master master-name=document fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=leftPage odd-or-even=even/ fo:conditional-page-master-reference master-reference=rightPage odd-or-even=odd/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=document fo:flow flow-name=xsl-region-body text-align=justify fo:block font-family=serif font-weight=bold font-size=20pt line-height=24pt space-after=12pt text-align=startMain Heading/fo:block fo:block font-size=10pt font-family=serif line-height=12pt space-after=10pt Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam erat magna, vulputate nec rhoncus at, tristique id urna. Etiam orci nulla, lobortis ac elementum quis, venenatis vel elit. Aenean eros ante, facilisis quis semper eget, vulputate id arcu. Pellentesque at leo arcu, non hendrerit nibh. Aenean fringilla commodo nulla, sit amet feugiat urna molestie nec. Duis dui augue, pulvinar non sodales et, vehicula ut justo. Donec cursus pretium lacus nec faucibus. Donec tempus arcu nec libero auctor consequat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec non nunc in dolor pharetra lacinia. Duis sodales mattis turpis in malesuada. Integer placerat porta sagittis. Integer sapien magna, aliquet id commodo in, ullamcorper rhoncus nibh. Cras a nulla lacus, quis blandit nulla. /fo:block fo:block font-size=10pt font-family=serif line-height=12pt space-after=10pt Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam erat magna, vulputate nec rhoncus at, tristique id urna. Etiam orci nulla, lobortis ac elementum quis, venenatis vel elit. Aenean eros ante, facilisis quis semper eget, vulputate id arcu. Pellentesque at leo arcu, non hendrerit nibh. Aenean fringilla commodo nulla, sit amet feugiat urna molestie nec. Duis dui augue, pulvinar non sodales et, vehicula ut justo. Donec cursus pretium lacus nec faucibus. Donec tempus arcu nec libero auctor consequat. Cum sociis
Re: Problem with clippath
You are missing the path / element... clipPath id=myClip path d=M 20 0 L 196 0 Q 216,0 216,20 L 216 32 Q 216,52 196,52 L 20 52 Q 0,52 0,32 L 0 20 Q 0,0 20,0 / /clipPath Then it works. See attached output (needs some tweaking...). On 12/16/11 3:46 PM, Theresa Jayne Forster wrote: As previously requested I am working with trying to clip images with the method passed to me through this list, But this is not working so I would appreciate some feedback, it should be an image with rounded corners, unfortunately its appearing with square corners. ?xml version=1.0 encoding=UTF-8? ?xep-pdf-crop-offset 24pt? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:inbrand=http://www.inbrand1.co.uk/xsl; xmlns:fox=http://xml.apache.org/fop/extensions; xmlns:date=http://exslt.org/dates-and-times; xmlns:svg=http://www.w3.org/2000/svg; fo:layout-master-set fo:simple-page-master column-gap=5mm column-count=2 margin-right=0cm margin-left=0cm margin-bottom=0cm margin-top=0cm page-width=216mm page-height=303mm master-name=a4window fo:region-body column-gap=4mm column-count=2 margin-bottom=0mm margin-right=13mm margin-left=13mm margin-top=249.75mm region-name=xsl-region-body/ fo:region-before extent=52mm region-name=xsl-region-before/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=a4window fo:static-content flow-name=xsl-region-before fo:block-container left=0 top=0 position=absolute height=52mm width=216mm background-color=cmyk(11%,1%,0%,64%) fo:block text-align=right fo:instream-foreign-object width=216mm content-width=scale-to-fit svg xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; width=216mm height=52mm viewBox=-1 -1 217 53 clipPath id=myClip d=M 20 0 L 196 0 Q 216,0 216,20 L 216 32 Q 216,52 196,52 L 20 52 Q 0,52 0,32 L 0 20 Q 0,0 20,0 /clipPath image clip-path=url(#myClip) width=216 height=52 xlink:href=/preprocessor/filestore/002.jpg/ /svg /fo:instream-foreign-object /fo:block /fo:block-container /fo:static-content fo:flow flow-name=xsl-region-body fo:block/ /fo:flow /fo:page-sequence /fo:root Kindest regards Theresa Forster Senior Software Developer clip.pdf Description: Adobe PDF document - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Batik not loaded
You are including images in SVG, correct? Then the error may be misleading what what you are missing is a different jar (probably JAI ImageIO), not the Batik jar. Try that... On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal l...@lamasti.net wrote: [Terence] On 12/19/2011 1:28 PM, Lars Bjørndal wrote: I get the following error from fop: 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage WARNING: Batik not in class path Even though, I have the following CLASSPATH variable: /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar So, what's the problem here? Doesn't the reference to batik-all include batik? The file exists, and is from package batik-1.7-11.fc15. Regards, Lars Hi, Lars- Are the two colons before /home/lrs/fop/fop-hyph.jar a typo? Yes or no.. In my .foprc file, I have: CLASSPATH=$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar. When this is put together by the script, there is two colons. I tried to drop the colon. The CLASSPATH is then right, but I have the exactly same situation regarding Batic not in classpath. Regards, Lars - 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: Image Print size and quality
There is indeed a strange bug with the stock FOP 1.0 (and in trunk too...). Klearchos, if you set one of the dimensions to 90.01mm in the code below then you get the behavior you want. An easy workaround for now. On 1/23/12 1:21 PM, Klearchos Klearchou wrote: Pascal, I am using FOP 1.0 with: Batik: 1.7+r608262 xmlgraphics-commons-1.4 Thank you. On 23/1/2012 3:00 PM, Pascal Sancho wrote: Klearchos, I cannot reproduce what you get with the provided snippet: too small. What FOP version do you use? Le 23/01/2012 10:55, Klearchos Klearchou a écrit : Hi Pascal, I copied some of the FO. In case you want to see more please let me know. This FO text is relevant to the image that renders bad (not scaled) fo:block start-indent=10px font-size=8px font-family=arial/ fo:table width=100% table-layout=fixed fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row keep-with-next=always fo:table-cell fo:block fo:external-graphic content-height=scale-to-fit block-progression-dimension.maximum=90mm content-width=scale-to-fit inline-progression-dimension.maximum=90mm border=solid 3px #8CE18D src=c:/tempUnzip\images\image_21952/ /fo:block fo:block space-before=3mm/ /fo:table-cell /fo:table-row ... So in case I haven't described well enough the problem I will try again: There is a rectangle image (300 * 300) that overflows out of the max area. If I change the size of the same image to 310 * 300 or 300 * 310, then the image renders ok. Please let me know if you need more info. Thank you. On 23/1/2012 11:08 AM, Pascal Sancho wrote: Hi, can you provide a short XSL-FO (not XSLT) with equivalent images that reproduce what you describe here, I cannot figure what you say. Le 20/01/2012 16:29, Klearchos Klearchou a écrit : Hello Pascal, the solution that we talked about works well almost in all cases. Here is the code: fo:external-graphic src={$imageLink} border=solid 3px #8CE18D inline-progression-dimension.maximum={$imageMaxBoundary} content-width=scale-to-fit block-progression-dimension.maximum={$imageMaxBoundary} content-height=scale-to-fit / Now when the image is rectangle the scale does not work. I am attaching an image, on the left hand side the image is 310 x 300 and FOP scales it well. On the right hand side is the same image but 300 x 300. As you can see FOP fails to scale it. It overflows out of the box. Do you have any idea what it could be? Thank you in advance On 1/17/2012 5:47 PM, Pascal Sancho wrote: We use imageMagik Le 17/01/2012 15:32, Klearchos Klearchou a écrit : Pascal, the information that you provide are valuable. Can you propose any open source library in order to manipulate the quality/resolution of the image? I tried the imgscalr, getScaledInstance(), Thumbnailator and some more but they do not provide em exactly what I want. I haven't tried yet JMajick. Thanks again. On 1/17/2012 4:18 PM, Pascal Sancho wrote: Quality loss may depend on PDF viewer settings and capabilities (anti-aliasing, zoom factor, etc.) Also, the result can seem better if you first resample your image before using in PDF, to get the best fit on screen reading, but can become worse on printing. Depending on what usages your PDF are for (reading on screen, Laser printing, Offset printing, low weight downloading, etc.) There is no perfect solution there. For example, we (my compagny) produce images with different quality/resolution for identified purposes, and generate as many PDF files. The only constant over various resampled images is the real size: for instance, a square image (1x1) will give: 96x96, rez 1/96 for screen reading; 300x300, rez 1/300 for Laser printing; 120x120, rez 1/120 for Dowload _and_print; etc. Le 17/01/2012 14:48, Klearchos Klearchou a écrit : Hi Pascal, yes indeed this was one of my problems. I will test it to see the results. In case I will still have to manipulate the image outside of the FOP do you have any solution to propose regarding: How to change the print size of the image (like gimp) in order not to loose image quality and at the same time to show it smaller inside the PDF. Thank you. On 17/1/2012 3:42 PM, Pascal Sancho wrote: Hi, I guess that by the result is problematic with very tall images you mean that image can overflow the page when h/w ratio is too high. If this is the case, you can use max-height XSL-FO equivalent: fo:external-graphic src={$imageUrl} block-progression-dimension.optimum=$my_minimal_height block-progression-dimension.maximum=$my_maximal_height content-height=scale-to-fit/ Le 17/01/2012 12:17, Klearchos Klearchou a écrit : Dear FOP users, I want to change an image's print size in order to add it inside a PDF. I want to do this in order not to loose any quality. The image must look smaller inside the PDF but the quality should be the
Re: How to get one section above another
If the only thing you do in the body is to place the SVG then another option is to place it in the region-before, extend it to the bottom, and overlay the extra content in the body. Not perfect but I think it works. On Wed, Feb 1, 2012 at 8:56 AM, Pascal Sancho pascal.san...@takoma.fr wrote: Hi, As said in XSL-FO REC 1.1 (§7.27.16 at [1]), precedence=true specifies which region (i.e., region-before, region-after, region-start, or region-end) takes precedence in terms of which may extend into the corners of the simple-page-master So, this will not help Theresa. The only solution I can imagine is to tweak the FOP Intermediate Format (see [2]). [1] http://www.w3.org/TR/xsl/#precedence [2] http://xmlgraphics.apache.org/fop/1.0/intermediate.html Le 31/01/2012 17:59, Rob Sargent a écrit : Have you tried 'precedence=true' for the region you prefer to dominate the other? On 01/31/2012 09:36 AM, Theresa Jayne Forster wrote: I know that FOP does not yet support z-index, is there any way of making sure say region-after appearing on the page over region-body. I have an SVG which is the whole page I have as a block-container on the body but I sometimes need the after to change what is there overloading the very bottom of the svg Any suggestions? Kindest regards Theresa Forster - 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: xml processing instructions in textual content
So, are you generating PDF from XML and XSL, or from FO? For instance, as an example, if I want PDF to show XML content, and I start from XML and XSL then I put this in the XML file: example ![CDATA[ ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm master-name=A4-portrait fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4-portrait fo:flow flow-name=xsl-region-body fo:blockHello World!/fo:block /fo:flow /fo:page-sequence /fo:root ]] /example and something like this in the XSL file: fo:block xsl:apply-templates select=example / /fo:block xsl:template match=example fo:block font-size=12pt linefeed-treatment=preserve white-space-treatment=preserve white-space-collapse=false font-family=monospace xsl:value-of select=. / /fo:block /xsl:template Then fop -xml example.xml -xsl example.xsl -pdf example.pdf generates a PDF with the example you see above inside the ![CDATA[]]. If you are working with FO, then you can use the above example and fop -xml example.xml -xsl example.xsl -foout example.fo to see how it should look like: fo:block font-family=monospace white-space-collapse=false white-space-treatment=preserve linefeed-treatment=preserve font-size=12pt lt;?xml version=1.0 encoding=UTF-8?gt; lt;fo:root xmlns:fo=http://www.w3.org/1999/XSL/Formatgt; lt;fo:layout-master-setgt; lt;fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm master-name=A4-portraitgt; lt;fo:region-body /gt; lt;/fo:simple-page-mastergt; lt;/fo:layout-master-setgt; lt;fo:page-sequence master-reference=A4-portraitgt; lt;fo:flow flow-name=xsl-region-bodygt; lt;fo:blockgt;Hello World!lt;/fo:blockgt; lt;/fo:flowgt; lt;/fo:page-sequencegt; lt;/fo:rootgt; /fo:block On 2/21/12 11:35 PM, Craig Christophersen wrote: I am encountering xml processing instructions in textual content. Example: para text con?Pub Caret?tent here /para The resulting pdf from using FOP is text con followed by content from the next element. The remainder of the text content following the processing instruction tent here is left out. Is this a bug? Is there something I can configure in FOP config.xml to handle this? Processing instructions are allowed in textual content of xml elements. Using FOP 1.0, Windows 7, JDK 1.6.0_26 Craig Christophersen Software Developer Synesis7 crai...@synesis7.com mailto:crai...@synesis7.com
Re: xml processing instructions in textual content
OK, I understand what you mean now. Your editor/authoring tool adds those ?Pub Caret? and you don't want that to break your PDF generation. I don't know what the expected behavior should be. I will have to investigate. On 2/22/12 1:04 AM, Craig Christophersen wrote: From xml and xsl. Xml simple example: ?xml version=1.0 encoding=UTF-8? example para text con?Pub Caret?tent here /para /example Xsl from parent template: fo:blockfont-size=10pttext-align=leftpadding-before=1mmmargin-left=1mmmargin-right=1mmpadding-after=1mmfont-weight=boldorphans=2widows=2 xsl:call-templatename=para /fo:block Simple xsl para template(para template I do a lot of testing for child elements of para and do formatting accordingly for each different element that can appear in the para besides text) But simply if just text in para element as below : ?xml version=1.0 encoding=UTF-8? xsl:stylesheetversion=1.0xmlns:xsl=http://www.w3.org/1999/XSL/Transformxmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:templatename=paraxmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:value-ofselect=text()/ /xsl:template *From:*Luis Bernardo [mailto:lmpmberna...@gmail.com] *Sent:* Tuesday, February 21, 2012 5:07 PM *To:* fop-users@xmlgraphics.apache.org *Subject:* Re: xml processing instructions in textual content So, are you generating PDF from XML and XSL, or from FO? For instance, as an example, if I want PDF to show XML content, and I start from XML and XSL then I put this in the XML file: example ![CDATA[ ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; http://www.w3.org/1999/XSL/Format fo:layout-master-set fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm master-name=A4-portrait fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4-portrait fo:flow flow-name=xsl-region-body fo:blockHello World!/fo:block /fo:flow /fo:page-sequence /fo:root ]] /example and something like this in the XSL file: fo:block xsl:apply-templates select=example / /fo:block xsl:template match=example fo:block font-size=12pt linefeed-treatment=preserve white-space-treatment=preserve white-space-collapse=false font-family=monospace xsl:value-of select=. / /fo:block /xsl:template Then fop -xml example.xml -xsl example.xsl -pdf example.pdf generates a PDF with the example you see above inside the ![CDATA[]]. If you are working with FO, then you can use the above example and fop -xml example.xml -xsl example.xsl -foout example.fo to see how it should look like: fo:block font-family=monospace white-space-collapse=false white-space-treatment=preserve linefeed-treatment=preserve font-size=12pt lt;?xml version=1.0 encoding=UTF-8?gt; lt;fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; http://www.w3.org/1999/XSL/Formatgt; lt;fo:layout-master-setgt; lt;fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm master-name=A4-portraitgt; lt;fo:region-body /gt; lt;/fo:simple-page-mastergt; lt;/fo:layout-master-setgt; lt;fo:page-sequence master-reference=A4-portraitgt; lt;fo:flow flow-name=xsl-region-bodygt; lt;fo:blockgt;Hello World!lt;/fo:blockgt; lt;/fo:flowgt; lt;/fo:page-sequencegt; lt;/fo:rootgt; /fo:block On 2/21/12 11:35 PM, Craig Christophersen wrote: I am encountering xml processing instructions in textual content. Example: para text con?Pub Caret?tent here /para The resulting pdf from using FOP is text con followed by content from the next element. The remainder of the text content following the processing instruction tent here is left out. Is this a bug? Is there something I can configure in FOP config.xml to handle this? Processing instructions are allowed in textual content of xml elements. Using FOP 1.0, Windows 7, JDK 1.6.0_26 Craig Christophersen Software Developer Synesis7 crai...@synesis7.com mailto:crai...@synesis7.com
Re: Different Page Layout every xx document sheet
I am afraid that this layout is not possible with the current FOP but I think it should be possible with a fully compliant implementation of FO, at least the way I understand it. In any case, I would like to be proven wrong... The issue is with the first page of every 7th sheet. Maybe it would help if you explain how you intend to flow the content from page to page. When you are on page 12th and want to move to page 13th do you let the content flow or do you insert a break? If you insert a break when you get to the first page of every 7th sheet then it may be possible. Because then it is like a book where you want each chapter to start on a odd page and you can use the blank-or-not-blank trait to achieve that. However that assumes you only insert breaks at the end of chapters, which in your case would be the end of every 6th sheet. If you want to insert a break at the end of every page then it will not work. On 2/23/12 4:22 PM, Rob Sargent wrote: OK, then I believe you can define each needed simple-page-master: first, second-sixth, seventh and make a page-sequence-master with a repeatable-page-master-alternative with a reference to each of the seven pages in the sequence. Not sure if the 2-6 can be in a conditional-page-master-reference or not. On 02/23/2012 02:33 AM, Maria Manta wrote: Hello and thank you for your quick answer! Concerning your question: Will you be addressing the static regions of the seventh pages differently from one another. In other words does e.g. region-before or page 13 get the same content as region-before on page 25? The answer is no, I will not be addressing them differently. The regions-before will be the same for pages 13,25th etc. Cheers. Maria
Re: xml processing instructions in textual content
I tested it and it does work indeed. So I will assume you solved the problem. On 2/23/12 10:11 PM, Craig Christophersen wrote: I have come up with a way that is handling this circumstance, by testing for child nodes rather than just child elements of para element. It is working with what I see so far. Added below in para template. xsl:for-eachselect=node() !—before the select was “child::*” à !—various other xsl:if’s for possible elements à xsl:iftest=self::processing-instruction() xsl:iftest=following-sibling::node()[1][self::text()] xsl:value-ofselect=following-sibling::node()[1][self::text()]/ /xsl:if /xsl:if /xsl:for-each *From:*Roland Neilands [mailto:rneila...@pulsemining.com.au] *Sent:* Wednesday, February 22, 2012 6:00 PM *To:* fop-users@xmlgraphics.apache.org *Subject:* RE: xml processing instructions in textual content As far as an XML parser is concerned you have 3 nodes within the “para” element; two separate text nodes with the PI in between them. Your XSL would need to string both text nodes together instead of just showing the first one. I’m a bit rusty on this sorry, but there should be a couple of ways to do it. Cheers, Roland *From:*Craig Christophersen [mailto:crai...@synesis7.com] *Sent:* Thursday, 23 February 2012 11:17 AM *To:* fop-users@xmlgraphics.apache.org *Subject:* RE: xml processing instructions in textual content Sorry, meant to add. I think the expected behavior in textual content would be to be able to ignore the processing instruction. It seems to be ignored if it occurs in places other than textual content.. ?xml version=1.0 encoding=UTF-8? example para text con?Pub Caret?tent here /para?Pub Caret? paramore text content here /para /example The second instance of ?Pub Caret? above is ignored. *From:*Luis Bernardo [mailto:lmpmberna...@gmail.com] mailto:[mailto:lmpmberna...@gmail.com] *Sent:* Wednesday, February 22, 2012 4:41 PM *To:* fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org *Subject:* Re: xml processing instructions in textual content OK, I understand what you mean now. Your editor/authoring tool adds those ?Pub Caret? and you don't want that to break your PDF generation. I don't know what the expected behavior should be. I will have to investigate. On 2/22/12 1:04 AM, Craig Christophersen wrote: From xml and xsl. Xml simple example: ?xml version=1.0 encoding=UTF-8? example para text con?Pub Caret?tent here /para /example Xsl from parent template: fo:block font-size=10pt text-align=left padding-before=1mm margin-left=1mm margin-right=1mm padding-after=1mm font-weight=bold orphans=2 widows=2 xsl:call-template name=para /fo:block Simple xsl para template(para template I do a lot of testing for child elements of para and do formatting accordingly for each different element that can appear in the para besides text) But simply if just text in para element as below : ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; http://www.w3.org/1999/XSL/Transform xmlns:fo=http://www.w3.org/1999/XSL/Format; http://www.w3.org/1999/XSL/Format xsl:template name=para xmlns:fo=http://www.w3.org/1999/XSL/Format; http://www.w3.org/1999/XSL/Format xsl:value-of select=text()/ /xsl:template *From:*Luis Bernardo [mailto:lmpmberna...@gmail.com] *Sent:* Tuesday, February 21, 2012 5:07 PM *To:* fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org *Subject:* Re: xml processing instructions in textual content So, are you generating PDF from XML and XSL, or from FO? For instance, as an example, if I want PDF to show XML content, and I start from XML and XSL then I put this in the XML file: example ![CDATA[ ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; http://www.w3.org/1999/XSL/Format fo:layout-master-set fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm master-name=A4-portrait fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4-portrait fo:flow flow-name=xsl-region-body fo:blockHello World!/fo:block /fo:flow /fo:page-sequence /fo:root ]] /example and something like this in the XSL file: fo:block xsl:apply-templates select=example / /fo:block xsl:template match=example fo:block font-size=12pt linefeed-treatment=preserve white-space-treatment=preserve white-space-collapse=false font-family=monospace xsl:value-of select=. / /fo:block /xsl:template Then fop -xml example.xml -xsl example.xsl -pdf example.pdf generates a PDF with the example you see above inside the ![CDATA[]]. If you are working with FO, then you can use the above example and fop -xml example.xml -xsl example.xsl -foout example.fo to see how it should look like: fo:block font-family=monospace white-space-collapse=false white-space-treatment=preserve linefeed-treatment=preserve font-size=12pt lt;?xml version
Re: Different Page Layout every xx document sheet
Note: the seven_plus_pages page-sequence-master is there by mistake (and does nothing)... On 2/26/12 11:58 PM, Luis Bernardo wrote: Well, if you know the number of pages is less than 100 and want an ugly suggestion, then the attached one works... On 2/26/12 12:06 PM, Alexios Giotis wrote: The number of groups of seven is not known in advance, it depends on the input data but the total number of pages will be less than 100. The use case is like this: We are printing statements (transactional data) and each statement has a different number of pages depending on the customer. Each statement is enveloped and dispatched. The printing house has only one type of enveloping machine that can fit at most 6 sheets into an envelope. When a document is larger than 6 sheets, it is splited into envelopes and all of them are send to the same address. Each envelope has a 'window' in a predefined area where the address is printed. Therefore, on every 7th sheet we should print on an absolutely positioned area, the recipient address. Other than this, the flow of the content will continue from page to page. Any XSL:FO suggestion, even if not elegant or not fully resolving this, is welcomed ! Alex Giotis On Feb 26, 2012, at 5:43 AM, Rob Sargent wrote: Re-reading (and quite likely stilll not fully inderstanding) the repeatable-page-master reference et al, I'm inclined to agree with Luis. If you know how many groups of seven you will be making, I can give you a suggestion from something that is working for me. It amounts to making as many page references as needed. Not elegant, but for me it was critical. On 02/24/2012 04:22 PM, Luis Bernardo wrote: I am afraid that this layout is not possible with the current FOP but I think it should be possible with a fully compliant implementation of FO, at least the way I understand it. In any case, I would like to be proven wrong... The issue is with the first page of every 7th sheet. Maybe it would help if you explain how you intend to flow the content from page to page. When you are on page 12th and want to move to page 13th do you let the content flow or do you insert a break? If you insert a break when you get to the first page of every 7th sheet then it may be possible. Because then it is like a book where you want each chapter to start on a odd page and you can use the blank-or-not-blank trait to achieve that. However that assumes you only insert breaks at the end of chapters, which in your case would be the end of every 6th sheet. If you want to insert a break at the end of every page then it will not work. On 2/23/12 4:22 PM, Rob Sargent wrote: OK, then I believe you can define each needed simple-page-master: first, second-sixth, seventh and make a page-sequence-master with a repeatable-page-master-alternative with a reference to each of the seven pages in the sequence. Not sure if the 2-6 can be in a conditional-page-master-reference or not. On 02/23/2012 02:33 AM, Maria Manta wrote: Hello and thank you for your quick answer! Concerning your question: Will you be addressing the static regions of the seventh pages differently from one another. In other words does e.g. region-before or page 13 get the same content as region-before on page 25? The answer is no, I will not be addressing them differently. The regions-before will be the same for pages 13,25th etc. Cheers. Maria - 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: Generating a PDF by drawing to PDFDocumentGraphics2D
Yes, it is possible but it is certainly an uncommon way to use the FOP code! Attached is an example, together with a font configuration file, and the output. The example is a slightly edited version of the ExampleJava2D2PDF.java of the emdedding package (in example/embedding/java). The example was run on a Mac so edit the fonts to your environment. On 2/20/12 5:25 PM, Konstantin Preißer wrote: Hi Theresa, -Original Message- From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] Sent: Tuesday, February 07, 2012 1:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Generating a PDF by drawing to PDFDocumentGraphics2D The usual way we create PDFs is via XML/XSL into a .fo file which is then compiled into the pdf. Thank you for your answer. Unfortunately, I don't know much about creating a PDF via XML/XSL into a .fo file, and I don't intend to use it, as I only need to generate a PDF dynamically by drawing to a Graphics2D object - which is why I'm using FOP's PDFDocumentGraphics2D. I know about Apache PDFBox where you can generate a PDF on the fly, but it seems that its API doesn't have support for drawing to a Graphics2D object. Another possiblility would be using the iText (R) library; however, it seems to have some problems with text positioning, and it's licence applies several restrictions on what to do with the product. Therefore, I'm currently using Apache FOP 1.0 to generating a PDF by drawing to a PDFDocumentGraphics2D, which seems to work pretty well. The only problem I'm currently having is how to embed Fonts into the PDF, so that I also can use other characters which are not available in the PDF's included fonts (or e.g. change the Font charset, so that other Unicode characters are available). Do you have an idea if this is possible? Thanks! Best Regards, Konstantin Preißer - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the License); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* $Id: ExampleJava2D2PDF.java 1188123 2011-10-24 12:44:11Z jeremias $ */ package embedding; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics2D; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.StringReader; import javax.swing.JEditorPane; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder; import org.apache.commons.io.IOUtils; import org.apache.fop.svg.PDFDocumentGraphics2D; import org.apache.fop.svg.PDFDocumentGraphics2DConfigurator; import org.apache.xmlgraphics.util.UnitConv; /** * This example class demonstrates the use of {@link PDFDocumentGraphics2D} that * can be used to create a PDF file from Java2D graphics (using the * {@link Graphics2D} API). */ public class ExampleJava2D2PDF { private Configuration createAutoFontsConfiguration() { // Create a default configuration using auto-detection of fonts. // This can be a bit slow but covers most use cases. // DefaultConfiguration c = new DefaultConfiguration(cfg); // DefaultConfiguration fonts = new DefaultConfiguration(fonts); // c.addChild(fonts); // DefaultConfiguration autodetect = new // DefaultConfiguration(auto-detect); // fonts.addChild(autodetect); // return c; /* You can also load the configuration from a file: */ String configFile = /Users/lbernardo/Documents/C/workspace/javamisc/fop-java2d2pdffonts.xconf; try { DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); return cfgBuilder.buildFromFile(configFile); } catch (Exception e) { e.printStackTrace(); return null; } /**/ } private void configure(PDFDocumentGraphics2D g2d, Configuration cfg) throws ConfigurationException { PDFDocumentGraphics2DConfigurator configurator = new PDFDocumentGraphics2DConfigurator(); configurator.configure(g2d, cfg, false); } /** * Creates a
Re: WARNING: 1 link target could not be fully resolved and was now point to the top of the page or is dysfunctional.
First you should test with FOP 1.0. If the problem is also present there please provide a (slimmed down if possible) example fo file that shows the issue and then it will be easier to help. On 3/3/12 8:48 PM, bonekrusher wrote: Hi, I am using FOP 0.95 and get the below error. I am using a somewhat complicated page-sequence-master. I narrowed the area of the FO that is for some reason not printing out. WARNING: 1 link target could not be fully resolved and was now point to the top of the page or is dysfunctional. What does this mean? I can prepare a repo of the problem if needed. Edit: Some additional info - The page-sequence is 2 column. The fo:blocks that are not showing up when I use @span=all Thx - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: OCRB fonts are not rendered in PCL output
At the moment that is not possible... The only fonts that can be rendered as text right now are the first 12 standard fonts (F1 to F12). On Thu, Mar 15, 2012 at 7:06 AM, Mrutyunjay Sahasrabudhe mruts...@techmahindra.com wrote: Hi, I am using OCRB font for some part of the text and generating PCL output using FOP 1.0. The font is installed in the required directory for Java 2D to use those. But, I don't see the text that uses OCRB font in the output file (the PCL file). Any idea whether it would an issue of FOP or PCL? It would be great if anyone knows a resolution of how to get OCRB fonts rendered correctly in PCL. Thanks regards, Mrutyunjay - 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: Fonts in config file
Arial also has a bullet. Why not just use that since you already get the Ohm symbol from Arial? On 4/16/12 9:56 PM, froglander wrote: Thank you very much for that information. Would there be a way (and I've tried using the substitutions but with no luck so I assume I am doing something wrong) to tell it to use a different font other than the operating system Symbol font? cbowditch wrote: On 12/04/2012 14:00, froglander wrote: If I haveauto-detect / in the userconfig.xml file this line fo:inline font-size=8pt font-family=Symbol•/fo:inline Ends up displaying as a # symbol in the resulting pdf file print. If I takeauto-detect / out of the userconfig.xml file, then the above line works but the following line does not. That's because there are 2 version of the font named Symbol; The Base 14 font Symbol that is included with FOP by default. That is the version used whenauto-detect/ is absent from the fop.xconf file and the symbol.ttf file installed in the operating system. The bullet character is not present in the Operating System version of Symbol or at least its accessed via a different Unicode reference. fo:inline font-size=11pt font-family=Arial, sans-serifΩ/fo:inline Arial is not available as part of the Base 14 fonts, so you must register it in the fop.xconf. Sinceauto-detect/ adds every font installed in the Operating System I suggest you manually add individual fonts that you wish to use (such as Arial) using the element as described in [1] Thanks, Chris [1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register Is any more information needed? I need this to be able to show bulleted lists as well as possible 'special' characters. Thanks! froglander wrote: In this case it is using te symbol font for the bullets. Rob Sargent-4 wrote: Not all fonts have bullets. Which are you using? rjs On 04/11/2012 02:34 PM, froglander wrote: I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take theauto-detect /the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep theauto-detect /in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! - 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 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in config file
Try to add something like this to the fonts element of your renderer. So for PDF that would be the fonts element inside renderer mime=application/pdf. font kerning=yes embed-url=/usr/share/fonts/truetype/msttcorefonts/Arial.ttf font-triplet name=Arial style=normal weight=normal/ font-triplet name=ArialMT style=normal weight=normal/ /font This with no auto-detect means you get the default FOP Symbol for the bullet, and you get the Ohm from the Arial font configured above. Make sure that the embed-url points to your local Arial.ttf file. On Tue, Apr 17, 2012 at 1:05 PM, froglander kristina.here...@trax.aero wrote: I would gladly do that if it were an option, but the file that has fo:inline font-size=8pt font-family=Symbol*/fo:inline is one that is given to me as is, not one I can modify. Is there a way to tell it to use a different font if it encounters font-family=Symbol? I've tried going here http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution but I can't seem to get it to /do/ anything. lmpmbernardo wrote: Arial also has a bullet. Why not just use that since you already get the Ohm symbol from Arial? On 4/16/12 9:56 PM, froglander wrote: Thank you very much for that information. Would there be a way (and I've tried using the substitutions but with no luck so I assume I am doing something wrong) to tell it to use a different font other than the operating system Symbol font? cbowditch wrote: On 12/04/2012 14:00, froglander wrote: If I haveauto-detect / in the userconfig.xml file this line fo:inline font-size=8pt font-family=Symbol*/fo:inline Ends up displaying as a # symbol in the resulting pdf file print. If I takeauto-detect / out of the userconfig.xml file, then the above line works but the following line does not. That's because there are 2 version of the font named Symbol; The Base 14 font Symbol that is included with FOP by default. That is the version used whenauto-detect/ is absent from the fop.xconf file and the symbol.ttf file installed in the operating system. The bullet character is not present in the Operating System version of Symbol or at least its accessed via a different Unicode reference. fo:inline font-size=11pt font-family=Arial, sans-serifΩ/fo:inline Arial is not available as part of the Base 14 fonts, so you must register it in the fop.xconf. Sinceauto-detect/ adds every font installed in the Operating System I suggest you manually add individual fonts that you wish to use (such as Arial) using the element as described in [1] Thanks, Chris [1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register Is any more information needed? I need this to be able to show bulleted lists as well as possible 'special' characters. Thanks! froglander wrote: In this case it is using te symbol font for the bullets. Rob Sargent-4 wrote: Not all fonts have bullets. Which are you using? rjs On 04/11/2012 02:34 PM, froglander wrote: I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take theauto-detect /the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep theauto-detect /in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! - 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 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33701165.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: Fonts in config file
You can do the same with auto-detect. Apparently you do not have the symbol.ttf file in your system. But you can replace it with other font, like Arial, the same way: font kerning=yes embed-url=/usr/share/fonts/truetype/msttcorefonts/Arial.ttf font-triplet name=Symbol style=normal weight=normal/ /font auto-detect/ The name attribute is what you use in the *.fo file. On Tue, Apr 17, 2012 at 3:31 PM, froglander kristina.here...@trax.aero wrote: So is there no way to leave the auto-detect in there in case someone wants to use a random font and just tell FOP to use a different font for Symbol? lmpmbernardo wrote: Try to add something like this to the fonts element of your renderer. So for PDF that would be the fonts element inside renderer mime=application/pdf. font-triplet name=Arial style=normal weight=normal/ font-triplet name=ArialMT style=normal weight=normal/ This with no auto-detect means you get the default FOP Symbol for the bullet, and you get the Ohm from the Arial font configured above. Make sure that the embed-url points to your local Arial.ttf file. -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33702176.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: foprc: 1: Syntax error: newline unexpected
I think that's the problem too. I think that exception happens when you run FOP trunk with the xmlgraphics-common jar file from FOP 1.0 (note that the jar version went from 1.4 to 1.5). On 4/19/12 11:37 PM, Glenn Adams wrote: don't give up so easily... i took the effort to help you, let's see if we can get you working; i'm using the arabic formatting regularly, so i know it is working i think your problem is that you need to set the FOP_HOME environment variable to the directory where you installed the nightly build; that way, it will properly initialize the LOCALCLASSPATH variable in the fop script On Thu, Apr 19, 2012 at 3:42 PM, greencopperm...@hushmail.com mailto:greencopperm...@hushmail.com wrote: Thank you for your reply. I have tried using some of the trunk versions of FOP, but in all cases I get an exception: Exception in thread main java.lang.NoSuchMethodError: org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;) Ljava/util/Iterator; at org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(Elemen tMappingRegistry.java:74) at org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegist ry.java:66) at org.apache.fop.apps.FopFactory.init(FopFactory.java:166) at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190) at org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java :124) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:208) Currently I think I'm going to give up. I have no problems with the arabic text in all the other formats and I'm possibly just going to convert the HTML into PDF and then settle for that. On Thu, 19 Apr 2012 06:41:24 +0200 Glenn Adams gl...@skynav.com mailto:gl...@skynav.com wrote: firstly, FOP 1.0 does not support Arabic or bidirectional languages; however, the current development trunk, which will lead to a new version FOP 1.1, does support Arabic; to download a nightly build snapshot of the current trunk, see [1]; for preliminary documentation on complex scripts support, see [2]; pay close attention to supported fonts; secondly, the $HOME/.foprc file is for configuring the fop shell script, e.g., setting shell or environment variables; this is different from using an fop.xconf file with the Fop java application; you need to specify a command line option to use an xconf configuration file, e.g., fop - c fop.xconf ..., more about which see [3] [1] http://ci.apache.org/projects/xmlgraphics/fop/snapshots/ [2] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html [3] http://xmlgraphics.apache.org/fop/trunk/configuration.html On Wed, Apr 18, 2012 at 10:14 PM, greencopperm...@hushmail.com mailto:greencopperm...@hushmail.com wrote: Hi. I'm on Debian Linux trying to change the default font for FOP so that the font contains Arabic glyphs. When I run FOP I get the error: .foprc: 1: Syntax error: newline unexpected My .foprc looks like this: fop version=1.0 renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop If I squash that hole section together into a single line, I instead get this error: .foprc: 1: Syntax error: redirection unexpected I'm using FOP Version 1.0. Is this a bug in FOP or is there a way around it? Best regards Martin - To unsubscribe, e-mail: fop-users- unsubscr...@xmlgraphics.apache.org mailto:unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users- h...@xmlgraphics.apache.org mailto:h...@xmlgraphics.apache.org - 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: Chinese PDFs and non embedded fonts
Just by itself the embed-url attribute does not imply that the font will be embedded. I know that the attribute name is confusing, and the documentation may not be up to date, but I believe that is the case. Fonts are subset embedded by default unless the referenced-fonts element is present, in which case they are referenced. On 4/24/12 4:15 PM, Jean-Philippe Courson wrote: Hi Glenn, Thanks for your reply. In your example, you are embedding the font: font embed-url=simsun.ttf the embed-url attribute will get the font embedded. I have no problem creating a chinese PDF when the font is embedded. The issue I am raising is when trying to reference (not embed) the font. Thanks for your help, Best regards, JP On 23 Apr 2012, at 15:26, Glenn Adams wrote: I just tried this with the font you referenced and had no problem. Attached is the configuration file and input file I used and resulting output. I'm using the current FOP 1.1dev (trunk) build. As Chris points out, you may wish to avoidauto-detect/. Also, you notice that I disabled the font cache and placed the font in a fonts subdirectory where I did the test. - 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: Single Line Blocks - Widows/Orphans/Keeps
Can you provide the simplest but complete FO file that shows the problem you are facing? It will be a lot easier to help if we have an example. Also, please indicate the FOP version you are using. On 5/1/12 4:16 PM, DVezina wrote: This is my first post so I apologize if this problem is asked elsewhere. I did a search and couldn't find an answer. My problem is that XSL-FO doesn't treat a single line block as a widow or orphan. The requirements of my stylesheet are to always keep two lines below a head. [CODE] fo:block xsl:use-attribute-set=topic.title widows=2 orphans=2 keep-with-next.within-column=alwaysTHIS IS MY HEAD/fo:block fo:block xsl:use-attribute-set=topic.para widows=2 orphans=2This is a short paragraph./fo:block fo:block xsl:use-attribute-set=topic.para widows=2 orphans=2This is a short paragraph./fo:block [CODE] Of course, if the first paragraph block contains two or more lines, it would keep those lines with the head and my requirements are satisfied. I must keep both of these lines with the head through the style sheet without knowing how many lines the blocks will make. Currently I count the characters in the block and if the block is less than a pre-determined number than add the attribute keep-with-next.within-column=1. This is a serious kluge and about 90% effective. Any other ideas? Thanks, DVezina - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Write to Catalog using FOP
Can you provide an example of a PDF generated with your PHP application? Is the the Java application using FOP starting from FO? On 5/2/12 8:22 PM, Joseph Speetjens wrote: Can anyone provide some guidance as to where to start to write to a Catalog object? We have applications written in PHP that allow us to embed XMl in the catalog, and now we have support for a JAVA application that uses FOP and we would like to do the same thing. Thanks, Joe - 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: Write to Catalog using FOP
As far as I know this is only possible to do out of the box with some extensions developed by Glenn Adams that I think have not been ported to the current FOP code base. Glenn, can you comment on this? There is more info here: http://article.gmane.org/gmane.text.xml.fop.user/32460/match=custom+key+dictionary+pdf. I pulled the code from the repository mentioned above and it works, i.e., you can add the /key (string) to the Catalog the way you intend. On 5/4/12 8:32 PM, Joseph Speetjens wrote: Luis, Thank you for offering to take a look. Attached is a PDF with the XML embedded in the Catalog. You will find it after the string that starts with /USCTbankruptcynotice Hopefully attachments can be sent to the forum this way. Joe Joseph Speetjens wrote: Can anyone provide some guidance as to where to start to write to a Catalog object? We have applications written in PHP that allow us to embed XMl in the catalog, and now we have support for a JAVA application that uses FOP and we would like to do the same thing. Thanks, Joe - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: getting error when use -print
There is indeed a bug. For now you can do this: fop xslfo.fo -print 1 note: I don't know if it will print... I can confirm it does send the job to the printer, but in my case the page comes blank. the issue may be with the printer or with FOP... On 5/16/12 6:16 PM, pr4321 wrote: I am getting the following error when using to print an .fo file with usig fop. C:\fop xslfo.fo -print May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.ArrayIndexOutOfBoundsException: 2 at org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL ineOptions.java:559) at org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions .java:325) at org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1 62) at org.apache.fop.cli.Main.startFOP(Main.java:158) at org.apache.fop.cli.Main.main(Main.java:205) XSLFO.fo file content: ?xml version=1.0 encoding=ISO-8859-1? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=A4 fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4 fo:flow flow-name=xsl-region-body fo:block text-indent=80mm space-before=0mmREPORT STATUS/fo:block fo:block text-indent=80mm space-before=0mm--/fo:block /fo:flow /fo:page-sequence /fo:root COMMAND IS;C:\fop xslfo.fo -print anyone please solve my problem Regards, Murali - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table continuation headers
Incidentally I started looking at this recently but it will be a couple of months before I am able to show some code. I haven't written anything so far but I found there is already some code in FOP for table markers. So we don't need to start from zero. On 6/25/12 4:34 PM, Stefan Hinz wrote: Thanks for confirming, Glenn! Cheers, Stefan On 25.06.2012 16:17, Glenn Adams wrote: On Mon, Jun 25, 2012 at 4:06 AM, Stefan Hinz stefan.h...@oracle.com mailto:stefan.h...@oracle.com wrote: Below is an explanation sent on behalf of my colleague Gavin who's just joined this list. He's mostly citing from Bob's fine book. :-) Thanks for Gavin's input, which is accurate to my knowledge. My understanding is that FOP 1.0 does not support the use of the |retrieve-table-marker| property with tables, and is unlikely to do so in the near future. See http://xmlgraphics.apache.org/fop/compliance.html, which implies that the property will likely not be supported in 1.1(?). A modified table header isn't an ideal solution - I'd prefer to insert a modified table title as in the XEP |rx:table-omit-initial-header| extension - but it would be better than nothing. Correct, FOP does not currently support retrieve-table-marker. There has been no activity on implementing this feature, so it definitely will not be in FOP 1.1. I can't say when a patch or a volunteer will materialize to work on this, so it will remain TBD until that time. G. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Help needed on Image rendering
I used your *.xml and *.xsl files, fixed the image paths, and ran from the command line: macmaxi:code lbernardo$ ../../Documents/fop-1.0/fop -xml test.xml -xsl test.xsl -pdf test.pdf 21 | grep SEVERE | sort -u SEVERE: Couldn't find hyphenation pattern en SEVERE: Image not found. URI: images/GES316847483.jpg. (No context info available) SEVERE: Image not found. URI: images/Gexpro.jpg. (No context info available) macmaxi:code lbernardo$ ls -l images/GES316847483.jpg ls: images/GES316847483.jpg: No such file or directory macmaxi:code lbernardo$ ls -l images/GES316847483.jpg ls: images/GES316847483.jpg: No such file or directory So, only two images could not be found and they are not in the zip you sent. The resulting PDF is a catalog of 679 pages. On 6/27/12 8:51 PM, Musale, Meenakshi - GEXPRO wrote: As an FYI.. I am using below jars. 1. avalon-framework-4.2.0.jar 2. barcode4j.jar 3. barcode4j-fop-ext.jar 4. barcode4j-fop-ext-complete.jar 5. batik-all-1.7.jar 6. classes12.jar 7. commons-io-1.3.1.jar 8.commons-logging-1.0.4.jar 9.fop.jar 10. fop-hyph.jar 11. serializer-2.7.0.jar 12. xalan-2.7.0.jar 13. xercesImpl-2.7.1.jar 14. xml-apis-1.3.04.jar 15. xml-apis-ext-1.3.04.jar 16. xmlgraphics-commons-1.4.jar *Regards,* ** ** *Meenakshi Musale* Web Operations IGate Americas Inc Gexpro, 1000 Bridgeport Avenue. Shelton, CT 06484, USA. Tel: (203) 925 - 2480 Email: meenakshi.mus...@gexpro.com blocked::mailto:meenakshi.mus...@gexpro.com *From:* Musale, Meenakshi - GEXPRO *Sent:* Wednesday, June 27, 2012 3:04 PM *To:* 'Rob Sargent' *Cc:* fop-users@xmlgraphics.apache.org *Subject:* RE: Help needed on Image rendering Hi Rob, I am sorry which files are you asking, image file or any other file? If you are asking about image file then, yes these files exist and no zero length files. I had attached image zip in my previous email which are being used in xml file. *Regards,* ** ** *Meenakshi Musale* Web Operations IGate Americas Inc Gexpro, 1000 Bridgeport Avenue. Shelton, CT 06484, USA. Tel: (203) 925 - 2480 Email: meenakshi.mus...@gexpro.com blocked::mailto:meenakshi.mus...@gexpro.com *From:* Rob Sargent [mailto:rsarg...@xmission.com] *Sent:* Wednesday, June 27, 2012 2:56 PM *To:* Musale, Meenakshi - GEXPRO *Cc:* fop-users@xmlgraphics.apache.org *Subject:* Re: Help needed on Image rendering Can you show that the file(s) do(es) in fact exist? And that they are no zero-length files? On 06/27/2012 12:34 PM, Musale, Meenakshi - GEXPRO wrote: Hi Rob, Attached code.zip contains 1. xml file which is having data used for PDF generation. 2. xsl file which has FOP tags for generating PDF. 3. Java code which in which xml, xsl is used to generate PDF. I am using FOP1.0 version and the type of image is jpg. Actual error message in log like org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg Jun 27, 2012 12:20:23 PM org.apache.fop.render.pdf.PDFRenderer putImage SEVERE: Image not found: /opt/apps/ecatalog/scripts/img/GES002746.jpg I have done testing with various scenarios and did compressed images but still some of the images not coming up properly. In the attached XML file almost 1570 number of images being used among that 50 + images blanks out. Please let me know if need any help. *Regards,* ** ** *Meenakshi Musale* Web Operations IGate Americas Inc Gexpro, 1000 Bridgeport Avenue. Shelton, CT 06484, USA. Tel: (203) 925 - 2480 Email: meenakshi.mus...@gexpro.com blocked::mailto:meenakshi.mus...@gexpro.com *From:* Rob Sargent [mailto:rsarg...@xmission.com] *Sent:* Tuesday, June 26, 2012 8:22 AM *To:* fop-users@xmlgraphics.apache.org *Subject:* Re: Help needed on Image rendering Show the fo (xml) you are feeding to fop. Show the actual error message. Show your configuration. Show which type of images work, which don't. On 06/26/2012 06:15 AM, Musale, Meenakshi - GEXPRO wrote: Hi, I am facing random issues with image rendering while PDF generation with FOP 1.0 version. Some images are coming properly but some of them are not. Images are present in location but still it gives exception :Image not found Please let me know where I can subscribe to solve my issue. Any help will be appreciated. *Regards,* ** ** *Meenakshi Musale* Web Operations IGate Americas Inc Gexpro, 1000 Bridgeport Avenue. Shelton, CT 06484, USA. Tel: (203) 925 - 2480 Email: meenakshi.mus...@gexpro.com blocked::mailto:meenakshi.mus...@gexpro.com
Re: FOP 1.0 -- some CGM graphics are not printing
I am surprised that the images show up at all. Since, AFAIK, FOP does natively support CGM you must be using some Image IO library (see http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio). So the restrictions will come from that library. What are you using? On 6/29/12 9:11 PM, froglander wrote: We have been using Apache FOP to create pdf files from xml generated from our database, customized xsl stylesheets, and they often include graphics. These graphics will usually be jpg, tif, or cgm. Some, but not all CGM files will show up in the print. We have a workaround of converting them to .tif to be able to print them, but would like to not have to do that conversion. What restrictions are there regarding printing cgm graphic files? Please let me know if more info is needed, thanks! -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-1-0-some-CGM-graphics-are-not-printing-tp36191.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: FOP 1.0 -- some CGM graphics are not printing
I meant to write FOP does NOT natively support CGM On 6/30/12 7:45 AM, Luis Bernardo wrote: I am surprised that the images show up at all. Since, AFAIK, FOP does natively support CGM you must be using some Image IO library (see http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio). So the restrictions will come from that library. What are you using? On 6/29/12 9:11 PM, froglander wrote: We have been using Apache FOP to create pdf files from xml generated from our database, customized xsl stylesheets, and they often include graphics. These graphics will usually be jpg, tif, or cgm. Some, but not all CGM files will show up in the print. We have a workaround of converting them to .tif to be able to print them, but would like to not have to do that conversion. What restrictions are there regarding printing cgm graphic files? Please let me know if more info is needed, thanks! -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-1-0-some-CGM-graphics-are-not-printing-tp36191.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: Image URL issue rendering XML into PDF
Error while loading the image indicates the error is during loading. So, it is not a URL issue but a problem with the image. If you provide the image we can confirm that. On 7/10/12 3:52 PM, michael.jerusa...@steria.com wrote: Hi everyone, I'm asking for a little help using FOP to render my XML file, which contains images (checked and unchecked boxes), into a PDF. My script is done, and works perfectly when I indicate in my xml file : checkboxhttp://10.6.66.134:7008/images/checkbox.gif/checkbox, this being an extern server that I cannot use in Production But when i want to test it in local on my computer, and replace the previous line with checkboxbox_check.gif/checkbox, my images being in the same folder than my script, and my XML and XSL files. I got the error message : Error in XObject : Error while loading image file:/home/emmji/tmp/xml/jni/box_check.gif : class java.lang.NullPointerException - null I know the image is found because I tried to rename it and got this error : [ERROR] Error while creating area : Error while recovering Image Informations (file:/home/emmji/tmp/xml/jni/box_check2.gif) : /home/emmji/tmp/xml/jni/box_check2.gif (No such file or directory) Here is the declaration of the variable and the code where I integrate my image : xsl:variable name=checkedbox xsl:value-of select=/root/param/checkbox/ /xsl:variable fo:block text-align=center fo:external-graphic src=url('{$checkedbox}') width=8px height=8px display-align=center/ /fo:block I think this is a matter of URL, but I don't understand why. Thanks for your help. Regards PS : I also tried : checkbox./box_check.gif/checkbox checkbox/home/emmji/tmp/xml/jni/box_check.gif/checkbox but I still end up with the same XObject errorCe message est à l'attention exclusive des destinataires désignés. Il peut contenir des informations confidentielles. Si vous n'êtes pas destinataire du message, merci d'en avertir immédiatement l'expéditeur et de détruire ce message. Le contenu de ce message ne pourrait engager la responsabilité de Steria que s'il a été émis par une personne dûment habilitée agissant dans le strict cadre de ses fonctions et à des fins non étrangères à ses attributions. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis. This message is intended exclusively for the designated addressee. It may contain confidential material. If you are not the correct addressee, please notify the sender immediately and destroy the message. The content of this message will engage the responsibility of Steria only if it has been sent by an authorized person acting in the strict scope of his functions and for purposes that are related to his competence. Although reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus. - 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: PNG in FOP .95
Looks like you are using an URL (HTTP ERROR 500...) to reference the image. Error 500 is an internal server error. Are you sure the issue is with FOP? On 7/15/12 10:45 AM, Peter D Sparkes wrote: Hi, I am using fop 0.95 (inside cocoon 2.1) and when I insert a png image in fo:external-graphic I get the following error: HTTP ERROR: 500 com%2Fsun%2Fmedia%2Fjai%2Fcodec%2FFileCacheSeekableStream Help please Peter Sparkes
Re: PNG in FOP .95
Try to run your example from the command line; if that fails, then try from the command line with a more recent version of FOP; if that still fails post your example and image and I will investigate. On 7/22/12 8:31 AM, Peter D Sparkes wrote: The problem seems to be that the server is not finding the png codec. However, I don't know were it should be installed on the server or where to get it from Peter On 15/07/2012 18:55, Luis Bernardo wrote: Looks like you are using an URL (HTTP ERROR 500...) to reference the image. Error 500 is an internal server error. Are you sure the issue is with FOP? On 7/15/12 10:45 AM, Peter D Sparkes wrote: Hi, I am using fop 0.95 (inside cocoon 2.1) and when I insert a png image in fo:external-graphic I get the following error: HTTP ERROR: 500 com%2Fsun%2Fmedia%2Fjai%2Fcodec%2FFileCacheSeekableStream Help please Peter Sparkes
Re: Force Page Break in fo:list-item
You probably need to upgrade to trunk. I know this works in trunk: list-block list-item . /list-item list-item break-before=page list-item-labellabel/list-item-label list-item-bodybody/list-item-body /list-item /list-block and it also works if you put the break inside the body. if you are stuck with 1.0 and it doesn't work you can always create two lists and put the break in between. On 7/30/12 11:50 PM, Bonekrusher wrote: Hi all, I am using FOP 1.0 and 0.95. How can I force a Page Break in a fo:list-item? I've tried break-before which drops the content and keep-with-next on the list-block or list-item. Neither work. Thx -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Force-Page-Break-in-fo-list-item-tp36554.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: PNG's embedded in PDFs, which are converted using PDF Image
Transparency support is PostScript is very limited (this is not a FOP limitation but a PostScript limitation). If I understood well you are generating PostScript before sending to the printer. I think that is the issue. On Thu, Sep 6, 2012 at 11:07 AM, Martin Edge martin.e...@intellimail.com.au wrote: Thanks Mehdi - it does help :-) --- Martin Edge --- On 06/09/2012, at 8:05 PM, mehdi houshmand med1...@gmail.com wrote: Hi Martin, I think we had a look at this issue at some point last year, as far as I remember, transparencies aren't very well supported with the pdf-image plugin. I think the best way to implement them would be to use transparency groups to that you can better control layered transparencies. However, I haven't looked at how easy/hard any of this would be to implement. We investigated this a long time ago, so I could be wrong, but from your findings it looks like I'm not far off the mark. Sorry if that's not really of any help to you, Mehdi On 6 September 2012 10:46, Martin Edge martin.e...@intellimail.com.auwrote: Hi, ** ** Wondering if I could get some advice on how to address the issue whereby if a PNG is used within a PDF with a transparent background, and that image is then put within a PDF, where then we rely on pdf-image to convert (because ultimately I want to have the output use the less printer-resource hungry postscript) – that the transparency is converted to a black colour. ** ** Obviously the easiest answer is to just not use transparency, but I am dealing with PDFs supplied from external clients, so it would be better if I have a way of managing this. ** ** Ultimately what I am using this for is to generate flyer sheets for printing, where I am taking a base PDF as initial artwork, and then adding personalised address information for each recipient. ** ** Thanks in advance, Martin ** ** image001.jpg *Martin Edge* ** ** ** **
Re: Output multiple pages to 1 PNG image
If you have in mind multiple pages in one image the way TIFF does then that is not possible with PNG. There is a related format, MNG, that could do that, but FOP cannot output to that and in any case, your device would probably not be able to handle MNG. AFAIK, none of the browsers supports that natively, although there is a plugin to some of them. On 10/9/12 12:40 AM, justin.frost wrote: Hi all, We use FOP to create multiple page PDF output and this is working great. We now have a project to support a device which cannot handle PDF's, so we need to stream the output as a PNG image. This is working great for 1 page output, but if it is more than 1 page, we of course only get the first page as each page is a separate PNG. Is there anyway to output all pages to a single PNG ? We display the output in an IFRAME as a streamed PNG image, so more than one PNG file is not an option. Cheers. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Output-multiple-pages-to-1-PNG-image-tp36997.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: fo:retrieve-table-marker, exclude first page
You don't need to have different markers. You can achieve that by having just one marker but have the content of the marker change from the first page to the second. See the attached example that I think does something similar to what you want. On Thu, Oct 11, 2012 at 12:44 PM, Bonekrusher djs...@yahoo.com wrote: Hi, I am working on using the new fo:retrieve-table-marker that was implemented in the trunk and have a question in regards to how to achieve the following: I want my a marker to appear only on the first page and another marker to appear on the Second page thru last: fo:retrieve-table-marker retrieve-class-name=primary-para-continuation-first retrieve-position-within-table=first-starting retrieve-boundary-within-table=table/ fo:retrieve-table-marker retrieve-class-name=primary-para-continuation retrieve-position-within-table=last-ending retrieve-boundary-within-table=table/ The above markers show up on all pages. Desired output: Para Title (primary-para-continuation-first) Para Title Continued (primary-para-continuation) Para Title Continued (primary-para-continuation) Thanks For the help -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-retrieve-table-marker-exclude-first-page-tp37020.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 example-1.fo Description: Binary data example-1.pdf Description: Adobe PDF document - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Skipping page numbers on cover sheets
If I understand what you are saying, for every chapter you use a new page-sequence. Then, all you have to do is set initial-page-number=1in the first chapter, and set initial-page-number=auto in the remaining chapters. On 10/13/12 11:28 PM, Samuel Penn wrote: On Saturday 13 October 2012 10:45:32 Bonekrusher wrote: Hi, Simply put your cover in its own page-sequence. Your chapter page-sequence should then be set to initial-page-number=1. That's what I'm doing at the moment. However, each chapter has it's own page-sequence (there are different formats for chapters, depending on whether it's two column or single column layout for that chapter). I need only the first chapter to have initial-page-number=1. Can page sequences be nested? Or can I change the format of pages without starting a new page sequence? -- Be seeing you, Games: http://www.glendale.org.uk/ Sam. Posts: http://www.google.com/profiles/samuel.penn
Re: How CMYK Color can be used in FO?
Someone may correct me if I get this wrong, but I think the issue is that you are using cmyk() inside SVG, not FO. The error you get is thrown by Batik, not really FOP. I think the documentation needs to be clearer about this. You can check that by adding a background-color=cmyk(1, 0, 0, 0) to the block element that contains the SVG, FOP will handle the background-color as advertised. On 10/15/12 3:10 PM, Jawed Islam wrote: Hello, I have an SVG which has many colors definitions in it I enclosed it in an FO fo:instream-foreign-object/fo:instream-foreign-object tag to convert it into an FO file. To convert it into a CMYK PDF I converted all the colors of the SVG to their respective CMYK codes like cmyk(0,0,20%,40%) as explained in the Apache FO documentation (http://xmlgraphics.apache.org/fop/trunk/extensions.html#color-function-cmyk) but that does not seem to work, every time I execute the command fop input_file.fo output_file.pdf I get an error The attribute fill represents an invalid CSS value (cmyk(0%,0%,20%,40%)). As it is clearly mentioned that the cmyk() function is supported by Apache FOP I find it hard to believe that it would not work, I am surely missing some tricks here this is what I am looking for. BTW the version I am using of FOP is 1.1 on Windows XP. Thanks, Jawed Islam - 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: Fop 1.0 new install, get Can't find configuration file, aborting
I assume you are running from the command line... Is that really the error message you get? I tried passing a non existing file to the -c switch and I don't get that (also used 1.0). I also do not find the message in the current source. FOP can use a config file but does not need one. So if you get the error when you don't use -c then I think the problem is somewhere else. On 10/16/12 10:12 PM, stan69 wrote: Hi, I'm stuck! I have fop working wonderfully on my PC but I've just uploaded it to my host (Linux x64) and now when I run fop I get the message: Can't find configuration file, aborting I have tried fop -c config/fop.xconf but that made no difference. I have tried java -jar build/fop.jar and I get (.:25545): Gtk-WARNING **: cannot open display: I am running the latest JRE (7.0_09) Any ideas? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Fop-1-0-new-install-get-Can-t-find-configuration-file-aborting-tp37055.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: Adobe reader doesn't display graphic data
You are not the first one to try to use FOP in a non conventional way. But the fact that a PDF generated by FOP gives an error with Adobe Reader deserves some investigation. Can you provide your example source? On 10/17/12 3:32 PM, vic51 wrote: Hi, Thanks Pascal for your answer. I am new to FOP and I my implementation was inspired by examples.embedding.java.embedding.ExampleJava2D2PDF.java I understand that this implémentation doesn't match with this list input. Victor -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Adobe-reader-doesn-t-display-graphic-data-tp37057p37070.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: FOP 1.1 out of memory
You can control how much memory the jvm uses by using the -Xmx flags. So I think you can try that first. The only situation where I know that FOP runs out of memory (also in a machine with 8 GB) is when you have a very long paragraph (and I mean a paragraph with 200K+ words). Then the line breaking algorithm has to hold the full paragraph in memory and decide on the optimal break points and that very likely will use all available memory. Do you know if you have anything like that in your book? Having thousands of pages by itself should not be an issue. It really depends on the content and on how the line breaks happen (if you insert line breaks FOP uses a lot less memory than if you don't). On 10/24/12 7:49 PM, Stefan Hinz wrote: I like FOP 1.1 a lot: Unlike previous versions, it tells you which page it's processing, which can make debugging easier, and also it gives you that warm fuzzy feeling that you're somewhat in control of things. :-) However, with really big books, I'm hitting a wall, like this: Okt 24, 2012 8:21:16 PM org.apache.fop.events.LoggingEventListener processEvent INFO: Rendered page #2630. Exception in thread main java.lang.OutOfMemoryError: GC overhead limit exceeded That is, FOP stops at about 2600 pages with an out of memory error. On Stackoverflow (http://preview.tinyurl.com/94qute5), there's an indication why this happens: This message means that for some reason the garbage collector is taking an excessive amount of time (by default 98% of all CPU time of the process) and recovers very little memory in each run (by default 2% of the heap). This effectively means that your program stops doing any progress and is busy running only the garbage collection at all time. Does this mean it's a FOP 1.1 bug, or would there be anything I could do to give it/Java more memory and prevent it from failing? The error happens on an 8 GB RAM 4-core machine. At the time FOP ended, there was like 2 GB RAM left. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: fop -version to include version number with svn_trunk?
If you checkout from trunk shouldn't you get trunk? Unless you checkout one of the branches, but none of them are pegged to a particular version, AFAIK. I think they were created off trunk. In any case, looking at the Version.getVersion() in the current trunk, it seems that any branch created off trunk will return the branch in the version. On 10/24/12 5:28 PM, Philip Olson wrote: Hello, While testing multiple FOP versions, sometimes I confuse myself and forget my current version. I nearly always checkout from SVN and fop -version always returns FOP Version svn-trunk but I request that it also include the branch version number. So either 0.9, 1.0, 1.1, etc. Thoughts? Regards, Philip - 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: fop-pdf-images
The new fop-pdf-images plugin is available here: https://www.apache.org/dist/xmlgraphics/fop-pdf-images/. I expect to add this information to the website soon. On 10/30/12 6:31 AM, Martin Edge wrote: Cool thanks – I have a work around for now *From:*Glenn Adams [mailto:gl...@skynav.com] *Sent:* Tuesday, 30 October 2012 5:09 PM *To:* fop-users@xmlgraphics.apache.org; martin.e...@intellimail.com.au *Subject:* Re: fop-pdf-images Luis Bernardo is in the process of creating a new PDF images plugin that will interoperate with FOP 1.1, so please be patient (of course you are free to build yourself, if you can't wait). On Tue, Oct 30, 2012 at 2:29 AM, Martin Edge martin.e...@intellimail.com.au mailto:martin.e...@intellimail.com.au wrote: Hi, I downloaded FOP 1.1 and also downloaded the latest PDF-images plugin (2.0.0 and 2.0.1), here is the error I get ; Could not convert FO to PDF: Exception in thread main java.lang.VerifyError: (class: org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter, method: cloneForNewDocument signature: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Collection;)Ljava/lang/Object;) Incompatible argument to function at org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createFormForPDF(AbstractPDFBoxHandler.java:90) at org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:57) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:271) at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:150) at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1272) at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1259) at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:816) at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785) at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678) at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceArea(AbstractPathOrientedRenderer.java:710) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.intermediate.IFRenderer.renderBlockViewport(IFRenderer.java:816) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:578) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451) at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738) at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428) at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352) at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299) at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748) at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273) at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238) at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597) at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123) at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage
Re: fop-pdf-images
I see it in the master mirror. Maybe you are being directed to a secondary mirror? In any case, the files should propagate in a few hours. On 10/31/12 12:12 AM, Martin Edge wrote: _is_ available, or will be? :) Seems pretty empty right now. From: Luis Bernardo [mailto:lmpmberna...@gmail.com] Sent: Wednesday, 31 October 2012 11:05 AM To: fop-users@xmlgraphics.apache.org Subject: Re: fop-pdf-images The new fop-pdf-images plugin is available here: https://www.apache.org/dist/xmlgraphics/fop-pdf-images/. I expect to add this information to the website soon. On 10/30/12 6:31 AM, Martin Edge wrote: Cool thanks – I have a work around for now From: Glenn Adams [mailto:gl...@skynav.com] Sent: Tuesday, 30 October 2012 5:09 PM To: fop-users@xmlgraphics.apache.org; martin.e...@intellimail.com.au Subject: Re: fop-pdf-images Luis Bernardo is in the process of creating a new PDF images plugin that will interoperate with FOP 1.1, so please be patient (of course you are free to build yourself, if you can't wait). On Tue, Oct 30, 2012 at 2:29 AM, Martin Edge martin.e...@intellimail.com.au wrote: Hi, I downloaded FOP 1.1 and also downloaded the latest PDF-images plugin (2.0.0 and 2.0.1), here is the error I get ; Could not convert FO to PDF: Exception in thread main java.lang.VerifyError: (class: org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter, method: cloneForNewDocument signature: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Collection;)Ljava/lang/Object;) Incompatible argument to function at org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createFormForPDF(AbstractPDFBoxHandler.java:90) at org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:57) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:271) at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:150) at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1272) at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1259) at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:816) at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785) at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678) at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceArea(AbstractPathOrientedRenderer.java:710) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.intermediate.IFRenderer.renderBlockViewport(IFRenderer.java:816) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:578) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451) at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738
Re: Cell border rendering error (thicker) with number-column-spanned
First, I understand why this issue is annoying. When I open the document Adobe defaults in my monitor to a 170% zoom and the problem is clearly visible. Incidentally the problem is not visible at 100%. But I looked at the document and can guarantee that the problem is with Adobe Reader. The thickness of the segments are always the same. In FOP 0.20.5 the cell that spans three columns is drawn with 4 segments. In FOP 1.0 the cell is drawn with 8 segments. Maybe due to some rounding error Adobe is drawing the middle segments at a different thickness for some magnification values, but in the PDF the thickness is always the same. I suggest you change your table layout. Maybe by nesting tables you can achieve the same visual output without needing to use spanning across columns... On 11/2/12 1:55 PM, reevev wrote: Hi, Thanks for your reply. While I can confirm that disabling Enhance thin lines corrects the display it doesn't solve the issue that the same templates rendered correctly even with this option enabled when we use 0.20.5 to generate the pdf. Our issue is that Enhance thin lines is turned on by default and for most users they will end up seeing a poor looking PDF now that we've started using Fop 1.0, vs. a correct looking PDF prior to the upgrade, so from the end user's perspective this is broken. Is there any way we can have the same sort of rendering used in 0.20.5 for table borders? Thanks, Reeve. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37229.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: Inter-cell lines no longer spurious pdf viewer problem?
I assume you refer to the sidebar.fo sample. As you said, the lines are not visible in Adobe. They are visible in Mac's own Preview though. I looked at the *.fo and although I don't understand what you are trying to achieve I do see that the output in Preview is not what I would expect. Can you provide a smaller example? Meanwhile, if you have a problem in hands with unexpected lines due to the use of row or column spans try to get around it by nesting tables. On 11/5/12 7:41 PM, Rob Sargent wrote: Correction: the referenced previous post did include an fo of the table in question. rjs On 11/05/2012 12:38 PM, Rob Sargent wrote: Glenn, My apologies for not including relevant fo etc but the original post I referenced didn't need them, explained the situation well enough for at least one available savant and I am only asking if there is (another) silent change in the pdf output irrespective of any fo input. (The other silent change being the in-stream description of rgb colors.) rjs On 11/05/2012 10:58 AM, Glenn Adams wrote: Rob, I'm sure you realize nobody can respond to such a query unless they can read your mind to learn the input you used and the output you are seeing. Since such skills are hard to come by, I'd suggest you *always* provide sample input and output files when asking such a question. We devs are very few in number and you absolutely *must* do everything possible to help us determine the source of a problem. There is a well defined process here: submit a bug report with a reduced (maximally minimal) input file and an output file. Absent this, don't expect any response. G. On Tue, Nov 6, 2012 at 1:28 AM, Rob Sargent rsarg...@xmission.com mailto:rsarg...@xmission.com wrote: In January 2011, I asked about the spurious lines between rows of tables (here http://apache-fop.1065347.n5.nabble.com/Can-t-get-rid-of-line-between-rows-tt12480.html) and that was all on fop-1.0. Now on fop-1.1 and the lines are showing up on the pages from the print shop, but not our not local (low-res) printers. Is this another silent change in fop-1.1 pdf generataion?
Re: Need help to get Arabic working with FOP
an example is attached. in fact it was provided in this list by someone else by I am including also a fop.xconf file. On Thu, Nov 8, 2012 at 11:39 AM, Bernardo Gonzalez Kriegel bgkrie...@gmail.com wrote: Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct font b) fop-1.1 c) fo generation d) fop configuration I am also frustrated, I have not been able to generate a PDF in Arabic. So, these are my questions/experiences: a) I'm using Arial Unicode MS [1]. It's a good choice? b) I downloaded the last version from [2] c) I tried xsltproc, that converts any gliph into character codes (ej. 3.8 (#x628;#x627;#x644;#x639;#x631;#x628;#x64A;#x629;)), or saxon that leaves the gliphs intact (3.8 (بالعربية)) d) I've edited fop.xconf to register the font In any case, not only fop refuses to generate a pdf, complaining about missing glyphs and hyphenation, but aborts with many org.apache.fop.fo.ValidationException. So, anyone know's or can point to a document to learn about these questions a) What font is recommended, or have been used with success? b) What is the best way to generate the FO? c) What configuration do you use to register the font? d) There are any examples? Best regards, Bernardo [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24 [2] http://xmlgraphics.apache.org/fop/1.1/ -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet eduard.ti...@i-free.com wrote: Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica-Bold. Glyph ? (0x633, afii57427) not available in font Helvetica-Bold. Glyph ? (0x645, afii57445) not available in font Helvetica-Bold. Glyph ? (0x64a, afii57450) not available in font Helvetica-Bold. Glyph ? (0x629, afii57417) not available in font Helvetica-Bold. Glyph ? (0x646, afii57446) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Times-Roman. Glyph ? (0x627, afii57415) not available in font Times-Roman. Glyph ? (0x625, afii57413) not available in font Times-Roman. Glyph ? (0x647, afii57470) not available in font Times-Roman. Glyph ? (0x62a, afii57418) not available in font Times-Roman. Glyph ? (0x642, afii57442) not available in font Times-Roman. Glyph ? (0x648, afii57448) not available in font Times-Roman. Glyph ? (0x649, afii57449) not available in font Times-Roman. Glyph ? (0x62e, afii57422) not available in font Times-Bold. Glyph ? (0x627, afii57415) not available in font Times-Bold. Glyph ? (0x641, afii57441) not available in font Times-Bold. Glyph ? (0x625, afii57413) not available in font Times-Bold. Glyph ? (0x650, afii57456) not available in font Times-Bold. Glyph ?
Re: Inter-cell lines no longer spurious pdf viewer problem? RESOLVED
Rob, I looked with more time at this issue and I think that my previous statement that I was seeing lines where they should not be was incorrect. I think they should be there because they are in the *fo source! It is true that no lines appear with Adobe, but they are visible both with Mac's Preview and Linux's Evince. But the lines are only in the column that does not spans rows, the one with the blue background. I do not see them in the column that spans rows. More than that I do not see any unexpected drawing commands in the PDF source. Can you please explain again what lines are you seeing in the printer output? Are they in the blue column or in the white column? On 11/8/12 5:40 PM, Rob Sargent wrote: We use iText as well as FOP in producing our printable product. Some pages get a black background from iText (certain graphics look better that way). When the black background is under the sidebar (as made with the referenced sidebar.fo) the nuisance-some inter-cell lines expose the black underlay. (Our fix is to not put the black under the sidebar.) In the original thread Jeremias Maerki wrote I suspect it's once more Adobe's anti-aliasing to be blamed. And this won't show up in print, BTW. To get rid of this on display, go to Acrobat's Preferences Dialog, select Page Display and enable Enhance Thin Lines (AR X) or disable Smooth line Art. You may have to disable Use 2D graphics acceleration, too. Nothing FOP can do at the moment. I've recently explained on this list what would need to be done to work around Adobe's problem. Since there is a path whereon they do show up in print, I wonder if this suggested work-around should be revisited? It's not clear to me that this is still out of FOP's hands? Thank you for your indulgence, rjs On 11/05/2012 05:10 PM, Glenn Adams wrote: remove elements/attrs until the problem goes away and only comes back when adding the element/attr just removed (no matter what else is removed) On Tue, Nov 6, 2012 at 8:05 AM, Rob Sargent rsarg...@xmission.com mailto:rsarg...@xmission.com wrote: I have reviewed the sidebar.fo http://sidebar.fo and it really cannot be substantially reduced. It simply fills the outer edge of our pages - region-start or region end - with a narrow two-column, five-row table stretching the length of the page. The inner column is just spacer and the outer column gets the section name(s) and number, a rule and a page number. The names are supplied in a rotated svg (not included).
Re: Inter-cell lines no longer spurious pdf viewer problem? RESOLVED
yes, I see the problem. it is indeed strange but I think it is the result of the fact that each cell is painted independently and even though they touch each other (the common edges of adjacent cells have exactly the same coordinates) the viewer (and apparently your printer) create an artificial line in between. maybe this will need to be revisited one day... in any case, in your particular example you probably can get around the problem by doing things differently. maybe putting the background color in the side region instead of giving a background color to the cells of the table. On 11/8/12 11:03 PM, Rob Sargent wrote: Hopefully this latest one is more direct. On 11/08/2012 04:00 PM, Glenn Adams wrote: what i said about maximally minimizing your test FO; when you don't do so, you lead devs astray On Thu, Nov 8, 2012 at 2:39 PM, Rob Sargent rsarg...@xmission.com mailto:rsarg...@xmission.com wrote: Please find attached a new fo which defines the sidebar for the left pages only. The blue column will show the four lines separating each row, at least in Evince 3.4.0 (using poppler/cairo(0.18.4)) On 11/08/2012 03:19 PM, Luis Bernardo wrote: Rob, I looked with more time at this issue and I think that my previous statement that I was seeing lines where they should not be was incorrect. I think they should be there because they are in the *fo source! It is true that no lines appear with Adobe, but they are visible both with Mac's Preview and Linux's Evince. But the lines are only in the column that does not spans rows, the one with the blue background. I do not see them in the column that spans rows. More than that I do not see any unexpected drawing commands in the PDF source. Can you please explain again what lines are you seeing in the printer output? Are they in the blue column or in the white column? On 11/8/12 5:40 PM, Rob Sargent wrote: We use iText as well as FOP in producing our printable product. Some pages get a black background from iText (certain graphics look better that way). When the black background is under the sidebar (as made with the referenced sidebar.fo http://sidebar.fo) the nuisance-some inter-cell lines expose the black underlay. (Our fix is to not put the black under the sidebar.) In the original thread Jeremias Maerki wrote I suspect it's once more Adobe's anti-aliasing to be blamed. And this won't show up in print, BTW. To get rid of this on display, go to Acrobat's Preferences Dialog, select Page Display and enable Enhance Thin Lines (AR X) or disable Smooth line Art. You may have to disable Use 2D graphics acceleration, too. Nothing FOP can do at the moment. I've recently explained on this list what would need to be done to work around Adobe's problem. Since there is a path whereon they do show up in print, I wonder if this suggested work-around should be revisited? It's not clear to me that this is still out of FOP's hands? Thank you for your indulgence, rjs On 11/05/2012 05:10 PM, Glenn Adams wrote: remove elements/attrs until the problem goes away and only comes back when adding the element/attr just removed (no matter what else is removed) On Tue, Nov 6, 2012 at 8:05 AM, Rob Sargent rsarg...@xmission.com mailto:rsarg...@xmission.com wrote: I have reviewed the sidebar.fo http://sidebar.fo and it really cannot be substantially reduced. It simply fills the outer edge of our pages - region-start or region end - with a narrow two-column, five-row table stretching the length of the page. The inner column is just spacer and the outer column gets the section name(s) and number, a rule and a page number. The names are supplied in a rotated svg (not included). - 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: fop-pdf-images
The new location for the fop-pdf-images plugin is https://dist.apache.org/repos/dist/dev/xmlgraphics/. Since the new website is in the process of going live this information will be added to it after that happens. On 10/31/12 12:05 AM, Luis Bernardo wrote: The new fop-pdf-images plugin is available here: https://www.apache.org/dist/xmlgraphics/fop-pdf-images/. I expect to add this information to the website soon. On 10/30/12 6:31 AM, Martin Edge wrote: Cool thanks – I have a work around for now *From:*Glenn Adams [mailto:gl...@skynav.com] *Sent:* Tuesday, 30 October 2012 5:09 PM *To:* fop-users@xmlgraphics.apache.org; martin.e...@intellimail.com.au *Subject:* Re: fop-pdf-images Luis Bernardo is in the process of creating a new PDF images plugin that will interoperate with FOP 1.1, so please be patient (of course you are free to build yourself, if you can't wait). On Tue, Oct 30, 2012 at 2:29 AM, Martin Edge martin.e...@intellimail.com.au mailto:martin.e...@intellimail.com.au wrote: Hi, I downloaded FOP 1.1 and also downloaded the latest PDF-images plugin (2.0.0 and 2.0.1), here is the error I get ; Could not convert FO to PDF: Exception in thread main java.lang.VerifyError: (class: org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter, method: cloneForNewDocument signature: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Collection;)Ljava/lang/Object;) Incompatible argument to function at org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createFormForPDF(AbstractPDFBoxHandler.java:90) at org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:57) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:271) at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:150) at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1272) at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1259) at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:816) at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785) at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678) at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceArea(AbstractPathOrientedRenderer.java:710) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.intermediate.IFRenderer.renderBlockViewport(IFRenderer.java:816) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:578) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451) at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738) at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428) at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352) at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299) at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748) at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273) at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238) at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597
Re: linearized PDF
FOP can't do that. I don't know about PDFBox but judging from the fact that there is a open issue regarding that (https://issues.apache.org/jira/browse/PDFBOX-19) probably it doesn't either. Supposedly QPDF does it. On 11/17/12 2:20 PM, polymorphisme wrote: Hello, I'm looking for if I can obtain a linearized PDF with FOP 1.0 ? And if no, can I do that with PDFBox ? Thanks. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/linearized-PDF-tp37367.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: FOP 1.1 + latest PDF-image plugin not so happy
Can you please provide an example that causes this? I did not see the issue in the tests I ran, but the examples were also quite simple. On Tue, Nov 20, 2012 at 2:14 AM, Martin Edge martin.e...@intellimail.com.au wrote: Hi, Have upgraded to FOP 1.1 and the latest build of the pdf-image library, and as much as it’s seems pretty clear it’s a PDFBox issue more than anything, I’m seeing this; 20/11/2012 1:11:25 PM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Error while writing an image to the target file. Reason: java.io.IOException: The handle is invalid java.io.IOException: The handle is invalid at java.io.RandomAccessFile.seek(Native Method) at org.apache.pdfbox.io.RandomAccessFile.seek(RandomAccessFile.java:59) at org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:189) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:110) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:141) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:110) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:106) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:200) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:110) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:106) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:200) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:110) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:106) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:200) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:110) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:106) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.createFormFromPDFBoxPa Exactly the same stylesheet / PDF works in FOP 1.0 and 2.0.0 … I have managed to achieve what I need using the old version – but wondering if there is a suggestion on how to get past this in the new version? Thanks Martin. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP- Trunk - Duplicate LayoutManagers for class
Can you provide an example? I just tried to put an inline inside a marker the way you describe and there were no problems. You also say this only happens after you pretty print but my example is already pretty printed. So there must be something else going on. So if you provide your example I will take a look. On 11/23/12 3:26 PM, Bonekrusher wrote: I was able to narrow down the error to a marker with a child fo:inline: fo:marker marker-class-name=primary-para-continuation fo:inlineMY PARA - Cont/fo:inline /fo:marker Would this be a markup error rather than a java.lang.IllegalStateException: Duplicate LayoutManagers class org.apache.fop.fo.flow.RetrieveTableMarker exception? Also, is it possible for the Exception to provide the FO line number? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37394.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: fox:external-document problems
I tried your example in a Mac, with exactly the same version of Java you have, and it worked with no problems. I assume that by stand alone you mean command line (that is how I ran it). Did you get the fop-pdf-images plugin from https://dist.apache.org/repos/dist/dev/xmlgraphics/binaries/? On 11/25/12 11:32 PM, Jonathan Seng wrote: Hello, I am trying to use fox:external-document to include pdf files using FOP 1.1. I am doing this embedded, but have reproduced the problems in a stand-alone test case. The embedded problems appear on Apple Java 1.6.0_37 64 bit and Oracle Java 1.6.0_34 on Windows 64. The stand-alone test case was only run on the Apple Java (listed above). The first problem was previously mentioned on the mailing list: The fop-pdf-images JAR being required. If this is required, it should be included or documented clear as day (especially on the extensions.html documentation page for fox:external-document). After including all four .jars from the fop-pdf-images download, I get the following exception: Exception in thread main java.lang.VerifyError: (class: org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter, method: cloneForNewDocument signature: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Collection;)Ljava/lang/Object;) Incompatible argument to function at org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createFormForPDF(AbstractPDFBoxHandler.java:90) at org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:57) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:271) at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:150) at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1272) at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1259) at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:816) at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785) at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678) at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451) at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738) at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428) at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352) at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299) at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748) at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273) at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238) at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597) at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123) at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312) at org.apache.fop.layoutmgr.ExternalDocumentLayoutManager.makePageForImage(ExternalDocumentLayoutManager.java:173) at org.apache.fop.layoutmgr.ExternalDocumentLayoutManager.activateLayout(ExternalDocumentLayoutManager.java:116) at org.apache.fop.area.AreaTreeHandler.endExternalDocument(AreaTreeHandler.java:289) at org.apache.fop.fo.extensions.ExternalDocument.endOfNode(ExternalDocument.java:99) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181) at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:261) at
Re: fox:external-document problems
Looks like the jars are not being found in the classpath. Your embedded example is run from the command line or in a web container? On 11/26/12 12:44 AM, Jonathan Seng wrote: Thank you. No, I used the ones last mentioned on the mailing list. The link did not seem right, but I haven't seen any documentation on this. The latest version fixed the stand-alone / command-line test. Unfortunately, the embedded usage (only tested on windows) with all four .jars included (as well as the FOP 1.1 .jars) is throwing the following exceptions: Exception in thread AWT-EventQueue-0 java.lang.NoClassDefFoundError: org/apache/pdfbox/pdmodel/encryption/BadSecurityHandlerException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.xmlgraphics.util.Service.providers(Service.java:85) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.discoverClasspathImplementations(ImageImplRegistry.java:107) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.init(ImageImplRegistry.java:79) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.init(ImageImplRegistry.java:88) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.getDefaultInstance(ImageImplRegistry.java:97) at org.apache.xmlgraphics.image.loader.ImageManager.init(ImageManager.java:63) at org.apache.fop.apps.FopFactory.init(FopFactory.java:178) at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190) … Caused by: java.lang.ClassNotFoundException: org.apache.pdfbox.pdmodel.encryption.BadSecurityHandlerException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 53 more Am I missing something else? Thank you, Jonathan On Nov 25, 2012, at 4:29 PM, Luis Bernardo wrote: I tried your example in a Mac, with exactly the same version of Java you have, and it worked with no problems. I assume that by stand alone you mean command line (that is how I ran it). Did you get the fop-pdf-images plugin from https://dist.apache.org/repos/dist/dev/xmlgraphics/binaries/? On 11/25/12 11:32 PM, Jonathan Seng wrote: Hello, I am trying to use fox:external-document to include pdf files using FOP 1.1. I am doing this embedded, but have reproduced the problems in a stand-alone test case. The embedded problems appear on Apple Java 1.6.0_37 64 bit and Oracle Java 1.6.0_34 on Windows 64. The stand-alone test case was only run on the Apple Java (listed above). The first problem was previously mentioned on the mailing list: The fop-pdf-images JAR being required. If this is required, it should be included or documented clear as day (especially on the extensions.html documentation page for fox:external-document). After including all four .jars from the fop-pdf-images download, I get the following exception: Exception in thread main java.lang.VerifyError: (class: org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter, method: cloneForNewDocument signature: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Collection;)Ljava/lang/Object;) Incompatible argument to function at org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createFormForPDF(AbstractPDFBoxHandler.java:90) at org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:57) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:271) at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:150) at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1272) at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1259) at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:816) at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785) at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866
Re: FOP- Trunk - Duplicate LayoutManagers for class
Thanks. Yes, I can reproduce it. While this is investigated I suggest that either you (a) place the inline around the retrieve table marker (instead of the marker), or (b) remove the spaces/breaks between /fo:inline and /fo:marker. On 11/23/12 11:45 PM, Bonekrusher wrote: Here is another copy with the marker commented out output-marker-error.fo http://apache-fop.1065347.n5.nabble.com/file/n37400/output-marker-error.fo which also triggers the error. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37400.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: fox:external-document problems
On 11/26/12 2:06 AM, Jonathan Seng wrote: Yes, it was the jars in the class path this time…. You would expect a huge bloated IDE (who shall remain nameless) to actually handle all four selected, not just two of them. Now, it works embedded for me (in a Java desktop application, believe it or not…. No web up my sleeve…). That leaves me with the question of where was the documentation that these libraries were needed and where to download them? That is a fair question. Since the FOP was in the process of being revamped (the new site went live today) we decided not to update the old site with information about fop-pdf-images and instead add it to the new site once it becomes available. Since that has happened now expect to see the information there in a couple of days. Thank you, Jonathan On Nov 25, 2012, at 4:59 PM, Luis Bernardo wrote: Looks like the jars are not being found in the classpath. Your embedded example is run from the command line or in a web container? On 11/26/12 12:44 AM, Jonathan Seng wrote: Thank you. No, I used the ones last mentioned on the mailing list. The link did not seem right, but I haven't seen any documentation on this. The latest version fixed the stand-alone / command-line test. Unfortunately, the embedded usage (only tested on windows) with all four .jars included (as well as the FOP 1.1 .jars) is throwing the following exceptions: Exception in thread AWT-EventQueue-0 java.lang.NoClassDefFoundError: org/apache/pdfbox/pdmodel/encryption/BadSecurityHandlerException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.xmlgraphics.util.Service.providers(Service.java:85) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.discoverClasspathImplementations(ImageImplRegistry.java:107) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.init(ImageImplRegistry.java:79) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.init(ImageImplRegistry.java:88) at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.getDefaultInstance(ImageImplRegistry.java:97) at org.apache.xmlgraphics.image.loader.ImageManager.init(ImageManager.java:63) at org.apache.fop.apps.FopFactory.init(FopFactory.java:178) at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190) … Caused by: java.lang.ClassNotFoundException: org.apache.pdfbox.pdmodel.encryption.BadSecurityHandlerException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 53 more Am I missing something else? Thank you, Jonathan On Nov 25, 2012, at 4:29 PM, Luis Bernardo wrote: I tried your example in a Mac, with exactly the same version of Java you have, and it worked with no problems. I assume that by stand alone you mean command line (that is how I ran it). Did you get the fop-pdf-images plugin from https://dist.apache.org/repos/dist/dev/xmlgraphics/binaries/? On 11/25/12 11:32 PM, Jonathan Seng wrote: Hello, I am trying to use fox:external-document to include pdf files using FOP 1.1. I am doing this embedded, but have reproduced the problems in a stand-alone test case. The embedded problems appear on Apple Java 1.6.0_37 64 bit and Oracle Java 1.6.0_34 on Windows 64. The stand-alone test case was only run on the Apple Java (listed above). The first problem was previously mentioned on the mailing list: The fop-pdf-images JAR being required. If this is required, it should be included or documented clear as day (especially on the extensions.html documentation page for fox:external-document). After including all four .jars from the fop-pdf-images download, I get the following exception: Exception in thread main java.lang.VerifyError: (class: org/apache/fop/render/pdf/pdfbox/PDFBoxAdapter, method: cloneForNewDocument signature: (Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Collection;)Ljava/lang/Object;) Incompatible argument to function at org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createFormForPDF(AbstractPDFBoxHandler.java:90) at org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:57) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java
Re: Printed blank page when running example class ExampleFO2JPSPrint.java
Please try with trunk. On 12/3/12 11:26 AM, Massimo wrote: Hi. I changed ExampleFO2JPSPrint.java as you recommended and it prints (Sytem.out.println) values only if i change target resolution: *userAgent.setTargetResolution(200);* but the printed page is blank yet. My SO is XP Sp3 and FOP 1.1. Regards, Massimo. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Printed-blank-page-when-running-example-class-ExampleFO2JPSPrint-java-tp37429p37444.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: Apache™ FOP: Hyphenation license
FOP does not do hyphenation by itself. For that you need to have the fop-hyph.jar (that you can download from http://offo.sourceforge.net/hyphenation/) present. So the license is the one in that same site (there are different licenses for different languages). On 12/14/12 6:59 PM, Support SBA wrote: Hello, I’m investigating about Apache™ FOP: Hyphenation. I searched on the website but didn’t find the license and the license version used for the package. Can you please provide me this information ? Regards, Prometil www.prometil.com http://www.prometil.com Equipe Process Méthodes Outils Process Methods and Tools (Cots Management, Reqtify, Gemo, SVN, Quality Center, Macros,…) Prometil on behalf INFOTEL Conseil 42 av du Général De Croutte 31100 Toulouse E-mail :support@prometil.com mailto:support@prometil.com Tel. Prometil : +33 562 875 242 tel:%2B33%20562%20875%20242 Fax Prometil : +33 561 404 454 tel:%2B33%20561%20404%20454 Ce message peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite en l'absence d'autorisation explicite de l'émetteur. Dans l'hypothèse où vous auriez reçu par erreur ce message, merci de le renvoyer à l’émetteur et de détruire toute copie. Pensez à l’environnement avant d’imprimer.
Re: How to find out why fop needs a certain font?
This is of no consequence although is it puzzling at first. If you specify a global font-family in the fo root element I think the warning goes away. I think what you are seeing has been discussed here: http://apache-fop.1065347.n5.nabble.com/ZapfDingbats-and-Symbol-not-found-whereas-they-are-not-needed-td31330.html On 12/19/12 11:05 PM, Alexey Neyman wrote: Hi all, I see the following warning message reported by FOP: $ fop -c fop.cfg -dpi 150 apiguide.fo apiguide.pdf Dec 19, 2012 2:59:02 PM org.apache.fop.events.LoggingEventListener processEvent WARNING: Font Serif,normal,400 not found. Substituting with any,normal,400. ... However, apiguide.fo does not contain any references to 'serif' font: $ grep -i serif apiguide.fo $ Why does FOP need 'Serif' font? Is there some built-in expectation that 'Serif' font must be always available? Regards, Alexey. - 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: How to find out why fop needs a certain font?
Original Message Subject:Re: How to find out why fop needs a certain font? Date: Thu, 20 Dec 2012 23:32:04 + From: Luis Bernardo lmpmberna...@gmail.com To: Alexey Neyman sti...@att.net With SVG, fonts are more complicated. The font used in the SVG needs to be installed in the system and needs to be configured in fop.xconf too. The warning you got usually happens when the font is in the system but not configured in fop.xconf, which looking at your example does not seem to be the case... If you want to get to the bottom of the matter please indicate what version of fop you are using and what OS. Also, the use of metrics-url is not needed anymore (and is not recommended) so you can remove that. I see you refer to the font file TimesNewRoman.ttf without specifying a font-base path (which only works if you have the file in the same directory you have your *.fo file). Is that font file an exact copy of the installed font in the system of the same name? On 12/20/12 6:44 PM, Alexey Neyman wrote: Hi Luis, No, it is not the case. In the FO I am using, fo:root has a font-family specified, and that font family is described in the fop.cfg. Actually, I traced this warning down to the watermark image specified for the background. However, that SVG does not refer to 'Serif' font, either. Can somebody please explain how does FOP treat the fonts in the included SVG files? I even tried to add a substitution from font-family=Serif to font- family=Times New Roman, it did not help either. Here is the reduced FO file that exhibits the issue: [[[ ?xml version=1.0? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; font-family=Times New Roman fo:layout-master-set fo:simple-page-master master-name=draft fo:region-body background-image=url(draft.svg)/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=draft fo:flow flow-name=xsl-region-body fo:block/ /fo:flow /fo:page-sequence /fo:root ]]] And here is the draft.svg: [[[ ?xml version=1.0 encoding=UTF-8 standalone=no? svg xmlns=http://www.w3.org/2000/svg; viewBox=80 80 600 600 version=1.1 width=5in height=5in text font-weight=normal xml:space=preserve transform=matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0) font-size=250px y=640 x=-315 font-family='Times New Roman' fill=#f2f2f2Draft/text /svg ]]] And fop.cfg: [[[ ?xml version=1.0? fop version=1.0 renderers renderer mime=application/pdf fonts font kerning=yes metrics-url=TimesNewRoman.metric embed- url=TimesNewRoman.ttf font-triplet name=Times New Roman weight=normal style=normal/ /font /fonts /renderer /renderers /fop ]]] Regards, Alexey. On Wednesday, December 19, 2012 04:45:31 pm Luis Bernardo wrote: This is of no consequence although is it puzzling at first. If you specify a global font-family in the fo root element I think the warning goes away. I think what you are seeing has been discussed here: http://apache-fop.1065347.n5.nabble.com/ZapfDingbats-and-Symbol-not-found-w hereas-they-are-not-needed-td31330.html On 12/19/12 11:05 PM, Alexey Neyman wrote: Hi all, I see the following warning message reported by FOP: $ fop -c fop.cfg -dpi 150 apiguide.fo apiguide.pdf Dec 19, 2012 2:59:02 PM org.apache.fop.events.LoggingEventListener processEvent WARNING: Font Serif,normal,400 not found. Substituting with any,normal,400. ... However, apiguide.fo does not contain any references to 'serif' font: $ grep -i serif apiguide.fo $ Why does FOP need 'Serif' font? Is there some built-in expectation that 'Serif' font must be always available? Regards, Alexey. - 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: targetrenderer set to MIME_PNG fails in fop =1.0 but succeeds in 0.95
Can you start with the embedding.ExampleFO2PDF.java example (in examples/embedding/java), change the mime type to MIME_PNG (and rename all the PDFs to PNGs) and confirm that the new example does generate a PNG file? I just tested that with trunk and it worked. On 12/27/12 3:02 PM, Milo van der Zee wrote: Dear FOP users, I'm using FOP for a couple of years now and thought it was time to upgrade to version 1.1. Problem is that the rendering to PNG stopped functioning. It all still works with version 0.95. PDF generation is still fine. The difference between PNG and PDF generation is the mime type of fop generated with the factory. Strange thing is that the call to '*userAgent.getRendererOverride()*' returns 'null' in version 1.1 and returned the expected PNGRenderer in version 0.95. Is this a bug or is something changed between versions in relation to PNG rendering? From the debug info I see that the renderer does create a page. It seems like the link between the rendererImpl and the mime-type is not found. But where can I force that? See code fragments below. Thank you very much for any help., Milo van der Zee some relevant code: --- FopFactory fopFactory = FopFactory.newInstance(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); foUserAgent.setTargetResolution(document.getPreviewDPI()); ByteArrayOutputStream out = new ByteArrayOutputStream(); Fop fop = fopFactory.newFop(*MimeConstants.MIME_PNG*, foUserAgent, out); TransformerFactory factory = TransformerFactory.newInstance(); Source xslfo = DocumentGenerator.generateXslFo(document); Transformer transformer = factory.newTransformer(xslfo); SAXBuilder saxBuilder = new SAXBuilder(); saxBuilder.setErrorHandler(new SaxParserErrorListener()); org.jdom.Document dataDocument = saxBuilder.build(new StringReader(dataString)); DOMSource src = new DOMSource((new DOMOutputter()).output(dataDocument)); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); FOUserAgent userAgent = fop.getUserAgent(); *PNGRenderer renderer = (PNGRenderer)userAgent.getRendererOverride();* --- --- I added this to my pom.xml: --- dependency groupIdorg.apache.xmlgraphics/groupId artifactIdfop/artifactId version${fop-version}/version exclusions !-- FOP has wrong dependancies on the avalon framework -- exclusion groupIdorg.apache.avalon.framework/groupId artifactIdavalon-framework-api/artifactId /exclusion exclusion groupIdorg.apache.avalon.framework/groupId artifactIdavalon-framework-impl/artifactId /exclusion /exclusions /dependency !-- these two are to correct issues in fop dependency -- dependency groupIdavalon-framework/groupId artifactIdavalon-framework-api/artifactId version4.2.0/version /dependency dependency groupIdavalon-framework/groupId artifactIdavalon-framework-impl/artifactId version4.2.0/version /dependency --- --- Some debug info: --- DEBUG org.apache.fop.util.ContentHandlerFactoryRegistry - Dynamically adding ContentHandlerFactory: org.apache.fop.render.afp.extensions.AFPExtensionHandlerFactory DEBUG org.apache.fop.util.ContentHandlerFactoryRegistry - Dynamically adding ContentHandlerFactory: org.apache.fop.render.ps.extensions.PSExtensionHandlerFactory DEBUG org.apache.fop.util.ContentHandlerFactoryRegistry - Dynamically adding ContentHandlerFactory: org.apache.fop.fo.extensions.xmp.XMPContentHandlerFactory DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for Renderer: org.apache.fop.render.txt.TXTRendererMaker DEBUG org.apache.fop.render.RendererFactory - *Dynamically adding maker for Renderer: org.apache.fop.render.bitmap.PNGRendererMaker* DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for Renderer: org.apache.fop.render.bitmap.TIFFRendererMaker DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for Renderer: org.apache.fop.render.xml.XMLRendererMaker DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for Renderer: org.apache.fop.render.awt.AWTRendererMaker DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for Renderer: org.apache.fop.render.print.PrintRendererMaker DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for FOEventHandler: org.apache.fop.render.rtf.RTFFOEventHandlerMaker DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for IFDocumentHandler: org.apache.fop.render.pdf.PDFDocumentHandlerMaker DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for IFDocumentHandler: org.apache.fop.render.pcl.PCLDocumentHandlerMaker DEBUG org.apache.fop.render.RendererFactory - Dynamically adding maker for IFDocumentHandler: org.apache.fop.render.bitmap.TIFFDocumentHandlerMaker DEBUG
Re: Fwd: FOP 1.1 - Unable to copy/paste text is not working
does your editor know about the font you are using? if you highlight the text in the editor and set the font to Arial do you see any glyph? I tried your example but with Arial, copied and pasted to OpenOffice and I am able to see the glyphs. now, not that this makes a difference for your problem, are you sure the output file you sent was generated with the fop.xconf you sent? in your conf file you have embedding mode full but in the output file it is being subset. On 1/17/13 1:58 PM, Neeraj wrote: Hi, I am using FOP 1.1 and through command line; trying to create PDF in Arabic language. Now when i copy Arabic text from PDF to UTF-8 editor. it not shows some Arabic chars, instead of shows box. Please help me to resolve this issue. I have attached corresponding files. command line: fop -c fop.xconf -fo arabic.fo -pdf out.pdf - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: how to merge PDFs
Please provide a test case if you think you found a bug. Most likely there is some oddity in your FO input that causes the problem. If you want to merge documents and have control over how they are generated you can use initial-page-number to set the page number for the start of a page sequence. To merge, besides PDFBox you can use pdftk (which itself uses iText). On 1/28/13 8:42 PM, Campbell, Lance wrote: I looked over the PDFBox option. Do you believe there is a way to renumber pages in a merged PDF document? Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 From: Mehdi Houshmand [mailto:med1...@gmail.com] Sent: Monday, January 28, 2013 2:02 PM To: fop-users@xmlgraphics.apache.org Subject: Re: how to merge PDFs Look into PDFBox, its another Apache project that can do just that. However, you definitely shouldn't be seeing XSL-FO in the output PDF. Can you post a bug and attach a test sample? Depending on what you're doing, FOP should be able to handle big documents so the merging shouldn't be necessary. On Jan 28, 2013 5:08 PM, "Campbell, Lance" la...@illinois.edu wrote: FOP 1.1 We have been using FOP for quite a few years now. We are really happy with it. We use it to generate PDF reports. We seem to be running into an issue where really large reports start to display the XSL-FOP code in the output. Example: d="submission-4" fo:static-content flow-name="xsl-region-after" fo:table fs week? If so, provide details on the conference/workshop/journal, authors, paper I was thinking that maybe I could process each page into its own PDF and then splice the single page PDFs together into a master PDF document. Has anyone ever done this? This will prevent the issue from occurring. Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382
Re: Fwd: FOP 1.1 - Unable to copy/paste text is not working
The two lines look the same to me. Maybe you copied and pasted the same content twice? The only reason I suggested Arial was because I didn't have your font and I know Arial has Arabic glyphs and it is known by all text editors. If you use a text editor (say, openoffice) and export to PDF are you then able to copy and paste from that PDF? If so, can you send that PDF and the one generated by FOP (with full embedding) so that we can compare them? On 1/30/13 1:44 PM, Neeraj wrote: Hi Luis, Thanks for reply. Yes, my editor can handle used font. If you highlight the text in the editor and set the font to Arial do you see any glyph? For PDF text - No For embedding this, May be I added embedding mode full later, after generating PDF, but in both the cases it is giving same results. The issue I reported was for non-Base14 font. You are using Arial which is Base14 font and FOP has full support for these kinds of fonts. Well as you said, I tried same functionality with Arial font also and found same issue in different form. Original Arabic text - هذا تعليق الاختبار. تتم كتابة الكلمات بشكل صحيح PDF Arabic text - ھذا تعلیق الاختبار. تتم كتابة الكلمات بشكل صحیح If I compare PDF and MS-Word files, it looks exactly similar but when I copy it to an editor(Font supported), the words look different (Glyphs are missing). You can check the above text. Why am I loosing text while doing copy/paste? - 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: FOP 1.1 - How to stop DCTDecode compression for images?
Are you using JPEG? Are you specifying any content-width|height for the image? And source-resolution? When you say the image quality is lost how do you see that? JPEG images are compressed and that is the filter you see below. Setting the filter to null means no further filter will be applied (and for instance text streams will not be compressed). You can check that if you set the filter to flate you will get a further filter applied to the image. Now, you can use a different image loader than the default for JPEG that will result in a uncompressed image but the quality will not improve. In the conf file add this, before the renderers element: image-loading penalty value=INFINITE class=org.apache.xmlgraphics.image.loader.impl.ImageLoaderRawJPEG / /image-loading I doubt the quality will be any different but the image will be uncompressed. If you are sure you see a loss in quality you can send us your example image so that we can investigate. On 1/30/13 12:48 PM, Neeraj wrote: Hi, I am using FOP 1.1 and generating a PDF through XML and XSL. I am trying to stop DCTDecode compression for images. The following snippet is from my PDF, Which has DCTDecode filter for image object, even after adding filter value to null in config file. /Name /Im1 /Type /XObject /Length 13 0 R /Filter /DCTDecode /Subtype /Image /Width 550 /Height 432 /BitsPerComponent 8 /ColorSpace /DeviceRGB I tried following settings in my config file. renderer mime=application/pdf filterList valuenull/value /filterList filterList type=image valuenull/value valueascii-85/value /filterList and renderer mime=application/pdf filterList valuenull/value /filterList But DCTDecode is still happening and because this is lossy compression, the image quality is lost. Can DCTDecode be stopped for images by doing any config setting? Thanks Neeraj In Config file,
Re: PNG files takes more size as compare to JPG in FOP 1.1 PDF
the images have different pixel size, or dpi. 72 dpi for the PNG and 96 dpi for the JPEG. you can check (and fix) that with Gimp or other image editor. On Fri, Feb 1, 2013 at 4:14 AM, Neeraj neerajii...@gmail.com wrote: -- Forwarded message -- From: Neeraj neerajii...@gmail.com Date: Thu, Jan 31, 2013 at 3:13 PM Subject: PNG files takes more size as compare to JPG in FOP 1.1 PDF To: fop-users-h...@xmlgraphics.apache.org Hi, I am using FOP 1.1 RC1 and drawing images in PDF. Source files are myimage.PNG and myimage.JPG. After generating PDF's, PNG image displays in PDF with more bigger than actual size, while JPG image displays with actual size. Please look into the issue and suggest me a solution to deal with this condition. I can not fix table or block size. FO file Code: fo:block fo:external-graphic src=http://localhost/MyWebSite/Temp/myimage.PNG/ /fo:block I am using default config file. - 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: FOP 1.1 - Use Transparent image as Non-Transparent
I am not familiar with that feature but I would expect that if your image is GIF and the feature is for PNG then it will not work. Why not convert the image to one without transparency outside FOP? If FOP 0.20.5 was not not handling transparency it is probably because it had not been implemented. On 2/13/13 6:25 AM, Neeraj wrote: Hi, I am using FOP 1.1, Command line to generate PDF file. I am having a transparent GIF image and want FOP to treat it as non transparent image (Just like FOP 0.20.5). Is there any setting in FOP configuration file which can provide this functionality? I already tried following settings for PNG transparent images, but it is not working. renderer mime=image/png transparent-page-backgroundfalse/transparent-page-background /renderer Any suggestions will be appreciated. Thanks Neeraj - 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: TrueType fonts with Fop Postscript
I tried your example and I had no trouble. Maybe the issue is the URI. Try to specify it differently. You can also try embedding-mode=full. On 2/17/13 11:41 PM, Christian Pestel wrote: Hi Luis, I use Fop-Trunk; no error during conversion fo2ps. The ps file content seems correct, but Verdana font is not embeded in PS file. I would like a PS file with font embeded. Is there a special fop configuration to embed a TrueType font like CID-keys font in pdf ? Thank for your reply. GS [1 0 0 1 70.85 70.85] CT GS BT /Verdana 36 F 1 0 0 -1 0 29.154 Tm (\003\004\005\006\001\005\006\001\007\b\t\n\013\f\013\001\r\016\f\003) t 1 0 0 -1 0 67.374 Tm (\017\020\021\022) t ET GR GR showpage ** Christian Pestel christian.pes...@orange.fr mailto:cpes...@bdoc.com *From:* Luis Bernardo mailto:lmpmberna...@gmail.com *Sent:* Saturday, February 16, 2013 12:10 AM *To:* fop-users@xmlgraphics.apache.org mailto:fop-users@xmlgraphics.apache.org *Subject:* [?? Probable Spam] Re: TrueType fonts with Fop Postscript Are you using FOP-1.0? Your example should work with FOP-1.1 and trunk, but it does not work with FOP-1.0. If the issue is not the version, do you get any error or warning when you generate your PostScript. On 2/15/13 3:39 PM, Christian Pestel wrote: Hi, Is Fop support TrueType fonts for Postscript renderer ? My PS file is not well rendered with Compart viewer. Is TrueType font embeded into PS file ? Is this above configuration correcty ? fop version=2.0 renderers renderer mime=application/postscript auto-rotate-landscapefalse/auto-rotate-landscape language-level3/language-level optimize-resourcesfalse/optimize-resources safe-set-page-devicefalse/safe-set-page-device dsc-complianttrue/dsc-compliant renderingquality/rendering fonts !-- Verdana -- font kerning=yes embed-url=file:///C:/Windows/Fonts/Verdana.ttf font-triplet name=Verdana style=normal weight=normal/ /font font kerning=yes embed-url=file:///C:/Windows/Fonts/Verdanab.ttf font-triplet name=Verdana style=normal weight=bold/ /font font kerning=yes embed-url=file:///C:/Windows/Fonts/Verdanaz.ttf font-triplet name=Verdana style=italic weight=bold/ /font font kerning=yes embed-url=file:///C:/Windows/Fonts/Verdanai.ttf font-triplet name=Verdana style=italic weight=normal/ /font /fonts /renderer /renderers /fop Christian Pestel christian.pes...@orange.fr mailto:cpes...@bdoc.com - To unsubscribe, e-mail:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail:fop-users-h...@xmlgraphics.apache.org
Re: Fop trunk unable to load configuration file correcly
Yes, it is a bit different now. Something like this should work. String confFile = /path/to/fop.xconf; FopFactoryBuilder builder = new FopConfParser(new File(confFile)).getFopFactoryBuilder(); // set here needed features if needed using builder.set... (complete with appropriate method) FopFactory fopFactory = builder.build(); Then you use the factory as before. On 2/26/13 5:03 PM, Chen Yang wrote: I recently get request to support complex script, I check out the source code and rebuild fop today. Also realized the API has changed http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration I also spent some time with ExampleJava2D2PDF.java did not help much to resolved the issue, my little knowledge about java is also not helping me. Been able to load the configuration file with my last fop 1.1 build, but cannot figure out how to do it correctly with post 1.1, here is my servlet file, if anyone can help me point it out the issue, would be much appreciated. Sincerely, Chen Yang - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP Trunk - URI Resolution
Try something like this: String confFile = /path/to/fop.xconf; FopFactoryBuilder builder = new FopConfParser(new File(confFile)).getFopFactoryBuilder(); On 3/24/13 1:03 AM, Björn Häuser wrote: Hi, thank you all for patience and work for Apache FOP. I recently switched to the trunk version to get support for table-markers! This is so nice! Thank you all! With the switch came some problems regarding image path resolution, it stopped working (for me) with hopefully the same configuration as I used on 1.1. This is my directory structure: src/main/java/foo/bar/document.java - thats the one which initializes fop src/main/resources/templates/foo.xsl - base .xsl file src/main/resources/templates/images/image.png - the image What I want is that in the *.XSL files all images are referenced by images/image.png, the extra images/ is fine for me. What I tried is: FopFactoryBuilder fopFactoryBuilder = new FopFactoryBuilder(new URI(classpath:src/main/resources/templates/)); fopFactory = fopFactoryBuilder.build(); But this gives me this exception: Caused by: java.lang.IllegalArgumentException: URI is not absolute at java.net.URI.toURL(URI.java:1095) at org.apache.fop.apps.io.ResourceResolverFactory$NormalResourceResolver.getResource(ResourceResolverFactory.java:188) I truncated the rest of the Stacktrace. What do I need to configure for that working in that way? Thanks in advance Björn - 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: referencing fonts in pdf and embedding them in pdf-a with one fop.xconf
Why is it important to have just one config file? When generating PDF FOP subsets TTF by default, unless the fonts are explicitly referenced (in which case references them) or embed-mode="full" is specified (in which case they are fully embedded). Type1 fonts on the other hand are fully embedded be default (subset embedding for Type1 is not supported yet). So, yes, you need to config files to achieve what you want. Otherwise you get referencing. On 3/22/13 11:49 AM, Francesco Nigro wrote: Hi all, Im trying to create one fop.xconfig so that fonts are automatically embedded in pdf-A and referenced in pdf. I defined the tag referenced-fonts and also the embed-url attribute but referenced-fonts always prevails and pdf-a generation fails with this error: org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts have to be embedded! My config is: fonts referenced-fonts match font-family="Arial"/ /referenced-fonts font kerning="yes" embed-url="" font-triplet name="Arial" style="normal" weight="normal"/ font-triplet name="any" style="normal" weight="normal"/ /font /fonts I have read the manual pages and searched online but I didnt find a clear answer; there is a way to do that with just one config file? Thank you very much Francesco Nigro Reserch and Development Land:+39 059 88680 fni...@doxee.com doxee.com facebook.com/doxeeinc @DoxeeInc
Re: FopFactory in Trunk
Yes, this change was major and happened many months ago. You have to do something like this: String contFile = /path/to/fop.xconf; FopFactoryBuilder builder = new FopConfParser(new File(confFile)).getFopFactoryBuilder(); builder.setStrictFOValidation(false); FopFactory fopFactory = builder.build(); I will update the example to have have at least one that uses the conf file. On Tue, Apr 9, 2013 at 1:20 PM, Bonekrusher djs...@yahoo.com wrote: Hi Alexios, The link is outdated. The example will not compile using the trunk because there is no longer a method called newInstance that takes Zero arguments. This looks like a major change in the trunk. FopFactory fopFactory = FopFactory.newInstance(); -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FopFactory-in-Trunk-tp38261p38276.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
Re: FopFactory in Trunk
I assume you refer to the jai_imageio.jar file. FOP does not depend on a particular version. If the jar is available FOP may use it for some particular formats. If it is not available, then FOP falls back to the default image handler, if there is one, which may work or not (i.e., may work for some image subtypes but not others). If you provide your image maybe we can investigate what the problem is. On Tue, Apr 9, 2013 at 2:53 PM, Bonekrusher djs...@yahoo.com wrote: Thanks Luis. By chance do you know what version for JAI is used to render graphics is trunk? I can not seem to find the right version. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FopFactory-in-Trunk-tp38261p38279.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
Re: FopFactory in Trunk
PNG is a format FOP can handle well without the need fop the jai_imageio.jar. In any case, the presence of the jar in the classpath should not cause a problem. I just tried your image with trunk and had no problems. I assume you have no constraints in the conf file (if using one) regarding image loading. On Wed, Apr 10, 2013 at 1:35 AM, Bonekrusher djs...@yahoo.com wrote: Hi Luis, Yes I am talking about jai_imageio.jar. However I have put the jai file in my class path and get this error. I am also attaching the image. Thanks for the help. SEVERE: Image not available. URI: file:/Users/Content/Media/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:/Users/Content/Media/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png (See position 1224:-1) org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:/Users/Content/Media/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png at org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) at org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) at org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) at org.apache.fop.fo.FObj.processNode(FObj.java:128) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:280) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175) http://apache-fop.1065347.n5.nabble.com/file/n38283/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FopFactory-in-Trunk-tp38261p38283.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
Re: error with FOP1.1 (java.lang.AbstractMethodError: org.apache.batik.dom.AbstractDocument.getDocumentURI())
Looks like no one replied to your question. Sorry for the delay... There is an example in the code that shows how to do what you ask: embedding.ExampleXML2PDF under examples/embedding/java. On 4/8/13 5:15 PM, pepgrifell wrote: Hi, I have update fop.jar from version 0.95 to 1.1. I have changed as well related libraries (avalon-framework-4.2.0.jar, batik-all-1.7.jar were already in 0.95 and I have only changed xmlgraphics-commons*.jar (from 1.3.1 to 1.5). In 0.95 I could generate a PDF from and XSL and XML but now I get this error: / ... 2013-04-08 15:22:04,148 DEBUG [org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline] Image loading using org.apache.fop.image.loader.batik.ImageLoaderSVG@ca1198 took 0 ms. 2013-04-08 15:22:04,148 DEBUG [org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline] Caching image: org.apache.xmlgraphics.image.loader.impl.ImageXMLDOM: null (image/svg+xml) ... java.lang.AbstractMethodError: org.apache.batik.dom.AbstractDocument.getDocumentURI()Ljava/lang/String; at org.apache.fop.image.loader.batik.BatikUtil.cloneSVGDocument(BatikUtil.java:58) at org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:95) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149) at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:298) at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:203) at org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1290) at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:820) at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785) at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678) at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceArea(AbstractPathOrientedRenderer.java:710) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598) at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451) at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738) at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428) at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352) at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299) at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748) at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273) at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238) at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597) at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123) at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:191) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128) at
Re: FOP : PDF Rendering Issue
Are you getting this when using Eclipse? If so, the issue is stale metadata in Eclipse. The easiest solution is to delete the project and import it again. If you get this on the command line please provide an example and information about your running environment. On Tue, Apr 16, 2013 at 8:23 AM, javakthar javakt...@gmail.com wrote: HI I am having an issue converting an XML file to PDF using FOP 1.1. I get the following error when executing my code. “java.lang.UnsupportedOperationException: Don't know how to handle application/pdf as an output format. Neither an FOEventHandler, nor a Renderer could be found for this output format.” There was a similar issue listed for Lotus Notes in the archives and a solution recommended was to overwrite the renderer. The following code was recommended FOUserAgent useragent = fopFactory.newFOUserAgent(); PDFRenderer pdfrenderer = new PDFRenderer(); pdfrenderer.setUserAgent(useragent); useragent.setRendererOverride(pdfrenderer); fop = fopFactory.newFop(MimeConstants.MIME_PDF, useragent,out); When I include the line PDFRenderer pdfrenderer = new PDFRenderer(); the following error shows up “PDF Renderer cannot be resolved to a type”. Kindly let me know what needs to done here. I do not see PDFRendered under org.apache.fop.render. Thanks Regards = Javed Akthar Khan -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-PDF-Rendering-Issue-tp38316.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
Re: Error after updating trunk
You need to clean and build again on the command line. If using Eclipse, do a refresh (after the build on the command line) and build again. On Tue, Apr 16, 2013 at 11:19 AM, Bonekrusher djs...@yahoo.com wrote: Hi, After update my local copy of trunk this morning and rebuilding FOP I get the following error while running a FO to PDF transformation. java.lang.IllegalStateException: Event model isn't consistent with the EventProducer interface. Please rebuild FOP! Affected method: org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow Any ideas? I'll try to put a repo together, but this usually takes be about a day.. Stack: java.lang.IllegalStateException: Event model isn't consistent with the EventProducer interface. Please rebuild FOP! Affected method: org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:156) at com.sun.proxy.$Proxy0.staticRegionOverflow(Unknown Source) at org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout(StaticContentLayoutManager.java:150) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion(PageSequenceLayoutManager.java:179) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:186) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:114) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:129) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181) at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391) at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213) at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:443) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:404) at net.sf.saxon.event.Sender.send(Sender.java:214) at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:30) at com.sdi.apache.Testing.generateDoc(Testing.java:163) at com.gui.MainForm.GeneratePdf(MainForm.java:159) -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326.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
Re: Error after updating trunk
the error occurs if the graphic is missing or if it s present? is the graphic in static content? does it fit in the side region? it looks like you have overflow in the side region, which uses a new event producer method added to trunk yesterday. I still think the issue can be fixed by a clean + build (the exception also says so). does it happen from the command line? On Tue, Apr 16, 2013 at 1:38 PM, Bonekrusher djs...@yahoo.com wrote: Thanks Luis. Rebuild and Clean did not solve the issue. I was able to track down the issue to a missing graphic. It seems after this last update, if the graphic is missing, the error occurs. Once again, I'll try to come up with a repo. Thanks for the help. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326p38330.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
Re: FOP memory growing with a lot of page-sequences
You can't. Although it is true that memory is regained when a page is output, there is information that needs to be kept till the end, and that information keeps growing as you add pages. For instance, byte offsets for the objects need to be stored till the end to build the xref table, and right now all that is kept in memory. You can get somewhat better results if you allow your page sequences to have more than one page (say, 100 or 1000). Putting all the pages in one page-sequence will not work either because you will run out of memory during the initial phase of building the FO tree. On the other hand you can always increase the memory your jvm uses. On 4/18/13 12:09 PM, aemitic wrote: Hi, I noticed that FOP (any version) uses a constantly growing amount of memory when creating PDFs. Even if using very small page-sequence blocks and no forward references. Please refer to this stackoverflow question which contains a small java program that replicates the issue. How can I limit the amount of used memory when transforming to PDF an FO file with a huge number of page-sequence blocks? ( 25) Thanks for any help -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-memory-growing-with-a-lot-of-page-sequences-tp38355.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: Use of Type1 fonts without metrics information
Yes, see http://xmlgraphics.apache.org/fop/trunk/fonts.html#register (the documentation is for trunk but works the same in 1.1). Use of metrics file has been deprecated and is not recommended. On Mon, Apr 29, 2013 at 10:16 AM, Luca Bellonda lbello...@gmail.com wrote: Hi to all, is there any possibility in FOP 1.1 to use a Type1 font without a separate metrics information file, reading the info directly from the pfb font file? Thanks in advance.
Re: SEVERE: Exception java.lang.IllegalArgumentException: min (1650) opt (0)
For now remove the attribute word-spacing.minimum from the fo file. That fixes it. Then submit a bug report with your example attached. Apparently the code expects the optimum and maximum to be also specified if the minimum is and in this case they are not. On 5/3/13 7:34 PM, Vostokov, Yevgeniy wrote: FOP 1.1 I am getting an Exception java.lang.IllegalArgumentException: min (1650) opt (0) and PDF is not getting created. FO file is attached. I can generate PDF from the same FO file using XEP. PDF file is attached. I can't figure out what is wrong with that FO file if anything or if there is a problem in FOP. Both log files (fop and xep) are attached. Thanks, Yevgeniy Vostokov - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FO to PDF conversion failing for the new Turkish Lira Symbol.
Use fop-1.1. That will fix the issue. fop-1.0 does throw the same exception you saw, so 0.95 must do the same. On Wed, May 15, 2013 at 7:28 AM, Ashok Kumar ashok.veerlap...@gmail.comwrote: Chris Bowditch bowditch_chris at hotmail.com writes: Hi Ashok, Can you let us know which version of FOP you are using? Would you also be able to send us the full FO File? Can you confirm the font you are using is the one at [1]? If not, send us the correct URL so we can replicate this issue. Thanks, Chris [1] http://www.evertype.com/fonts/rupakara/ On 14/05/2013 11:36, Ashok Kumar wrote: Hi, When I am trying to convert the below FO to PDF, I am getting ArrayIndexOutOfBoundException. The FO content which I am trying to convert is given below: fo:block space-before=1em space-after=1em role=p font-family=RupakaraA paragraph in Turkish for SYMBOL ₺ ₤/fo:block Actually when I am trying to convert the Turkish Lira Symbol (₺) it is converting to symbol during html to FO and throwing exception while converting FO to PDF. I am using the proper font files which supports the above symbol. Can you please resolve this issue asap. - To unsubscribe, e-mail: fop-users-unsubscribe at xmlgraphics.apache.org For additional commands, e-mail: fop-users-help at xmlgraphics.apache.org Hi Chris, I am using 0.95 version of FOP. Please find the full FO content. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:html=http://www.w3.org/1999/xhtml; writing-mode=lr-tb hyphenate=false text-align=start role=html fo:layout-master-set fo:simple-page-master page-width=8.27in page-height=11.69in master-name=all-pages fo:region-body margin-top=1in margin-right=1in margin-left=1in margin-bottom=1in column-gap=12pt column-count=1 / fo:region-before region-name=page-header extent=1in display-align=before / fo:region-after region-name=page-footer extent=1in display-align=after / fo:region-start extent=1in / fo:region-end extent=1in / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=all-pages fo:title Hello World /fo:title fo:static-content flow-name=page-header fo:block font-size=small text-align=center space-before.conditionality=retain space-before=0.5in Hello World /fo:block /fo:static-content fo:static-content flow-name=page-footer fo:block font-size=small text-align=center space-after.conditionality=retain space-after=0.5in / /fo:static-content fo:flow flow-name=xsl-region-body fo:block role=body fo:block space-before=1em space-after=1em role=p font-family=MyriadSetPro-Text A paragraph in Turkish ₺ ₤ /fo:block fo:block space-before=1em space-after=1em role=p font-family=Rupakara A paragraph in Turkish for SYMBOL ₺ ₤ /fo:block /fo:block /fo:flow /fo:page-sequence /fo:root I am using both Rupakara which you specified in the below URL and MyriadSetPro-Text fonts. I am trying this conversion in MAC OS machine. Regards, Ashok Kumar V - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Borders and Padding in TableRows
It does not work. Can you provide a link to the forum discussion where you saw that? On 5/16/13 12:34 PM, Harshini Madurapperuma wrote: Hi All, Currently I'm using FOP 0.20.5 version which is quite old. Anyway in the forums I came across that borders for TableRow works when the property border-collapse=collapse is there in table properties. But in this version 0.20.5 even though I use border-collapse=collapse in table properties, borders for tableRow's seems not been applied. Can you please confirm whether this works in the version FOP 0.20.5. My FO tags are as follows: fo:table background-color=#00 border-collapse=collapse left=0cm table-layout=fixed top=0cm fo:table-column column-width=5.643148cm /fo:table-column fo:table-column column-width=5.643148cm /fo:table-column fo:table-column column-width=5.643148cm /fo:table-column fo:table-body border-style=none fo:table-row border-color=#ff border-style=solid border-width=2pt fo:table-cell white-space-collapse=false .. . .. . Thanks Harshini Confidentiality notice and disclaimer This e-mail is private and may contain confidential information. You must not use, disclose, or retain any of its content if you have received it in error: please notify its sender and then delete it. Any views or opinions expressed in this e-mail are strictly those of its author. We do not accept liability for the consequences of any data corruption, interception, tampering, or virus.
Re: AFP images
This is a known issue (at least, I am familiar with it). I assume you are using jai_imageio.jar. The behavior is due to a bug in JAI (see http://www.java.net/node/702556) that causes the images to be treated as RGB + Alpha. The reason you do not see the problem when producing PDF is due to the fact that FOP uses a native image loader if the output is PDF (i.e., it does not use JAI). I was not aware of the issue you point out with RGB TIFFs and deflate compression. Can you provide example images with flate and LZW compression? On 5/17/13 3:52 PM, Luca Bellonda wrote: Hi to all, I am facing problems using images with FOP with afp renderer. Specifically, a JPEG or TIFF with CMYK colorspace ends in wrong colors, even if the cmyk=true attribute is added to the configuration file. When using a TIFF (RGB) with deflate compression type, the picture is mostly black, using LZW compression is OK. Tested with 1.1 and the nightly build of FOP. Enclosed here the configuration file: ?xml version=1.0? fop version=1.0 base./base source-resolution72/source-resolution target-resolution72/target-resolution default-page-settings height=11in width=8.26in/ renderers renderer mime=application/x-afp renderer-resolution240/renderer-resolution images mode=color cmyk=true / /renderer /renderers /fop Thanks
Re: AFP images
Thank you for an excellent set of test cases. I am afraid I know of no workaround but I will investigate. On 5/20/13 10:11 AM, Luca Bellonda wrote: 2013/5/17 Luis Bernardo This is a known issue (at least, I am familiar with it). I assume you are using jai_imageio.jar. The behavior is due to a bug in JAI (see http://www.java.net/node/702556) Is there some known workaround? I was not aware of the issue you point out with RGB TIFFs and deflate compression. Can you provide example images with flate and LZW compression? The material is available at the following address: https://docs.google.com/file/d/0Bz0c5jBY0nL5alNNQUFrVF9DeEk/edit?usp=sharingpli=1 Thank you - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP 1.1: Rendering problem with overflowing table cells
See this thread: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201302.mbox/%3c512d5b3c.8060...@gmail.com%3e On Wednesday, May 29, 2013, Ulrich Mayring wrote: Ooops, the newest Nightly Build has changed the Interface of FopFactory and FontManager. All the setter-methods in those classes are gone. How can I programmatically configure FOP now? The docs under http://xmlgraphics.apache.org/**fop/trunk/embedding.html#**config-internalhttp://xmlgraphics.apache.org/fop/trunk/embedding.html#config-internalstill suggest the old way. cheers, Ulrich Ulrich Mayring wrote: Hi Glenn, thanks for the pointer, your suspicion was correct. With the latest nightly build the page is rendered like it was in FOP 0.95, which I believe is the correct way. Thanks a lot, Ulrich Glenn Adams wrote: I would suggest you check the current trunk (you can use a nightly build if you don't want to build yourself). There were some fixes in this are since 1.1. On Wed, May 29, 2013 at 6:56 AM, Ulrich Mayring u...@denic.de wrote: Hi all, please find attached an FO file and two PDFs, which were rendered from it. One was rendered by FOP 0.95, while the other was rendered by FOP 1.1. If you compare the PDFs, you'll see that the header Price (EUR) as well as the value 8,888,888.88 jut out to the right in the FOP 1.1 rendering, while they look fine in the FOP 0.95 output. The structure of the fo:table is such that the rightmost column is too small to fit either of these two items, so they have to overflow the table cell in some way (cut off is not an option here). In FOP 0.95 the items flow out to the left, practically into the previous table cell, but there is enough room to accommodate them. Whereas FOP 1.1 flows the items out to the right of the table cell, which in this case looks ugly. My questions are: can I get the old rendering behavior back? Perhaps by changing something in the FO? And who is actually doing the right thing, FOP 0.95 or FOP 1.1? Note: in FOP 1.1 these were rendered with the Complex Scripts feature off, so as to minimise variation between FOP 0.95 and 1.1. Many thanks in advance for any pointers, Ulrich --**--** - 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: reduce size of PDF generated with FOP
An image is only embedded once in PDF if you always refer to it by the same URI, no matter how many times you refer to it. So I don't think that is the issue. Can you send an simple example of a PDF with just an image generated by Framemaker and by FOP so that we can investigate the difference. On 5/30/13, chandone echan...@yahoo.com wrote: Hello everyone, I use Java, XSL-FO and FOP to generate PDFs that consist in one or more pages of data and images, each page having a header and a footer containing images themselves. These header and footer are repeated on each and every page of the PDF documents. The images are responsible for a large part of the size of the resulting PDF (about 50 %). I noticed that, by converting them from JPEG to TIFF, and by reducing their resolution, I was able to reduce considerably the size of the PDF as well. But I now have the feeling that I have reached a dead-end as far as images as concerned. The PDFs are still very huge, compared to those that used to be generated with FrameMaker, the Adobe PDF generation system that we're willing to get rid of. And I'm sorry to say that I can't think of another way to reduce the PDFs' size, as the Web mainly talks about pre-processing images in order to make PDFs smaller. I was wondering whether, maybe, it would be possible in a way or another to tell FOP to repeat the images in all headers and footers in some kind of way so that the images would be embedded only once in the document and just mirrored on the other pages. Plus, there ought to be other ways to reduce the PDF size, apart from images, don't you think? I would highly appreciate any advice on this topic. Thanks a lot in advance for your time and help. Erwann -- View this message in context: http://apache-fop.1065347.n5.nabble.com/reduce-size-of-PDF-generated-with-FOP-tp38619.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: Conversion of PDF to Postscript Compatible Asset
Can you sends us the original example so that we can take a look? There have been many recent fixes regarding fop-pdf-images and pdfbox and issues related to images. But we are aware of bugs in pdfbox that we haven't investigated, let alone addressed... If the shading that you describe is due to transparency then that may be part of the problem. PostScript does not support transparency the way PDF does, so what pdfbox does is to build a composite where the color of a pixel is a blend of the foregroung and background colors but the result is not always correct (probably due to bugs). On 5/30/13, Martin Edge martin.e...@intellimail.com.au wrote: Hi Guys, Wondering if you could suggest whether I should bother and if so where I would start isolating the root cause of this problem. I'm using fop-pdf-images as a background, and in PDF it looks fine, in postscript the shading part of the document falls off. (I've tried both CMYK based and RGB based PDFs with it.) I ended up having to render the document as PDF, which removes a lot of the smarts I have in place in respects to duplexing and tray selection. I'm currently using FOP 1.1 for the process, with pdf-image add-in - I have re-downloaded the fop 1.1 source and the latest fop-pdf-images and compiled them and it seems to have built OK. The only output which seems PDFBox related is: May 30, 2013 2:57:10 PM org.apache.pdfbox.util.PDFStreamEngine processOperator INFO: unsupported/disabled operation: BDC May 30, 2013 2:57:11 PM org.apache.pdfbox.util.PDFStreamEngine processOperator INFO: unsupported/disabled operation: BX May 30, 2013 2:57:11 PM org.apache.pdfbox.util.PDFStreamEngine processOperator INFO: unsupported/disabled operation: EX May 30, 2013 2:57:11 PM org.apache.pdfbox.util.PDFStreamEngine processOperator INFO: unsupported/disabled operation: EMC I have built a mini test case/example if that helps or if anyone is curious.. Thanks Martin. IntelliMail - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: reduce size of PDF generated with FOP
Very likely the pdfbox merge utility does not merge the fonts used in the documents. So if you have the same font used in two documents the font will be embedded twice in the merged document. If you have many fonts the size can grow considerably. If you think the difference in size in the individual PDFs is an issue send us a sample example to that we can investigate the reason for the difference. On Tue, Jun 4, 2013 at 9:57 AM, chandone echan...@yahoo.com wrote: Is it indeed? Well, the fact is that I generate PDFs in two different ways: - individual PDFs, - the same PDFs, but concatenated together into one big PDF, using the Apache pdfbox PDFMergerUtility.mergeDocuments() method. Compared to the ones generated by FrameMaker, the individual PDFs grow from 50-60 KB to 100-150 KB. In these PDF, the header and footer images are present only once. In the second case, the images are obviously repeated lots of times and the document grow from 1-2 MB to 23 MB. In this case, I assume that, as the images are originally part of separated document that were then merged, they are actually present lots of times in the global document. But, as I said before, images are not responsible for the huge size of the PDF alone, as when I remove them the PDF is still 21 MB. I'm afraid I am not at liberty to divulge the PDFs I'm referring to but I'll see if I can manage to generate a dummy one. That may not be easy. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/reduce-size-of-PDF-generated-with-FOP-tp38619p38648.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
Re: EventListener - SEVERE events
Not all messages are sent as events, yet. The one you encountered is an example, as you can check by looking at the source. On Tue, Jun 4, 2013 at 11:41 AM, Bonekrusher djs...@yahoo.com wrote: Hi, I have an EventListner that listens for events and I am able to listen and catch Info, Warning, Error and Fatal. However, I am unable to listen for SEVERE: Jun 4, 2013 6:36:38 AM org.apache.fop.fo.properties.LengthRangeProperty checkConsistency SEVERE: forcing max to min in LengthRange http://xmlgraphics.apache.org/fop/1.1/events.html How can I catch SEVERE events? I am using FOP Trunk. Thx Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/EventListener-SEVERE-events-tp38650.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
Re: [jira] [Commented] (FOP-2269) fo:marker for subtotals by page
As Chris pointed out this is not possible in the current implementation, and I don't think it is possible within the XSL-1.1 scope. However if you are willing to edit intermediate format and your table layout allows it (i.e., there is enough space) then it is not very complicated to get the result you desire. Of course, whether it is practical or not depends on how many documents you need to edit. Attached is an example: 1. fop -fo test.fo -if application/pdf test.if.xml 2. edit test.if.xml 3. fop -ifin test-edited.if.xml -pdf test-edited.pdf This works if there is enough space to write the explicit calculation, i.e., i - a + A. I hope the example is clear. On 6/27/13 12:20 AM, Luis Bernardo (JIRA) wrote: [ https://issues.apache.org/jira/browse/FOP-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13694347#comment-13694347 ] Luis Bernardo commented on FOP-2269: See mailing list for a possible workaround. fo:marker for subtotals by page --- Key: FOP-2269 URL: https://issues.apache.org/jira/browse/FOP-2269 Project: Fop Issue Type: Bug Reporter: Lisdiana Rodriguez Alvarado Priority: Blocker Hi, I'm working in a project that must generate a PDF Invoice using a XML as source. I'm using FOP 1.1 and the PDFs are generated almost like I expect, but my current problem is that each page must show subtotals. I need these totals by page, not accumulative. I'm trying using fo:retrieve-marker (retrieve-boundary=page) in the page footer and also with fo:retrieve-table-marker(retrieve-boundary-within-table=page) in the footer of a table. However in both cases, subtotals contains not just the accumulative in the current page but the amounts in the previous ones. I've been looking samples but I can't find what I'm doing wrong. I need to know if it's possible to do what I need to, and if so, I need a sample or guide to know how to reset the subtotals in every page. Thanks in advance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira ?xml version=1.0 encoding=UTF-8? document xmlns=http://xmlgraphics.apache.org/fop/intermediate; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:nav=http://xmlgraphics.apache.org/fop/intermediate/document-navigation; xmlns:foi=http://xmlgraphics.apache.org/fop/internal; version=2.0 header x:xmpmeta xmlns:x=adobe:ns:meta/ rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; rdf:Description xmlns:xmp=http://ns.adobe.com/xap/1.0/; rdf:about= xmp:CreateDate2013-06-27T00:12:34+01:00/xmp:CreateDate xmp:CreatorToolApache FOP Version svn-trunk/xmp:CreatorTool xmp:MetadataDate2013-06-27T00:12:34+01:00/xmp:MetadataDate /rdf:Description /rdf:RDF /x:xmpmeta /header page-sequence xml:space=preserve page index=0 name=1 page-master-name=A8 width=148818 height=210472 page-header/ content viewport transform=translate(28346,28346) width=92126 height=153780 font family=sans-serif style=normal weight=400 variant=normal size=12000 color=#00/ text x=0 y=10266A/text g transform=translate(0,14400) text x=0 y=10266B/text /g g transform=translate(0,28800) text x=0 y=10266C/text /g g transform=translate(0,43200) text x=0 y=10266D/text /g g transform=translate(0,57600) text x=0 y=10266E/text /g g transform=translate(0,72000) text x=0 y=10266F/text /g g transform=translate(0,86400) text x=0 y=10266G/text /g g transform=translate(0,100800) text x=0 y=10266H/text /g g transform=translate(0,115200) text x=0 y=10266I/text /g g transform=translate(0,129600) text x=0 y=10266Sum: i-a+A/text /g /viewport /content page-trailer/ /page page index=1 name=2 page-master-name=A8 width=148818 height=210472 page-header/ content viewport transform=translate(28346,28346) width=92126 height=153780 font family=sans-serif style=normal weight=400 variant=normal size=12000 color=#00/ text x=0 y=10266J/text g transform=translate(0,14400) text x=0 y=10266K/text /g g transform=translate(0,28800) text x=0 y=10266L/text /g g transform=translate(0,43200) text x=0 y=10266M/text /g g transform=translate(0,57600) text x=0 y=10266N/text /g g transform=translate(0,72000) text x=0 y=10266O/text /g g transform=translate(0,86400) text x=0 y=10266P/text /g g transform=translate(0,100800) text x=0 y=10266Q/text /g g transform=translate(0,115200) text x=0 y=10266R/text /g g transform=translate(0,129600) text x=0 y=10266Sum: r-j+J/text /g /viewport /content page-trailer/ /page page index=2 name=3 page-master-name=A8 width=148818 height=210472 page-header/ content viewport transform=translate(28346,28346) width=92126 height=153780 font family=sans-serif style=normal weight=400 variant=normal size=12000 color=#00/ text x=0 y=10266S/text g transform
Re: Poor quality image scaling
Your screen capture is not half an inch, so we don't know where the scaling comes from. Have you tried to zoom in with your PDF viewer? If you still have questions please provide original image, your fo file, any fop.xconf if using it, and the generated pdf. I was unable to reproduce the issue you describe with a stock png image. On Tue, Jul 2, 2013 at 11:07 AM, Lauri Kasanen c...@gmx.com wrote: Hi, Picture of the issue: http://i43.tinypic.com/2hq4ilf.png I use 256x256 PNG admonition images. They are specced in the generated .fo file as having content-width of 36 pt, which is half an inch I understand. At a target DPI of 300, this would be 150x150. As you can see in the pic, it's obvious FOP uses a poor quality image scaling algorithm, nearest-neighbor, or point sampling in GL terms. How can I tell FOP to use a better quality algorithm? Ideally at least bicubic, but bilinear would be a great improvement too. Thanks, - Lauri PS: Please CC me, not subscribed. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org