Re: whitepsace preverve fop 0.95
Hi, Like other processors, FOP behaves correctly here, and produces similar PDF. Non blank characters are drown at the right place on the sheet while consecutive white-spaces are replaced with 1 white-space in copy-paste operations. IMHO, this is either a PDF 1.4 feature, or an Adobe-viewer specific behavior (I didn't tried it with another PDF viewer). Pascal Robert Eberhardt a écrit : Hello I am using fop 0.95 and i try to preserve a double white space (between the character 3 and the charactes 2 in the example below). fo:block color=black font-size=7pt white-space-collapse=false white-space-treatment=preserve3 s/fo:block Unfortunatly it does not work. The resulting PDF only contains white space between the 3 and the s. Is there any workaround for that property in fop 0.95. Thank you Robert - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
FOP, hypenation. How to compile hyph pattern? my own
Hi, i make such pattern file: hyphenation-info hyphen-char value=-/ hyphen-char value==/ hyphen-char value=+/ hyphen-char value=,/ hyphen-char value=./ hyphen-min before=3 after=2/ /hyphenation-info how to make fop work with it? i can not understand how to use ant for building it to fop format. -- View this message in context: http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28340019.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
afp images
Dear All I am new to AFP and i am unable to work with color images i have used image mode=color in xconf file and in the xsl file i am specifing that in simple-page-master as afp:include-page-segment id=dsdasd name=s1islogo src=C:\FOP\images\combo_big.jpg/ and inside the block container my code is as fo:block-container position=absolute top=5.50in left=.86in right=.45in fo:block xsl:element name=fo:external-graphic xsl:attribute name=srcC:\FOP\images\combo_big.jpg/xsl:attribute /xsl:element/fo:block /fo:block-container now the problem is i am able to view b+w image but not color images.plz help me out how to over come this issue.my image is of 30kb file. Thanks in advance Regards Sekhar. -- View this message in context: http://old.nabble.com/afp-images-tp28340117p28340117.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: AW: “CIDset in subset font is incomplete” error by pdf/a-1b validation
I assume this is bug http://issues.apache.org/bugzilla/show_bug.cgi?id=47711 which has already been fixed in FOP Trunk. You may have to download the current development code: http://xmlgraphics.apache.org/fop/download.html#source HTH On 16.04.2010 12:06:03 Virginjus Kandrotas wrote: Hello everybody interesting in this problem, after different test scenarios I have found solution to my problem. To avoid following error “CIDset in subset font is incomplete” I used ansi encoded font metrics (default by fop TTFReader is CID-keyed). Both validators shows no errors on new created pdf documents. To generate ansi encoded metrics TTFReader should be called with “-enc ansi” option. It is still open question why it is not working with standard CID-keyed metrics, maybe FOP guru's can answer it? Best regards, Virginijus --- Virginjus Kandrotas vkandrot...@yahoo.com schrieb am Do, 15.4.2010: Von: Virginjus Kandrotas vkandrot...@yahoo.com Betreff: “CIDset in subset font is incomplete” error by pdf/a-1b validation An: fop-users@xmlgraphics.apache.org Datum: Donnerstag, 15. April, 2010 10:25 Uhr Hello, I am trying to use fop 0.95 to generate pdf/a-1b conform documents. By validating created pdf document against “callas pdfaPilot“ online demo version http://www.datalogics.com/products/callas/callaspdfA-onlinedemo.asp as well Acrobat Professional Preflight function I am getting following error: “CIDset in subset font is incomplete (1 match on 1 page) Text Gladiator,Bold 12.0 pt TrueType (CID) embedded (as a subset) (1 match)” As example fo input file I am using fop 0.95 test/xml/pdf-a/minimal-pdf-a.fo and test/test.xconf config file. Can anybody explain what is wrong here ? Best Regards, Virginijus __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP 0.95 GIF= PDF question
Do you have a sample GIF file I could reproduce that with? Thanks. On 20.04.2010 23:02:43 Isidora wrote: Hi, I have used FOP-0.20.5 to convert BW GIF images to PDF. The PDF images are sent via fax afterwards. When tested FOP-0.95 I found out that the faxed PDF images had dotted areas that were white on the versions of the same graphic obtained with 0.20.5. I noticed colorspace:gray in the PDF obtained with FOP-0.20.5 while it is RGB for the PDF obtained with FOP-0.95. Could dotted areas noted in the faxed graphics be caused by this differene in color space? If so, is there any way to create PDF with colorspace=gray using FOP-0.95? Thanks Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: afp images
In this case, the JPEG is never actually used since you map the URI to a page segment. You've used s1islogo which is a colored demo page segment bundled with IBM's AFP Workbench. This is what will be used in the AFP file. So if that page segment appears in blackwhite I assume that the conversion to backwhite happens in the viewer/printer, i.e. after FOP has generated the AFP file. Have you check another AFP viewer? HTH On 23.04.2010 13:28:34 afp images wrote: Dear All I am new to AFP and i am unable to work with color images i have used image mode=color in xconf file and in the xsl file i am specifing that in simple-page-master as afp:include-page-segment id=dsdasd name=s1islogo src=C:\FOP\images\combo_big.jpg/ and inside the block container my code is as fo:block-container position=absolute top=5.50in left=.86in right=.45in fo:block xsl:element name=fo:external-graphic xsl:attribute name=srcC:\FOP\images\combo_big.jpg/xsl:attribute /xsl:element/fo:block /fo:block-container now the problem is i am able to view b+w image but not color images.plz help me out how to over come this issue.my image is of 30kb file. Thanks in advance Regards Sekhar. -- View this message in context: http://old.nabble.com/afp-images-tp28340117p28340117.html Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: java.awt.image
Sorry, but I have trouble understanding your question. What I can say is that encoding an image as a Data URL, it does make it bigger since the data has to be encoded in base64. If you have to save the image in a database, you could investigate to actually save the original image file and then build a servlet or URIResolver to access the image data. The mailing list archive of this list contain ideas on how to do that. On 16.04.2010 11:10:41 pedro wrote: Hi all ! It works!Thanks for our helps! But i have another question: when i create the url of the image i get a very long string, if i save it on a file i get a 187k of dimension, so if i have to save it on the db for all delivery notes that i save it can be a problem for space, my question is if the string that rappresent the url is always the same as the pc the os ecc is different or is the same and i can save it at once? -- View this message in context: http://old.nabble.com/java.awt.image-tp28229153p28264701.html Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP, hypenation. How to compile hyph pattern? my own
The command is: ant compile-hyphenation You need to tell ant where your pattern directory is, by defining the variable user.hyph.dir. You can do this in the file build-local.properties in the fop directory, as follows: user.hyph.dir=/path/to/your/directory/with/pattern/files, e.g. user.hyph.dir=/home/lexa2009/fop/patterns, or user.hyph.dir=C:\fop\patterns. You can have only one hyphenation character and therefore only one hyphen-char element. Your pattern file has no hyphenation patterns, and therefore there will be no hyphenations in your texts. Then the hyphenation character has no use. Simon On Fri, Apr 23, 2010 at 04:16:10AM -0700, lexa2009 wrote: Hi, i make such pattern file: hyphenation-info hyphen-char value=-/ hyphen-char value==/ hyphen-char value=+/ hyphen-char value=,/ hyphen-char value=./ hyphen-min before=3 after=2/ /hyphenation-info how to make fop work with it? i can not understand how to use ant for building it to fop format. -- Simon Pepping home page: http://www.leverkruid.eu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SEVERE: Invalid axis rule: unable to draw line
Venkat, there was a bug in AFPBorderPainter which I've fixed: http://svn.apache.org/viewvc?rev=937315view=rev The cause for the message was a double rule from an fo:leader. Full borders with style double will still not look too good, but at least it's an improvement for fo:leader. There's definitely room for improvement there. On 16.04.2010 12:30:22 Venkat Reddy wrote: Hi, SEVERE: Invalid axis rule: unable to draw line The above error is logged when generating AFP output from the one of the fop test case: FO file : /fop-trunk/examples/fo/basic/leader.fo Can some one guide me, how to resolve this problem? Thanks, Venkat. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SEVERE: Invalid axis rule: unable to draw line
Hi Jeremias, Thank you very much for your response. I will try with the latest codebase once again... Venkat. Jeremias Maerki wrote: Venkat, there was a bug in AFPBorderPainter which I've fixed: http://svn.apache.org/viewvc?rev=937315view=rev The cause for the message was a double rule from an fo:leader. Full borders with style double will still not look too good, but at least it's an improvement for fo:leader. There's definitely room for improvement there. On 16.04.2010 12:30:22 Venkat Reddy wrote: Hi, SEVERE: Invalid axis rule: unable to draw line The above error is logged when generating AFP output from the one of the fop test case: FO file : /fop-trunk/examples/fo/basic/leader.fo Can some one guide me, how to resolve this problem? Thanks, Venkat. Jeremias Maerki - 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
fo:inline causes text placement issues with AFP
Hi, I am using FOP Trunk to generate PDF:s and AFP:s. The idea is to generate the FO-file from an XSL stylesheet and an XML and then generate the PDF. After the PDF is generated, custom afp-extension tags will be added to the FO-file and an AFP-file will be generated from the modified FO-file. The XSL-stylesheet contains conditional texts and dynamic data. This means that a lot of different fo:inline tags are created. This is not an issue with the PDF-output format, however when I render an AFP, it is. When generating AFP-files the last few characters of the previous inline-text are overwritten. This doesn't happen every time, but always for dynamic data and conditional texts. I have created my own raster fonts for the AFP file generation. I recall an old (about a year old) mail-thread involving Jeremias discussing using fonts not included in the base-14 set included in FOP. Therefore, I have tried to generate the file below using standard base-14 config and my custom config. The result is the same. !--Start Fo-example-- ?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 master-name=page-master-175389712 margin-left=0.60in margin-right=0.60in page-height=11in page-width=8.50in fo:region-body margin-top=0.79in margin-bottom=0.79in column-count=1 column-gap=0.50in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=page-master-175389712 initial-page-number=auto format=1 fo:flow flow-name=xsl-region-body fo:block fo:inlineTesting multiple consecutive inlines. /fo:inline fo:inlineTesting multiple consecutive inlines. /fo:inline fo:inlineTesting multiple consecutive inlines. /fo:inline fo:inlineTesting multiple consecutive inlines. /fo:inline fo:inlineTesting multiple consecutive inlines. /fo:inline fo:inlineTesting multiple consecutive inlines. /fo:inline fo:inline12 2134567 1234 123 123 masim asidjashdj a asjdhnakjsnd jasnd akjsndaksjdn naksdjnasjdn as naksjn daksjn dasjn aksjn aksjn aksjnsdasd nakasdas jasndaksndksajnd. /fo:inline fo:inline12345 12 12 1234 123 12 1234 123456 aksdlasd. /fo:inline fo:block/ fo:inline font-size=10pt12 213 123 12 12345 1234567 12345678910 123456 123456 123 123456789101 1 123456./fo:inline fo:inline font-size=10ptS23456 12345 123456 123 12345 12 1234567890, 1234567890 12345678 12345678. 12345 12345678 123.123456789101112121212.12. 12 12345678 12 123 1234 1234 123456789101 123 12345678 (12 123456789 12 12345 1234) 123 12345 12345 123456789101112./fo:inline /fo:block fo:block id=SV_RefID_PageTotal/ /fo:flow /fo:page-sequence /fo:root !--End Fo-example-- In the above example the last inline-tag (with text starting with S) produces the error when generating AFP. PDF is fine. fo:block text-align=center fixes the issue for this specific file. However, i need left aligned texts To omit the font-size or using a table to set the font-size also seems to fix the trouble. This is however hard to do, since we are using a stylesheet tool and not programming the XSL:s directly. Questions: 1. Is this a known issue with the AFP-renderer? 2. Could it be a bug with the font-loaders? I haven't had time to check the code, but I will do. Since the issue seems to be less recurring when setting a global font name and size, could it have to do with this? 3. Has anyone else encountered this problem? Is there any nice workaround? - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Image Rotate
Is it possible to rotate an Image Element width degrees? Best regards Thomas Peterson Geschaftsfuhrender Gesellschafter - Software Development *** PrintshopCreator GmbH WebToPrint Losungen fur die Druckindustrie. GF: Thomas Peterson, Heinz Broskamp Am Mittelhafen 42-44 D - 48155 Munster Tel.: +49 (0) 251-136 56 33 8 Fax.: +49 (0) 251-136 56 33 9 Web: www.printshopcreator.de Email: tpeter...@printshopcreator.de - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org