Re: Making Links in PDF
You'll have to dig deeper and extend the code. FitR is currently hard-coded. I'm sure that can be improved. But /Page /Next won't work. I haven't found that possibility in the PDF specification. Take a look at the Table 8.2 in the PDF specification 1.4 on page 475. That shows you what is possible. On 19.02.2009 13:29:52 useratnab wrote: I've tried to change the destination from String pdfdest = /FitR + dest; to String pdfdest = /Page /Next; but this won't do it. I guess I have to dig deeper for it or do you have any suggestions to link the prev. and next page? Thanks Jeremias Maerki-2 wrote: Yes, you'll need that fix I mentioned. You'll have to use the latest FOP Trunk directly from the Subversion repository. On 18.02.2009 14:28:06 useratnab wrote: Hey, first of all I gotta say: a big thanks to you and your support, I got some things fixed, I thought I'd never find the answer for :confused: But unfortunately there's still the Cannot reference this object. It doesn't have an object number error, when calling: g2d.addLink(targetRect, tx, 0 0 595 842, PDFLink.INTERNAL); What fop are you using? Is that SVG #svgView(viewBox()) bug-fix necessary, you mentioned earlier? Thanks again Tim snip/ Jeremias Maerki - 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://www.nabble.com/Making-Links-in-PDF-tp21994320p22099417.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 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 error
No, I don't see anything wrong. But Unix is not my primary platform so I may overlook something. You may be better served by asking for help on the Log4J user mailing list. I'm not a regular Log4J user. On 19.02.2009 22:46:18 Tuan Quan wrote: Thanks Jeremias, i ussed the folllowing script to create pdf from a fo file, but it failed. Can you see if anything wrong with the script? thanks. #!/bin/sh JAVA_HOME=/usr/java export JAVA_HOME DirCur=/apps/test FOP_HOME=/apps/fop-0.93 Book=mybook # :START_PROCESS cd ${FOP_HOME} LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger export LOGCHOICE LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties export LOGFILE1 LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties export LOGFILE2 LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO export LOGLEVEL LOCAL_FOP_HOME=${FOP_HOME} LIBDIR=${FOP_HOME}/lib LOCALCLASSPATH=${LOCAL_FOP_HOME}/build/fop.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/xml-apis-1.3.02.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/xercesImpl-2.7.1.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/xalan-2.7.0.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/serializer-2.7.0.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/batik-all-1.6.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/xmlgraphics-commons-1.1.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/avalon-framework-4.2.0.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/commons-io-1.1.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/commons-logging-1.0.4.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/jimi-1.0.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/jai_core.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/jai_codec.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/fop-hyph.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/saxon8.jar LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/log4j-1.2.14.jar export LOCALCLASSPATH FOP_CMD_LINE_ARGS=-c ${FOP_HOME}/conf/fop.xconf FOP_CMD_LINE_ARGS=${FOP_CMD_LINE_ARGS} -fo ${DirCur}/fragments/$Book.fo FOP_CMD_LINE_ARGS=${FOP_CMD_LINE_ARGS} -pdf ${DirCur}/${Book}.pdf export FOP_CMD_LINE_ARG echo ${FOP_CMD_LINE_ARG} ${JAVA_HOME}/bin/java -Xms128M -Xmx512M ${LOGCHOICE} ${LOGFILE2} -cp ${LOCALCLASSPATH} org.apache.fop.cli.Main ${FOP_CMD_LINE_ARGS} From: Jeremias Maerki d...@jeremias-maerki.ch To: fop-users@xmlgraphics.apache.org Sent: Wednesday, February 18, 2009 11:20:59 AM Subject: Re: fop 0.95 error Tuan, this is getting more and more off-topic for this list. We're not Saxon support and not Log4J support. Anyway, I don't see the full picture here. You just export some variables. But I can't tell from this if this ever finds its way to the JVM that will ultimately run FOP. We can't even see how you run FOP. The error message is simply Log4J telling you that you haven't configured Log4J correctly, yet. On 18.02.2009 18:49:22 Tuan Quan wrote: Hi Jeremias, now i got the saxon, i got the following error with the log4j : log4j:WARN No appenders could be found for logger (org.apache.fop.render.RendererFactory). log4j:WARN Please initialize the log4j system properly. log4j included in classpath, and the jar file is there. The script to call log4j is below: LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger export LOGCHOICE LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties export LOGFILE1 LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties export LOGFILE2 LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO export LOGLEVEL CONTENT OF log4j.pdf.properties # FO to PDF logging configuration log4j.rootLogger=ERROR, A1 log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.File=debug_pdf.txt log4j.appender.A1.Append=false log4j.appender.A1.layout=org.apache.log4j.PatternLayout CONTENT of log4j.xsl.properties # XML to FO logging configuration log4j.rootLogger=ERROR, A1 log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.File=debug_xsl.txt log4j.appender.A1.Append=false log4j.appender.A1.layout=org.apache.log4j.PatternLayout thanks. snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: auto table column width with FOP?
Hi, I need column width to be equal to content inside the cell for FOP output, which is same as what we see in html by default. I am using FOP 0.94. Can anybody give idea on the same. Thanks Hitesh Sidi Mohamed Idrissi Yaghir wrote: hi mailing list, i´ve defined a table with 3 columns, that contains blocks with a dynamic content (image or text with different width) , and i want, that the width of these columns will autoresized depending upon contents. Is this possible with FOP? thnx a lot! Simo - 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://www.nabble.com/auto-table-column-width-with-FOP--tp12257232p22116551.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: PS output different from PDF
I'm going to have to investigate a bit more closely why the centering of the barcode is not right in the PostScript case. Anyway, there's a work-around: Specify render-mode=java2d or render-mode=svg on the barcode:barcode element the the PS result should be fine. fo:instream-foreign-object barcode:barcode xmlns:barcode=http://barcode4j.krysalis.org/ns; render-mode=java2d xsl:attribute name=message xsl:value-of select=steuerdaten/barcode / /xsl:attribute barcode:code39 barcode:height14mm/barcode:height barcode:module-width0.29mm/barcode:module-width barcode:human-readable barcode:placementnone/barcode:placement /barcode:human-readable /barcode:code39 /barcode:barcode /fo:instream-foreign-object Note: This seems to be a Barcode4J problem, not a FOP problem. On 19.02.2009 16:38:43 Frank Niedermann wrote: Hi, we plan to use FOP to create PDF and PS outputs for mails and printing. PDF creation works fine and output is as expected, but the PS output differs while using same stylesheet and data (xml). Is there a reason for this behavior? This is the stylesheet: snip/ This is the data: snip/ And we're creating PDF and PS with those commands: fop -xml data.xml -xsl test.xsl -ps test.ps fop -xml data.xml -xsl test.xsl -pdf test.ps Thanks, Frank Here are the two outputs, I hope they are visible ... http://www.nabble.com/file/p22103120/test.pdf test.pdf http://www.nabble.com/file/p22103120/test.ps test.ps -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22103120.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: auto table column width with FOP?
Same answer as to the original thread: Not implemented, yet. You have to specify the columns explicitely. On 20.02.2009 09:17:55 hitesh_jain wrote: Hi, I need column width to be equal to content inside the cell for FOP output, which is same as what we see in html by default. I am using FOP 0.94. Can anybody give idea on the same. Thanks Hitesh Sidi Mohamed Idrissi Yaghir wrote: hi mailing list, i´ve defined a table with 3 columns, that contains blocks with a dynamic content (image or text with different width) , and i want, that the width of these columns will autoresized depending upon contents. Is this possible with FOP? thnx a lot! Simo - 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://www.nabble.com/auto-table-column-width-with-FOP--tp12257232p22116551.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
AW: auto table column width with FOP?
Hi Hitesh, Best way I found: Calculate the string widths and define fixed column widths. And pray you don't have line breaks, subelements, blocks in blocks, multiple inlines or other strange stuff like padding, insets, borders... Here's the method I use: private static FOP analyser = null; public float getWidthPoint2() { double width = 0; if ( analyser == null ) { analyser = new FOP(); } Font f = getActiveFont(); // get the relevant font from somewhere... if (f != null) { try { width = analyser.getTextWidth( text, f.getName(), (int)Math.ceil(f.getSize())); // text is the actual string displayed in the table cell } catch (Exception e) { e.printStackTrace(); } } return (float) width; } Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: hitesh_jain [mailto:hitesh.m.j...@gmail.com] Gesendet: Freitag, 20. Februar 2009 09:18 An: fop-users@xmlgraphics.apache.org Betreff: Re: auto table column width with FOP? Hi, I need column width to be equal to content inside the cell for FOP output, which is same as what we see in html by default. I am using FOP 0.94. Can anybody give idea on the same. Thanks Hitesh Sidi Mohamed Idrissi Yaghir wrote: hi mailing list, i´ve defined a table with 3 columns, that contains blocks with a dynamic content (image or text with different width) , and i want, that the width of these columns will autoresized depending upon contents. Is this possible with FOP? thnx a lot! Simo - 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://www.nabble.com/auto-table-column-width-with-FOP--tp12257232p22116551.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: PS output different from PDF
I've just fixed the bug in Barcode4J. Available from its CVS HEAD. On 20.02.2009 09:20:49 Jeremias Maerki wrote: I'm going to have to investigate a bit more closely why the centering of the barcode is not right in the PostScript case. Anyway, there's a work-around: Specify render-mode=java2d or render-mode=svg on the barcode:barcode element the the PS result should be fine. fo:instream-foreign-object barcode:barcode xmlns:barcode=http://barcode4j.krysalis.org/ns; render-mode=java2d xsl:attribute name=message xsl:value-of select=steuerdaten/barcode / /xsl:attribute barcode:code39 barcode:height14mm/barcode:height barcode:module-width0.29mm/barcode:module-width barcode:human-readable barcode:placementnone/barcode:placement /barcode:human-readable /barcode:code39 /barcode:barcode /fo:instream-foreign-object Note: This seems to be a Barcode4J problem, not a FOP problem. On 19.02.2009 16:38:43 Frank Niedermann wrote: Hi, we plan to use FOP to create PDF and PS outputs for mails and printing. PDF creation works fine and output is as expected, but the PS output differs while using same stylesheet and data (xml). Is there a reason for this behavior? This is the stylesheet: snip/ This is the data: snip/ And we're creating PDF and PS with those commands: fop -xml data.xml -xsl test.xsl -ps test.ps fop -xml data.xml -xsl test.xsl -pdf test.ps Thanks, Frank Here are the two outputs, I hope they are visible ... http://www.nabble.com/file/p22103120/test.pdf test.pdf http://www.nabble.com/file/p22103120/test.ps test.ps -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22103120.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: PS output different from PDF
Hi Jeremias, the main problem is not the barcode, it's that the PS file seems to ignore the general layout of the page. The PDF is landscape format which the PS is not. In addition to that the PS seems to ignore the margin-right value. The alignment of the content is very important for our application as we send those PDF/PS files to suppliers which print them on predefined papers. Is there a reason why generating a PS output would ignore landscape format and margins? Thanks, Frank Jeremias Maerki-2 wrote: I'm going to have to investigate a bit more closely why the centering of the barcode is not right in the PostScript case. Anyway, there's a work-around: Specify render-mode=java2d or render-mode=svg on the barcode:barcode element the the PS result should be fine. fo:instream-foreign-object barcode:barcode xmlns:barcode=http://barcode4j.krysalis.org/ns; render-mode=java2d xsl:attribute name=message xsl:value-of select=steuerdaten/barcode / /xsl:attribute barcode:code39 barcode:height14mm/barcode:height barcode:module-width0.29mm/barcode:module-width barcode:human-readable barcode:placementnone/barcode:placement /barcode:human-readable /barcode:code39 /barcode:barcode /fo:instream-foreign-object Note: This seems to be a Barcode4J problem, not a FOP problem. On 19.02.2009 16:38:43 Frank Niedermann wrote: Hi, we plan to use FOP to create PDF and PS outputs for mails and printing. PDF creation works fine and output is as expected, but the PS output differs while using same stylesheet and data (xml). Is there a reason for this behavior? This is the stylesheet: snip/ This is the data: snip/ And we're creating PDF and PS with those commands: fop -xml data.xml -xsl test.xsl -ps test.ps fop -xml data.xml -xsl test.xsl -pdf test.ps Thanks, Frank Here are the two outputs, I hope they are visible ... http://www.nabble.com/file/p22103120/test.pdf test.pdf http://www.nabble.com/file/p22103120/test.ps test.ps -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22103120.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 -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22117621.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: PS output different from PDF
The page format and margins are not ignored. The values in the PS file are correct. You may simply have to put this in the configuration for the PS output: auto-rotate-landscapetrue/auto-rotate-landscape By default, landscape pages are not rotated. See also: http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration On 20.02.2009 10:40:27 Frank Niedermann wrote: Hi Jeremias, the main problem is not the barcode, it's that the PS file seems to ignore the general layout of the page. The PDF is landscape format which the PS is not. In addition to that the PS seems to ignore the margin-right value. The alignment of the content is very important for our application as we send those PDF/PS files to suppliers which print them on predefined papers. Is there a reason why generating a PS output would ignore landscape format and margins? Thanks, Frank Jeremias Maerki-2 wrote: I'm going to have to investigate a bit more closely why the centering of the barcode is not right in the PostScript case. Anyway, there's a work-around: Specify render-mode=java2d or render-mode=svg on the barcode:barcode element the the PS result should be fine. fo:instream-foreign-object barcode:barcode xmlns:barcode=http://barcode4j.krysalis.org/ns; render-mode=java2d xsl:attribute name=message xsl:value-of select=steuerdaten/barcode / /xsl:attribute barcode:code39 barcode:height14mm/barcode:height barcode:module-width0.29mm/barcode:module-width barcode:human-readable barcode:placementnone/barcode:placement /barcode:human-readable /barcode:code39 /barcode:barcode /fo:instream-foreign-object Note: This seems to be a Barcode4J problem, not a FOP problem. On 19.02.2009 16:38:43 Frank Niedermann wrote: Hi, we plan to use FOP to create PDF and PS outputs for mails and printing. PDF creation works fine and output is as expected, but the PS output differs while using same stylesheet and data (xml). Is there a reason for this behavior? This is the stylesheet: snip/ This is the data: snip/ And we're creating PDF and PS with those commands: fop -xml data.xml -xsl test.xsl -ps test.ps fop -xml data.xml -xsl test.xsl -pdf test.ps Thanks, Frank Here are the two outputs, I hope they are visible ... http://www.nabble.com/file/p22103120/test.pdf test.pdf http://www.nabble.com/file/p22103120/test.ps test.ps -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22103120.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 -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22117621.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: PS output different from PDF
Jeremias Maerki-2 wrote: The page format and margins are not ignored. The values in the PS file are correct. You may simply have to put this in the configuration for the PS output: auto-rotate-landscapetrue/auto-rotate-landscape Do you have an example where to put the renderer-configuration for PS? http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration shows what can be defined but not where and if I put it into the xsl-file I get an error: 20.02.2009 11:20:46 org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNUNG: Unknown formatting object ^renderer 20.02.2009 11:20:46 org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNUNG: Unknown formatting object ^auto-rotate-landscape Thanks, Frank -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22118215.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: PS output different from PDF
In the configuration file, not the FO! fop [..] renderers [..] renderer mime=application/postscript auto-rotate-landscapetrue/auto-rotate-landscape fonts [..] /fonts /renderer /renderers /fop General information about FOP's configuration format here: http://xmlgraphics.apache.org/fop/0.95/configuration.html To use it from the command-line, the -c parameter. And from Java: http://xmlgraphics.apache.org/fop/0.95/embedding.html#config-external On 20.02.2009 11:25:38 Frank Niedermann wrote: Jeremias Maerki-2 wrote: The page format and margins are not ignored. The values in the PS file are correct. You may simply have to put this in the configuration for the PS output: auto-rotate-landscapetrue/auto-rotate-landscape Do you have an example where to put the renderer-configuration for PS? http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration shows what can be defined but not where and if I put it into the xsl-file I get an error: 20.02.2009 11:20:46 org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNUNG: Unknown formatting object ^renderer 20.02.2009 11:20:46 org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNUNG: Unknown formatting object ^auto-rotate-landscape Thanks, Frank -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22118215.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: PS output different from PDF
Hi Jeremias, I found out that it's possible to have a configuration file, we didn't use that yet. The userconfiguration.xml now contains the setting you've mentioned: fop version=1.0 renderer mime=application/postscript auto-rotate-landscapetrue/auto-rotate-landscape /renderer /fop And this is how we use the configuration: fop -xml test.xml -xsl test.xsl -ps test.ps -c userconfig.xml But the PS output is still the same - no change at all. Am I still missing something? Thanks, Frank -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22118357.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: PS output different from PDF
Ah I was missing the renderers in the configuration file. Now it works as expected. Thanks a lot Jeremias, you are a great help! :-) Frank -- View this message in context: http://www.nabble.com/PS-output-different-from-PDF-tp22103120p22118380.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: Making Links in PDF
Thanks a lot, now it works as I wanted it to. But one more thing, I don't get, is why do you use the AffineTansform a 2nd time, before the addLink in your example: AffineTransform pdfInitialTransform = new AffineTransform( 1, 0, 0, -1, 0, pageSize.height); g2d.translate(20, 20); Rectangle rect = new Rectangle(20, 20, 40, 50); g2d.setColor(Color.BLUE); g2d.fill(rect); AffineTransform tx = new AffineTransform(pdfInitialTransform); Rectangle2D targetRect = rect; g2d.addLink(targetRect, tx, 0 0 595 842, PDFLink.INTERNAL); Thanks again Tim Jeremias Maerki-2 wrote: You'll have to dig deeper and extend the code. FitR is currently hard-coded. I'm sure that can be improved. But /Page /Next won't work. I haven't found that possibility in the PDF specification. Take a look at the Table 8.2 in the PDF specification 1.4 on page 475. That shows you what is possible. On 19.02.2009 13:29:52 useratnab wrote: I've tried to change the destination from String pdfdest = /FitR + dest; to String pdfdest = /Page /Next; but this won't do it. I guess I have to dig deeper for it or do you have any suggestions to link the prev. and next page? Thanks Jeremias Maerki-2 wrote: Yes, you'll need that fix I mentioned. You'll have to use the latest FOP Trunk directly from the Subversion repository. On 18.02.2009 14:28:06 useratnab wrote: Hey, first of all I gotta say: a big thanks to you and your support, I got some things fixed, I thought I'd never find the answer for :confused: But unfortunately there's still the Cannot reference this object. It doesn't have an object number error, when calling: g2d.addLink(targetRect, tx, 0 0 595 842, PDFLink.INTERNAL); What fop are you using? Is that SVG #svgView(viewBox()) bug-fix necessary, you mentioned earlier? Thanks again Tim snip/ Jeremias Maerki - 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://www.nabble.com/Making-Links-in-PDF-tp21994320p22099417.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 Jeremias Maerki - 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://www.nabble.com/Making-Links-in-PDF-tp21994320p22118611.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: Making Links in PDF
Oh, that line is just a left-over from some experiments. It just makes a copy of the other AffineTransform. You could use it directly. On 20.02.2009 11:59:15 useratnab wrote: Thanks a lot, now it works as I wanted it to. But one more thing, I don't get, is why do you use the AffineTansform a 2nd time, before the addLink in your example: AffineTransform pdfInitialTransform = new AffineTransform( 1, 0, 0, -1, 0, pageSize.height); g2d.translate(20, 20); Rectangle rect = new Rectangle(20, 20, 40, 50); g2d.setColor(Color.BLUE); g2d.fill(rect); AffineTransform tx = new AffineTransform(pdfInitialTransform); Rectangle2D targetRect = rect; g2d.addLink(targetRect, tx, 0 0 595 842, PDFLink.INTERNAL); Thanks again Tim snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
span is influencing page breaking?
Hi everybody, especially Vincent. Attached fo-file contains a red block which is printed on the first page, although there's not enough space left. If I remove the span=all for the block, it is printed on the next page. Can you tell me why span=all is influencing the page break here? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de break2.fo Description: break2.fo - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Confused about spacing between inlines
Hi everybody, in this small example: fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=content fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=content fo:flow flow-name=xsl-region-body fo:block background-color=blue fo:inline font-size=8.5pt background-color=yellowL/fo:inline fo:inline font-size=6.0pt background-color=yellow baseline-shift=-1.5ptB/fo:inline fo:inline font-size=8.5pt background-color=yellowX/fo:inline /fo:block /fo:flow /fo:page-sequence /fo:root Which parameter is responsible for the gaps between the yellow blocks? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Confused about spacing between inlines
On 20 Feb 2009, at 17:01, Georg Datterl wrote: Hi Georg snip / Which parameter is responsible for the gaps between the yellow blocks? No parameters. It's just the initial value for linefeed-treatment, which is treat-as-space, and that results in one preserved space character between the fo:inlines. Possible solutions: a) use linefeed-treatment=ignore (on the surrounding block, the entire page-sequence or fo:root; the property is inherited) b) make sure no linefeeds are generated between the inlines (which will typically be the case if the FO is a result from a stylesheet transformation) HTH! Cheers Andreas - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: span is influencing page breaking?
On 20 Feb 2009, at 18:31, Andreas Delmelle wrote: On 20 Feb 2009, at 15:47, Georg Datterl wrote: Hi Georg Attached fo-file contains a red block which is printed on the first page, although there's not enough space left. If I remove the span=all for the block, it is printed on the next page. Can you tell me why span=all is influencing the page break here? I don't know why exactly, but the good news is that with FOP Trunk, I cannot reproduce the issue. Sorry, ignore this. I tried with my local sandbox copy, which has a few changes that influence the behavior of the span-property. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Hyphenation Compilation Problem with Java 1.6.0_10
Has anybody encounter problems compiling hyphenation files with Java 1.6? I have a custom hyphenation file (.xml) integrated into my build process to compile a hyp file used for generating PDF reports. This works with no problem within a build environment with JAVA 1.5 using ant 1.7.0. When I hook this up in a Java 1.6.0_10 environment with ant 1.7.1 (exact same hyphenation file) I encounter a stack overflow error. I truncated the TernaryTree list in the output below because it is quite long. I am using fop 0.95. Any insight would be appreciated. Cheers. B. java.lang.StackOverflowError at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe lper.java:508) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1 06) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut or.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Caused by: java.lang.StackOverflowError at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:175) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:228) at