Re: FOP producing BLANK PDFs on 1 of 4 servers
We are using J2SE 1.4.1_04, Tomcat 3.3.1 and mod_jk (not sure what version) I have as of yet been unable to download on the command line using wget or lynx as our system requires username/password logon/authentication and does html redirects so have not yet found a way to actually download the PDF using these methods (just get the redirect page downloaded). If I download and save the PDF's from acrobat the correct one is 45kb and the incorrect one is 78kb, however I did spot a small clue which is Acrobat displays a dialog for a split second when the blank one is loading which is entitled Rebuild with the text This file is damaged but is being repaired. (had to record the screen as an AVI and play back in slo-mo to read it!) Thanks for the help so far, I will write some java to save the correct/incorrect PDF's in their raw form as served up (rather than after saving from acrobat which is what I have now) - maybe this will give me some clues. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fo:external-graphic limitation?
Hi all, I would like to load an external graphic through a parameter value? Because it does not seem to work for me ;-( For example, the following produces the error: [ERROR] Error while creating area : Error with image URL: $logo_path (No such file or directory) and no base URL is specified ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:param name=logo_path select='/tmp/smartdocument.loan/logo.jpg'/ xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=8mm margin-right=8mm fo:region-body margin-top=0cm margin-bottom=0cm/ fo:region-before extent=5cm/ fo:region-after extent=5cm/ /fo:simple-page-master fo:page-sequence-master master-name=page-sequence fo:single-page-master-reference master-reference=simple/ /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=page-sequence fo:flow flow-name=xsl-region-body fo:block font-family=sans-serif font-size=10pt text-align=left fo:table table-layout=fixed fo:table-column column-width=95mm/ fo:table-column column-width=95mm/ fo:table-body fo:table-row fo:table-cell padding=2mm fo:block fo:external-graphic src=$logo_path/ /fo:block [...] I've checked the value of logo_path and it is correct. Maybe there's another way to do it ... Any idea? thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:external-graphic limitation?
Hi, must it be: src={$logo_path}/ ?? btw. which fop version are you using? Dirk mike wrote: Hi all, I would like to load an external graphic through a parameter value? Because it does not seem to work for me ;-( For example, the following produces the error: [ERROR] Error while creating area : Error with image URL: $logo_path (No such file or directory) and no base URL is specified ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:param name=logo_path select='/tmp/smartdocument.loan/logo.jpg'/ xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=8mm margin-right=8mm fo:region-body margin-top=0cm margin-bottom=0cm/ fo:region-before extent=5cm/ fo:region-after extent=5cm/ /fo:simple-page-master fo:page-sequence-master master-name=page-sequence fo:single-page-master-reference master-reference=simple/ /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=page-sequence fo:flow flow-name=xsl-region-body fo:block font-family=sans-serif font-size=10pt text-align=left fo:table table-layout=fixed fo:table-column column-width=95mm/ fo:table-column column-width=95mm/ fo:table-body fo:table-row fo:table-cell padding=2mm fo:block fo:external-graphic src=$logo_path/ /fo:block [...] I've checked the value of logo_path and it is correct. Maybe there's another way to do it ... Any idea? thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:external-graphic limitation?
mike wrote: Hi all, I would like to load an external graphic through a parameter value? Because it does not seem to work for me ;-( For example, the following produces the error: [ERROR] Error while creating area : Error with image URL: $logo_path (No such file or directory) and no base URL is specified snip/ fo:block fo:external-graphic src=$logo_path/ I think you will find that you need to use the following instead: fo:external-graphic src={$logo_path}/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:external-graphic limitation?
Mike, This has worked for me. fo:external-graphic src=url('file:c:///home/htdocs/WebContent/soa/img.jpg')/ fo:external-graphic src=url('https://server:port/home/htdocs/soa/img.jpg')/ Regards, Fabrizio. 2005/11/23, mike [EMAIL PROTECTED]: Hi all, I would like to load an external graphic through a parameter value? Because it does not seem to work for me ;-( For example, the following produces the error: [ERROR] Error while creating area : Error with image URL: $logo_path (No such file or directory) and no base URL is specified ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:param name=logo_path select='/tmp/smartdocument.loan/logo.jpg'/ xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=8mm margin-right=8mm fo:region-body margin-top=0cm margin-bottom=0cm/ fo:region-before extent=5cm/ fo:region-after extent=5cm/ /fo:simple-page-master fo:page-sequence-master master-name=page-sequence fo:single-page-master-reference master-reference=simple/ /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=page-sequence fo:flow flow-name=xsl-region-body fo:block font-family=sans-serif font-size=10pt text-align=left fo:table table-layout=fixed fo:table-column column-width=95mm/ fo:table-column column-width=95mm/ fo:table-body fo:table-row fo:table-cell padding=2mm fo:block fo:external-graphic src=$logo_path/ /fo:block [...] I've checked the value of logo_path and it is correct. Maybe there's another way to do it ... Any idea? thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:external-graphic limitation?
I use xsl:variable and works for me. xsl:variable name=logo_path select='C:/MyPath/tmp/smartdocument.loan/logo.jpg'/ (notice path on filesystem !!! - I allways use absolute) And when I refer to variable image I use {} (don't know if necessary but works for me fo:external-graphic src=""> Try If it works for you Bye Jelka mike [EMAIL PROTECTED] Sent by: news [EMAIL PROTECTED] 23.11.2005 17:21 Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject fo:external-graphic limitation? Hi all, I would like to load an external graphic through a parameter value? Because it does not seem to work for me ;-( For example, the following produces the error: [ERROR] Error while creating area : Error with image URL: $logo_path (No such file or directory) and no base URL is specified ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format xsl:param name=logo_path select='/tmp/smartdocument.loan/logo.jpg'/ xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=8mm margin-right=8mm fo:region-body margin-top=0cm margin-bottom=0cm/ fo:region-before extent=5cm/ fo:region-after extent=5cm/ /fo:simple-page-master fo:page-sequence-master master-name=page-sequence fo:single-page-master-reference master-reference=simple/ /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=page-sequence fo:flow flow-name=xsl-region-body fo:block font-family=sans-serif font-size=10pt text-align=left fo:table table-layout=fixed fo:table-column column-width=95mm/ fo:table-column column-width=95mm/ fo:table-body fo:table-row fo:table-cell padding=2mm fo:block fo:external-graphic src=""> /fo:block [...] I've checked the value of logo_path and it is correct. Maybe there's another way to do it ... Any idea? thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:external-graphic limitation?
I use something like this successfully: fo:external-graphic width=40mm content-width=40mm scaling=uniform xsl:attribute name=srcxsl:value-of select=$photo//xsl:attribute /fo:external-graphic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]