Multi Threaded engine

2012-08-31 Thread Theresa Jayne Forster
I would like to know is anyone working on a multi threaded version of fop, 

 

The thing that I discovered was that when creating a PDF with lots of images
if the images are using external links then it tends to take a long time to
actually get them and put them into a document, I was wondering whether
there was any plans or the ability to quickly scan the external links and
then using multiple threads to get the images in parallel to reduce the
download and creation time.

 

Example:

 

Document using external image links : 3 minutes.

Document preparation (xml-fo processing ) 1 second

Image Download 2 minutes 53 seconds

Fo- PDF : 6 seconds

 

Splitting that down 

All images downloading in parallel 8 seconds:

In Series 2 minutes 53 seconds

 

So if the images were cached in parallel then the time would drop from 3
minutes to 15 seconds processing time.

 

Theresa



Getting Jai included for use by FOP with Maven

2012-02-17 Thread Theresa Jayne Forster
Ok, as you know I was asking how to do this and having so many problems. I
resolved the problem but now have refined the issue 

 

I was looking around and found that the gt-coverage library uses it and
brings in a copy that fop can also use.

So originally I used

repository

idosgeo/id

nameOpen Source Geospatial Foundation Repository/name

urlhttp://download.osgeo.org/webdav/geotools//url

/repository

 

dependency

groupIdorg.geotools/groupId

artifactIdgt-coverage/artifactId

version2.7.4/version

/dependency

 

But that pulls in extra stuff so using the maven dependency tools in
netbeans I have managed to get it to this

 

repository

idosgeo/id

nameOpen Source Geospatial Foundation Repository/name

urlhttp://download.osgeo.org/webdav/geotools//url

/repository

 

dependency

groupIdit.geosolutions.imageio-ext /groupId

artifactIdimageio-ext-tiff/artifactId

version1.0.8/version

/dependency

 

This brings in the JAI without needing it locally.

 

Just thought I would detail my solution so others in the future can google
it and find this solution.

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: How to include JAI in Maven build?

2012-02-14 Thread Theresa Jayne Forster
I tried that, any ideas which repository you get it from?

 

Downloading:
http://mbari-maven-repository.googlecode.com/svn/repository/javax/media/jai/
jai-core/1.1.2/jai-core-1.1.2.pom

Downloading:
http://repo1.maven.org/maven2/javax/media/jai/jai-core/1.1.2/jai-core-1.1.2.
pom

Downloading:
http://www.mygrid.org.uk/maven/repository/javax/media/jai/jai-core/1.1.2/jai
-core-1.1.2.pom

[WARNING] Missing POM for javax.media.jai:jai-core:jar:1.1.2

[WARNING] Missing POM for javax.media.jai:jai-core:jar:1.1.2

Downloading:
http://mbari-maven-repository.googlecode.com/svn/repository/javax/media/jai/
jai-core/1.1.2/jai-core-1.1.2.jar

Downloading:
http://repo1.maven.org/maven2/javax/media/jai/jai-core/1.1.2/jai-core-1.1.2.
jar

Downloading:
http://www.mygrid.org.uk/maven/repository/javax/media/jai/jai-core/1.1.2/jai
-core-1.1.2.jar

[INFO]


[INFO] BUILD FAILURE

[INFO]


[INFO] Total time: 6.075s

[INFO] Finished at: Tue Feb 14 09:36:53 GMT 2012

[INFO] Final Memory: 5M/70M

[INFO]


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single
(default-cli) on project FopEngine: Failed to create assembly: Failed to
resolve dependencies for project: uk.co.inbrand:FopEngine:jar:1.0: Missing:

[ERROR] --

[ERROR] 1) javax.media.jai:jai-core:jar:1.1.2

[ERROR]

[ERROR] Try downloading the file manually from the project website.

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Rob Sargent [mailto:rsarg...@xmission.com] 
Sent: 13 February 2012 15:42
To: fop-users@xmlgraphics.apache.org
Subject: Re: How to include JAI in Maven build?

 

We have this dependency in one of our poms, and it brings in jai

dependency
groupIdjavax.media.jai/groupId
artifactIdjai-core/artifactId
version1.1.2/version
/dependency


On 02/13/2012 08:14 AM, Theresa Jayne Forster wrote: 

Just wondering if anyone has worked out how to get Jai working with FOP in a
standalone Jar file?

 

Even if you include the JAI jars, there are the dll's as well,  has anyone
got an example of a Maven POM file to show this working?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




 



RE: Invalid PDF files from FOP 1.0

2012-02-13 Thread Theresa Jayne Forster
Its not the fonts or anything - its that a simple fo file is not producing a
valid pdf file at all no matter what I do. Its openable within Sumatra pdf
but not in foxit or adobe. 

 

I check the output logs, there are like WARNs but no ERRORS and it states it
has rendered  the page ok. (as you can see below) 

So why am I unable to open the PDF with adobe?

 

 

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@7a74db2c object number 29

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@7a74db2c object number 29

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@de16483 object number 30

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@de16483 object number 30

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@488ddb93 object number 31

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@488ddb93 object number 31

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@594ab51b object number 32

2012-02-13 15:58:00,974 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@594ab51b object number 32

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFToUnicodeCMap@3bc6d11a object number 33

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFToUnicodeCMap@3bc6d11a object number 33

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@79ca209e object number 34

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFFont@79ca209e object number 34

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFToUnicodeCMap@4523a389 object number 35

2012-02-13 15:58:00,975 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFToUnicodeCMap@4523a389 object number 35

2012-02-13 15:58:00,976 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFNumber@26c59ad5 object number 36

2012-02-13 15:58:00,976 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFNumber@26c59ad5 object number 36

2012-02-13 15:58:00,977 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFNumber@773829d5 object number 37

2012-02-13 15:58:00,977 [pool-1-thread-1] DEBUG org.apache.fop.pdf.PDFObject
- Assigning org.apache.fop.pdf.PDFNumber@773829d5 object number 37

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.render.intermediate.IFRenderer - Rendering finished.

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.render.intermediate.IFRenderer - Rendering finished.

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Initial heap size: 11600KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Initial heap size: 11600KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Current heap size: 15499KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Current heap size: 15499KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Total memory used: 3899KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Total memory used: 3899KB

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Total time used: 7548ms

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Total time used: 7548ms

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Pages rendered: 6

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Pages rendered: 6

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Avg render time: 1258ms/page
(48pages/min)

2012-02-13 15:58:01,003 [pool-1-thread-1] DEBUG
org.apache.fop.area.AreaTreeHandler - Avg render time: 1258ms/page
(48pages/min)

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Rob Sargent [mailto:rsarg...@xmission.com] 
Sent: 13 February 2012 16:19
To: fop-users@xmlgraphics.apache.org
Subject: Re: Invalid PDF files from FOP 1.0

 

Don't you want to reference your fonts relative to font-base?

On 02/13/2012 09:07 AM, Theresa Jayne Forster wrote: 

Well I have sort of tested the system now, I used

RE: Invalid PDF files from FOP 1.0

2012-02-13 Thread Theresa Jayne Forster
Thanks to everyone who has tried to help, apparently the example I used as a
template on the web was a little broken and didn't close the output streams
correctly, so with your help I now know what is wrong and am putting it
right. 

 

Thanks again 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 13 February 2012 16:07
To: fop-users@xmlgraphics.apache.org
Subject: Invalid PDF files from FOP 1.0

 

Well I have sort of tested the system now, I used the default fonts.fo file
and transformed it to PDF. 

 

This simple PDF is not compatible with adobe reader. 

This is now getting silly. 

 

My code + test files + output files are available at
http://athos.ardentservers.com/fopengine-error.zip

 

If someone could point me to the reason why I am getting invalid PDFs out I
would appreciate it.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



RE: Cell border rendering error (thicker) with number-column-spanned

2012-02-10 Thread Theresa Jayne Forster
I have seen that but I don't think it's actually bigger, it seems to be when
the reader tries to show a 1 pixel (for example) line it guestimates it as 2
pixels, as pixels on document and pixels on zoomed viewer do not necessarily
match, the other day SumatraPDF was showing all Letter l characters as
double thickness/bold but when zoomed in or printed they looked ok.


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: zhangwei [mailto:cdzha...@gmail.com] 
Sent: 10 February 2012 09:14
To: fop-users@xmlgraphics.apache.org
Subject: Cell border rendering error (thicker) with number-column-spanned


I've met with a problem with thicker table border with number-column-spanned
on FOP 1.0.
The copied text exactly describes the same problem I have.

When zoomed to 100% or 200% in Adobe reader, you can find the thicker line.

Any idea? Seems like it's a bug of FOP, if so, can anyone fix it or point
the Java file I should go?

Adobe Reader: 8.3.1
FOP: 1.0
FO:
?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; role=html:html
fo:layout-master-set
fo:simple-page-master page-width=auto
page-height=auto master-name=all-pages
fo:region-body /
fo:region-before /
fo:region-after /
fo:region-start /
fo:region-end  /
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=all-pages
fo:flow flow-name=xsl-region-body
fo:block role=html:body
fo:table 
fo:table-column
number-columns-repeated=3
role=html:colgroup /
fo:table-body
border-collapse=collapse
fo:table-row
fo:table-cell 

number-columns-spanned=3 border=1px border-style=solid

role=html:td

fo:blocktest text
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell 

number-columns-spanned=3 border=1px border-style=solid

role=html:td

fo:blocktest text
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:block
/fo:flow
/fo:page-sequence
/fo:root

Copied:
I found that using the attribute number-column-spanned inside a cell
element, I get a bad rendering of the cell border: it gets thicker in the
central section of the border.

http://permalink.gmane.org/gmane.text.xml.fop.user/30912
-- 
View this message in context:
http://old.nabble.com/Cell-border-rendering-error-%28thicker%29-with-number-
column-spanned-tp33298921p33298921.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: Problem that could lose me my job

2012-02-08 Thread Theresa Jayne Forster
OK I think I have sorted out the image url issue now when I run the pdf it 
shows the following warnings

2012-02-08 09:37:39,131 [pool-1-thread-1] WARN  
uk.co.inbrand.fopengine.FopEngine - Before Instantiation

2012-02-08 09:37:39,156 [pool-1-thread-1] WARN  
uk.co.inbrand.fopengine.FopEngine - After Instantiation

2012-02-08 09:37:54,758 [pool-1-thread-2] WARN  org.apache.fop.apps.FOUserAgent 
- Line 1 of a paragraph overflows the available area by 11339 millipoints. (See 
position 51:11)

2012-02-08 09:37:54,768 [pool-1-thread-2] WARN  org.apache.fop.apps.FOUserAgent 
- Content overflows the viewport of an fo:block-container in block-progression 
direction by 17123 millipoints. (See position 50:90)

2012-02-08 09:37:54,794 [pool-1-thread-2] WARN  org.apache.fop.apps.FOUserAgent 
- Content overflows the viewport of an fo:block-container in block-progression 
direction by 5784 millipoints. (See position 637:92)

2012-02-08 09:37:57,192 [pool-1-thread-2] WARN  org.apache.fop.apps.FOUserAgent 
- Line 1 of a paragraph overflows the available area by 11339 millipoints. (See 
position 682:11)

2012-02-08 09:37:57,193 [pool-1-thread-2] WARN  org.apache.fop.apps.FOUserAgent 
- Content overflows the viewport of an fo:block-container in block-progression 
direction by 17123 millipoints. (See position 681:91)

2012-02-08 09:37:57,487 [pool-1-thread-2] WARN  org.apache.fop.apps.FOUserAgent 
- Line 1 of a paragraph overflows the available area by 11339 millipoints. (See 
position 1358:11)

2012-02-08 09:37:57,488 [pool-1-thread-2] WARN  org.apache.fop.apps.FOUserAgent 
- Content overflows the viewport of an fo:block-container in block-progression 
direction by 17123 millipoints. (See position 1357:91)

 

But it is still not creating a valid PDF 

I am getting image errors in the info log still where it can’t find an importer 
or convertor. What jars do I need for jpg files?

I have batik and XMLGraphics-Commons-1.4 

Is there any other jar I need – like JAI? And if so what are the maven 
dependencies I need?

 

 

 

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




From: Craig Ringer [mailto:ring...@ringerc.id.au] 
Sent: 08 February 2012 03:56
To: fop-users@xmlgraphics.apache.org
Cc: Luis Ferro
Subject: Re: Problem that could lose me my job

 

On 08/02/12 03:23, Luis Ferro wrote: 

Hmmm... why not installing those files in a local webserver?

That way you would have a proper uri (http://localhost/etc...)

file:/// file:///\\  is a proper URI, it's just not a URL. Fop only requires 
resolvable URIs and doesn't really care where they come from.

Using HTTP would add transfer overhead and slow things down for little if any 
benefit. I don't really see the point, when fixing the URI syntax to conform to 
correct file URI syntax is all that's required here.

--
Craig Ringer



RE: Problem that could lose me my job

2012-02-07 Thread Theresa Jayne Forster
Thank you for all your time guys,  I was being a clutz, Unbeknown to me all
ERRORS were being pushed into a separate file - (I didn't put together the
log.properties ) 

 

In the error log I am getting an exception as below. So it is having
problems getting the images, so at least I have somewhere to look

 

 

2012-02-03 15:20:41,503 [pool-1-thread-2] ERROR
org.apache.fop.apps.FopFactory - Attempt to resolve URI
'C:\InBrand\preprocessor\filestore\img3525450795559698480.jpg' failed: 

javax.xml.transform.TransformerException: Error with URL; base
'file:/C:/InBrand/preprocessor/filestore/' href
'C:\InBrand\preprocessor\filestore\img3525450795559698480.jpg'

at
org.apache.fop.apps.FOURIResolver.handleException(FOURIResolver.java:141)

at
org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:272)

at
org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:753)

at
org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:425)

at
org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:398)

at
org.apache.fop.apps.FOUserAgent$1.resolveURI(FOUserAgent.java:141)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.newSour
ce(AbstractImageSessionContext.java:77)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSou
rce(AbstractImageSessionContext.java:280)

at
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCach
e.java:123)

at
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.j
ava:122)

at
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)

at org.apache.fop.fo.FObj.processNode(FObj.java:123)

at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav
a:282)

at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)

at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transforme
rIdentityImpl.java:1072)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)

at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.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.xalan.transformer.TransformerIdentityImpl.transform(TransformerId
entityImpl.java:484)

at
uk.co.inbrand.fopengine.FopEngine.generatePDFromFO(FopEngine.java:197)

at
uk.co.inbrand.fopengine.FopProcessor.run(FopProcessor.java:50)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
va:886)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
08)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.net.MalformedURLException: unknown protocol: c

at java.net.URL.init(URL.java:574)

at java.net.URL.init(URL.java:464)

at
org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:270)

... 28 more

-

java.net.MalformedURLException: unknown protocol: c

at java.net.URL.init(URL.java:574)

at java.net.URL.init(URL.java:464)

at
org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:270)

at
org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:753)

at
org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:425)

at
org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:398)

at
org.apache.fop.apps.FOUserAgent$1.resolveURI(FOUserAgent.java:141)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.newSour
ce(AbstractImageSessionContext.java:77)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSou
rce(AbstractImageSessionContext.java:280)

at
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCach
e.java:123)

at
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.j
ava:122)

at

RE: Generating a PDF by drawing to PDFDocumentGraphics2D

2012-02-07 Thread Theresa Jayne Forster
The usual way we create PDFs is via XML/XSL into a .fo file which is then 
compiled into the pdf.

Example of the code 
public File generatePDFFromXml(File xslFile,File xmlFile) {
BufferedOutputStream out = null;
File tempFile = null;
fopFactory.setStrictValidation(false);
DefaultConfigurationBuilder cfgBuilder = new 
DefaultConfigurationBuilder();
Configuration cfg = cfgBuilder.buildFromFile(new 
File(fopconfig.xml));
fopFactory.setUserConfig(cfg);

tempFile = File.createTempFile(W2P, .pdf);
out = new BufferedOutputStream(new FileOutputStream(tempFile));
FOUserAgent useragent= fopFactory.newFOUserAgent();
useragent.setOutputFile(tempFile);
useragent.setTargetResolution(300);
System.out.println(Creating New Fop);
long timer = System.currentTimeMillis();
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
System.out.println(Creation of Fop took 
+(System.currentTimeMillis()-timer)+ Miliseconds);
TransformerFactory factory = TransformerFactory.newInstance();
Source xslt = new StreamSource(xslFile);
Transformer transformer = factory.newTransformer(xslt);
Source src = new StreamSource(xmlFile);
Result res = new SAXResult(fop.getDefaultHandler());
System.out.println(Creating PDF);
timer = System.currentTimeMillis();
transformer.transform(src, res);
System.out.println(Creation of PDF took 
+(System.currentTimeMillis()-timer)+ Miliseconds);
   out.flush();
   out.close();
}

The XSL and xml can do most anything but a snippet is below of the xsl

fo:page-sequence master-reference=propdetails
fo:static-content flow-name=xsl-region-before
fo:block-container position=absolute top=0mm left=0mm 
width=210mm height=49mm 
xsl:call-template name=property_header
xsl:with-param 
name=width214/xsl:with-param
xsl:with-param 
name=height53/xsl:with-param
/xsl:call-template
/fo:block-container
fo:block-container position=absolute top=56mm left=11mm 
width=188mm height=113mm overflow=hidden
fo:block
xsl:variable name=picurl
xsl:value-of 
select=/document/data/body/descendant-or-self::*[@id='large']/@src/
/xsl:variable
fo:external-graphic width=188mm 
height=113mm content-width=188mm content-height=auto 
scaling-method=resample-any-method src={$picurl} /
/fo:block
/fo:block-container
fo:block-container position=absolute top=173mm left=10mm 
width=57mm height=22mm
fo:block
fo:instream-foreign-object
svg:svg 
xmlns:svg=http://www.w3.org/2000/svg; xmlns=http://www.w3.org/2000/svg; 
xmlns:xlink=http://www.w3.org/1999/xlink;
 version=1.1 width=57mm 
height=22mm id=roundedbox viewbox=0 0 57 22 g
 rect x=0mm y=0mm width=57mm 
height=22mm rx=5 ry=5 style=stroke: white; fill: #005924;/
/g
/svg:svg
/fo:instream-foreign-object
/fo:block

Hope this helps.

Kindest regards


Theresa Forster
Senior Software Developer


-Original Message-
From: Konstantin Preißer [mailto:verlag.preis...@t-online.de] 
Sent: 07 February 2012 12:20
To: fop-users@xmlgraphics.apache.org
Subject: Generating a PDF by drawing to PDFDocumentGraphics2D

Hi all,

I'm sorry if this is the wrong place for my question.

I was seaching for a way to dynamically generate a PDF in Java code by drawing 
to a Graphics2D object. When I googled this, I found Apache FOP 1.0 which has a 
org.apache.fop.svg.PDFDocumentGraphics2D class (derived from Graphics2D), which 
seems to support dynamically generating a PDF by drawing to it.

E.g., I use code like this to generate a PDF and write it to an OutputStream 
(using Java 1.7):

PDFDocumentGraphics2D g = new PDFDocumentGraphics2D(false, out, 842, 595);

g.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());

g.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 12));
g.drawLine(10, 10, 100, 100);
g.drawString(Hi!, 30, 30);

g.nextPage(); // switch to next page

g.drawString(This is the 2nd page., 30, 30);


g.finish();
g.dispose();

This seems to be working really well, using the integrated PDF Fonts.

However, I now have the problem that these integrated fonts seem not to support 
Unicode 

Problem that could lose me my job

2012-02-03 Thread Theresa Jayne Forster
I have just come across a problem that may lose me my job unless I can
resolve it.

1.   I am using Fop-1.0 

2.   I create PDFs and then view them in Sumatra PDF - perfectly fine

3.   Try to open the same file in Adobe Acrobat - it reports that the
file is corrupt and cannot be repaired..

 

Help please.

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Problem that could lose me my job

2012-02-03 Thread Theresa Jayne Forster
Sorry, I was under pressure to roll back the servers that we had just
upgraded to use the fop 1.0 system. 

One of the failing PDFs is at http://www.inbrand1.co.uk/failsinadobe.pdf

The FO that generated it is at http://www.inbrand1.co.uk/failsinadobe.fo

 

The fopconfig has nothing except font configurations in it. A couple have
kerning xml files as they produce incorrectly without.

 

The routine that produces the PDF is as follows 

 

public File generatePDFromFO(File foFile) {

OutputStream ot = null;

BufferedOutputStream out = null;

File tempFile = null;

try {

tempFile = File.createTempFile(W2P, .pdf);

out = new BufferedOutputStream( new FileOutputStream(tempFile));

fopFactory.setStrictValidation(false);

DefaultConfigurationBuilder cfgBuilder = new
DefaultConfigurationBuilder();

Configuration cfg = cfgBuilder.buildFromFile(new
File(/fopconfig.xml));

fopFactory.setUserConfig(cfg);

FOUserAgent useragent= fopFactory.newFOUserAgent();

useragent.setTargetResolution(300);

Fop fop =
fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);

TransformerFactory factory = TransformerFactory.newInstance();

Source src = new StreamSource(foFile);

Transformer transformer = factory.newTransformer();

Result res = new SAXResult(fop.getDefaultHandler());

transformer.transform(src, res);

} catch (IOException ioe) {

LOGGER.error(IOException ,ioe);

ioe.printStackTrace();

} catch (SAXException se) {

LOGGER.error(Sax Exception ,se);

se.printStackTrace();

} catch (ConfigurationException ce) {

LOGGER.error(Configuration Exception ,ce);

ce.printStackTrace();

} catch (TransformerConfigurationException tce) {

LOGGER.error(Transformer Configuration Exception,tce);

tce.printStackTrace();

} catch (TransformerException te) {

LOGGER.error(Transformer Exception ,te);

te.printStackTrace();

}

return tempFile;

}

 

 

Fop config file here

 

fop xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 

strict-configurationtrue/strict-configuration

baseC:\preprocessor\filestore\/base

 

font-base/Fonts/font-base

 

cache-file/fop-cache/cache-file

!--



  Add fonts here



--

renderers

renderer mime=application/pdf

fonts

font
embed-url=FRUTL___.TTF kerning=yes metrics-url=FrutigerLight.xml

 
font-triplet name=Frutiger style=normal weight=200/

/font


font
embed-url=FRUTB___.TTF kerning=yes

 
font-triplet name=Frutiger style=normal weight=400/

/font


font
embed-url=tfarrow-medium.TTF

 
font-triplet name=TFArrow style=normal weight=400/

/font


font
embed-url=HELVNBL_.TTF

 
font-triplet name=HelveticaNeue style=normal weight=900/

/font


font
embed-url=helveticaneue_85hv.ttf

 
font-triplet name=HelveticaNeue style=normal weight=800/

/font


font
embed-url=HELVNBI_.TTF

 
font-triplet name=HelveticaNeue style=italic weight=700/

/font


font
embed-url=HELVNM__.TTF

 
font-triplet name=HelveticaNeue style=normal weight=500/

/font


font
embed-url=HELVNI__.TTF

 
font-triplet name=HelveticaNeue style=italic weight=400/

/font


font
embed-url=lte50259.ttf

 
font-triplet name=HelveticaNeue style=normal weight=400/

 
font-triplet name=HelveticaNeue style=roman weight=400/


RE: Problem that could lose me my job

2012-02-03 Thread Theresa Jayne Forster
The stacktraces were added to allow me to quickly debug without trapesing
through the mega log that log4J is spewing out from the whole system (I know
its wrong hell I cringe whenever I see some of the code but it is based on
the old system just upgraded for Fop 1.0 as the old system was 0.23 with a
handful of custom addons like accepting font-weight=bold and z-index=2
to using a bare 1.0

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Craig Ringer [mailto:ring...@ringerc.id.au] 
Sent: 03 February 2012 14:00
To: fop-users@xmlgraphics.apache.org
Cc: Theresa Jayne Forster
Subject: Re: Problem that could lose me my job

 

On 3/02/2012 8:58 PM, Theresa Jayne Forster wrote: 

Sorry, I was under pressure to roll back the servers that we had just
upgraded to use the fop 1.0 system. 

One of the failing PDFs is at http://www.inbrand1.co.uk/failsinadobe.pdf

The FO that generated it is at http://www.inbrand1.co.uk/failsinadobe.fo

 

Adobe (or even Adobe Acrobat or Adobe Reader) can be a lot of
different things. Versions are important.

That said, the PDF is clearly broken. Adobe Reader X fails with There was
an error opening this document. The file is damaged and could not be
repaired. It isn't handled by Chrome either.

Re David's comment about the XSL-FO being non-confirming: If fop produces a
broken PDF silently and without error output that is a fop bug, even if it's
triggered by bad XSL-FO input. A warning should be emitted if valid PDF can
be produced - though possibly not displaying how the author intended - but
if no valid PDF can be produced that surely must be a fatal error. I know
you're not actually saying it's *not* a fop bug, just being clear that IMO
bad FO - bad PDF *is* a fop bug.

However, looking at your code below, I see little reason to believe this is
a fop bug. All you've shown so far is that your code ignores errors if fop
does tell you about them. Have you looked at your application's error logs
to see if fop is throwing an exception and if so, what? That's the only
place you'll see errors since your code otherwise ignores them:




} catch (IOException ioe) { 

LOGGER.error(IOException ,ioe);

ioe.printStackTrace();

} catch (SAXException se) {

LOGGER.error(Sax Exception ,se);

se.printStackTrace();

} catch (ConfigurationException ce) {

LOGGER.error(Configuration Exception ,ce);

ce.printStackTrace();

} catch (TransformerConfigurationException tce) {

LOGGER.error(Transformer Configuration Exception,tce);

tce.printStackTrace();

} catch (TransformerException te) {

LOGGER.error(Transformer Exception ,te);

te.printStackTrace();

}

return tempFile;

 


... that's some interesting error handling code. LOGGER clearly doesn't
throw another (wrapping) exception since otherwise `te.printStackTrace()'
would never be getting executed. That means your code is logging an error
(two different ways) then IGNORING IT.

Not only is that error handling code rather skeezy, but you assign a value
to tempFile early on and do not clear it when an error occurs, so you MAY
RETURN A HALF-WRITTEN GARBAGE FILE TO THE CALLER if an error occurs.

I strongly advise you to fix your error handling code and re-test. There are
at least a few bugs in that code:

- After some errors you may return a handle to an incompletely written temp
file without any indication it's broken

- You don't close your file handle(s) or streams, so you're relying on the
objects' finialisation to do it for you when the gc gets
  around to cleaning them up. This is not usually a good idea. You really
need to be using try{}finally{} blocks to clean up
  resources like this.

Try correcting your error handling code and seeing if the problem changes.

Please also send any messages fop 1.0 logs with detailed logging enabled
when it is producing the faulty PDF. I'm sure you've looked at the logs as
part of basic first-step troubleshooting anyway, so you should have no
problem bringing them to hand...

Here's a 30-second quickly hacked out version of how I'd want to tweak this.
I haven't tested this code and don't claim I'm any expert, I'm just sure
it's closer than what you're using right now:

// Of course you'd use your app's real exception classes instead of this
demo
// scratch code
public class MyApplicationRuntimeException extends RuntimeException {
public MyApplicationRuntimeException(Throwable err) { super(err); }
public MyApplicationRuntimeException(String msg) { super(msg); }
public MyApplicationRuntimeException(String msg, Throwable err) {
super(msg,err); }
}

public File generatePDFromFO(File foFile) {
File tempFile = File.createTempFile(W2P, .pdf);
try {
fopFactory.setStrictValidation(false);  // --  This is a
**HINT** you're doing something

RE: Problem that could lose me my job

2012-02-03 Thread Theresa Jayne Forster
Ok Checked the deletion code, it doesn’t appear to be that , I stopped that
part happening but the pdf is still ending up corrupt for adobe and Foxit
(but still valid with no errors on Sumatra PDF)  

Kindest regards
Theresa Forster
Senior Software Developer

-Original Message-
From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 03 February 2012 14:06
To: fop-users@xmlgraphics.apache.org
Subject: RE: Problem that could lose me my job

Ok I have put the complete log for the generation on a gist as it is Way
to big to post here https://gist.github.com/1730300
I will check the code I have that sends the pdf to the client then check it
is flushing and completing before deleting the file to prevent clutter
Maybe I need to change my fileisreadystrategy 


Thanks for the heads up there at least it gives me somewhere to look.


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: 03 February 2012 13:51
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem that could lose me my job

Hi Theresa,

The PDF you put up isn't complete, it's as if FOP stopped creating the
document for some reason. Was an exception thrown? Would there be any
reason why FOP wouldn't finish writing to file? If so, I'd suggest you
try FOP trunk as well to see if the same problem arises, if so, then
the stacktrace should give an indication as to what is causing the
problem.

Mehdi

On 3 February 2012 13:32, Theresa Jayne Forster ther...@inbrand.co.uk
wrote:
 Why would that make the output PDF invalid to Adobe and not to Sumatra
pdf?





 Kindest regards




 Theresa Forster

 Senior Software Developer

 From: David J. B. Hollis [mailto:dhol...@aandoconsultancy.ltd.uk]
 Sent: 03 February 2012 13:19
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Problem that could lose me my job



 Hi,



 I've just opened the FO file in oXygen, and it throws up a number of
errors:



 @ margin-top not allowed in fo:region-start

 @ z-index not allowed in fo:region-body

 @ z-index not allowed in fo:region-before

 @ z-index not allowed in fo:region-after



 ... about 20 or so in the fo:simple-page-master section



 HTH

 David









 Sorry, I was under pressure to roll back the servers that we had just
 upgraded to use the fop 1.0 system.

 One of the failing PDFs is at http://www.inbrand1.co.uk/failsinadobe.pdf

 The FO that generated it is at http://www.inbrand1.co.uk/failsinadobe.fo



 The fopconfig has nothing except font configurations in it. A couple have
 kerning xml files as they produce incorrectly without.



 The routine that produces the PDF is as follows



 public File generatePDFromFO(File foFile) {

     OutputStream ot = null;

     BufferedOutputStream out = null;

     File tempFile = null;

     try {

     tempFile = File.createTempFile(W2P, .pdf);

     out = new BufferedOutputStream( new
FileOutputStream(tempFile));

     fopFactory.setStrictValidation(false);

     DefaultConfigurationBuilder cfgBuilder = new
 DefaultConfigurationBuilder();

     Configuration cfg = cfgBuilder.buildFromFile(new
 File(/fopconfig.xml));

     fopFactory.setUserConfig(cfg);

     FOUserAgent useragent= fopFactory.newFOUserAgent();

     useragent.setTargetResolution(300);

     Fop fop =
 fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);

     TransformerFactory factory = TransformerFactory.newInstance();

     Source src = new StreamSource(foFile);

     Transformer transformer = factory.newTransformer();

     Result res = new SAXResult(fop.getDefaultHandler());

     transformer.transform(src, res);

 } catch (IOException ioe) {

     LOGGER.error(IOException ,ioe);

     ioe.printStackTrace();

     } catch (SAXException se) {

     LOGGER.error(Sax Exception ,se);

     se.printStackTrace();

     } catch (ConfigurationException ce) {

     LOGGER.error(Configuration Exception ,ce);

     ce.printStackTrace();

     } catch (TransformerConfigurationException tce) {

     LOGGER.error(Transformer Configuration Exception,tce);

     tce.printStackTrace();

     } catch (TransformerException te) {

     LOGGER.error(Transformer Exception ,te);

     te.printStackTrace();

     }

     return tempFile;

     }





 Fop config file here



 fop xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 

     strict-configurationtrue/strict-configuration

     baseC:\preprocessor\filestore\/base



     font-base/Fonts/font-base



     cache-file/fop-cache/cache-file

     !--

 

   Add fonts here

RE: Problem that could lose me my job

2012-02-03 Thread Theresa Jayne Forster
UPDATE: Tried on 0.95-1 and 0.95 (the latter needed the Avalon framework
adding manually to the pom) 
Still does not work, any suggestions why I am getting a pdf that works in a
3rd party viewer and not in adobe.

Kindest regards


Theresa Forster
Senior Software Developer
-Original Message-
From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 03 February 2012 14:44
To: fop-users@xmlgraphics.apache.org
Subject: RE: Problem that could lose me my job

Ok Checked the deletion code, it doesn’t appear to be that , I stopped that
part happening but the pdf is still ending up corrupt for adobe and Foxit
(but still valid with no errors on Sumatra PDF)  

Kindest regards
Theresa Forster
Senior Software Developer

-Original Message-
From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 03 February 2012 14:06
To: fop-users@xmlgraphics.apache.org
Subject: RE: Problem that could lose me my job

Ok I have put the complete log for the generation on a gist as it is Way
to big to post here https://gist.github.com/1730300
I will check the code I have that sends the pdf to the client then check it
is flushing and completing before deleting the file to prevent clutter
Maybe I need to change my fileisreadystrategy 


Thanks for the heads up there at least it gives me somewhere to look.


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: 03 February 2012 13:51
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem that could lose me my job

Hi Theresa,

The PDF you put up isn't complete, it's as if FOP stopped creating the
document for some reason. Was an exception thrown? Would there be any
reason why FOP wouldn't finish writing to file? If so, I'd suggest you
try FOP trunk as well to see if the same problem arises, if so, then
the stacktrace should give an indication as to what is causing the
problem.

Mehdi

On 3 February 2012 13:32, Theresa Jayne Forster ther...@inbrand.co.uk
wrote:
 Why would that make the output PDF invalid to Adobe and not to Sumatra
pdf?





 Kindest regards




 Theresa Forster

 Senior Software Developer

 From: David J. B. Hollis [mailto:dhol...@aandoconsultancy.ltd.uk]
 Sent: 03 February 2012 13:19
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Problem that could lose me my job



 Hi,



 I've just opened the FO file in oXygen, and it throws up a number of
errors:



 @ margin-top not allowed in fo:region-start

 @ z-index not allowed in fo:region-body

 @ z-index not allowed in fo:region-before

 @ z-index not allowed in fo:region-after



 ... about 20 or so in the fo:simple-page-master section



 HTH

 David









 Sorry, I was under pressure to roll back the servers that we had just
 upgraded to use the fop 1.0 system.

 One of the failing PDFs is at http://www.inbrand1.co.uk/failsinadobe.pdf

 The FO that generated it is at http://www.inbrand1.co.uk/failsinadobe.fo



 The fopconfig has nothing except font configurations in it. A couple have
 kerning xml files as they produce incorrectly without.



 The routine that produces the PDF is as follows



 public File generatePDFromFO(File foFile) {

     OutputStream ot = null;

     BufferedOutputStream out = null;

     File tempFile = null;

     try {

     tempFile = File.createTempFile(W2P, .pdf);

     out = new BufferedOutputStream( new
FileOutputStream(tempFile));

     fopFactory.setStrictValidation(false);

     DefaultConfigurationBuilder cfgBuilder = new
 DefaultConfigurationBuilder();

     Configuration cfg = cfgBuilder.buildFromFile(new
 File(/fopconfig.xml));

     fopFactory.setUserConfig(cfg);

     FOUserAgent useragent= fopFactory.newFOUserAgent();

     useragent.setTargetResolution(300);

     Fop fop =
 fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);

     TransformerFactory factory = TransformerFactory.newInstance();

     Source src = new StreamSource(foFile);

     Transformer transformer = factory.newTransformer();

     Result res = new SAXResult(fop.getDefaultHandler());

     transformer.transform(src, res);

 } catch (IOException ioe) {

     LOGGER.error(IOException ,ioe);

     ioe.printStackTrace();

     } catch (SAXException se) {

     LOGGER.error(Sax Exception ,se);

     se.printStackTrace();

     } catch (ConfigurationException ce) {

     LOGGER.error(Configuration Exception ,ce);

     ce.printStackTrace();

     } catch (TransformerConfigurationException tce) {

     LOGGER.error(Transformer Configuration Exception,tce);

     tce.printStackTrace();

     } catch (TransformerException te) {

     LOGGER.error(Transformer Exception ,te);

     te.printStackTrace();

     }

     return tempFile

Batik Problems

2012-02-02 Thread Theresa Jayne Forster
Ok I have solved my batik issue, apparently you cannot use one-jar to create
a standalone jar as it cannot get the default CSS and XSD files from the
library batik jars. 

 

So changing to using maven assembly plugin it now puts the jars in unpacked,
so the classes and files are available.

Now the images are not working..

 

2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
\InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info
available)

2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
\InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info
available)

 

I have the BASEURL set in the fopconfig.xml file as /

I also tried accessing them as explicit paths

 

2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context
info available)

2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context
info available)

 

I just saw the following in the logs. Why is it trying to load a jpg as an
SVG?

 

2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG
org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load
stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.

2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG
org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load
stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.

2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not available. URI:
\InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason:
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for
\InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position
1296:195)

2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not available. URI:
\InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason:
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for
\InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position
1296:195)

 

 

Can anyone suggest why this was working and now is not?

 

Kindest regards

 


Theresa Forster

Senior Software Developer




 



RE: Batik Problems

2012-02-02 Thread Theresa Jayne Forster
org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Lowest
penalty: 2147483647

2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG
org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - No route
found!

2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG
org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - No route
found!

2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG
org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Pipeline:
Loader: org.apache.fop.image.loader.batik.ImageLoaderSVG@67214626 with
penalty 0

2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG
org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Pipeline:
Loader: org.apache.fop.image.loader.batik.ImageLoaderSVG@67214626 with
penalty 0

 

Kindest regards

 


Theresa Forster

Senior Software Developer 

 

From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 02 February 2012 11:58
To: fop-users@xmlgraphics.apache.org
Subject: Batik Problems

 

Ok I have solved my batik issue, apparently you cannot use one-jar to create
a standalone jar as it cannot get the default CSS and XSD files from the
library batik jars. 

 

So changing to using maven assembly plugin it now puts the jars in unpacked,
so the classes and files are available.

Now the images are not working..

 

2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
\InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info
available)

2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
\InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info
available)

 

I have the BASEURL set in the fopconfig.xml file as /

I also tried accessing them as explicit paths

 

2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context
info available)

2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR
org.apache.fop.apps.FOUserAgent - Image not found. URI:
C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context
info available)

 

I just saw the following in the logs. Why is it trying to load a jpg as an
SVG?

 

2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG
org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load
stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.

2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG
org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load
stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.

2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not available. URI:
\InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason:
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for
\InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position
1296:195)

2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR
org.apache.fop.apps.FOUserAgent - Image not available. URI:
\InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason:
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for
\InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position
1296:195)

 

 

Can anyone suggest why this was working and now is not?

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



Problem with SVGs on different servers

2012-02-01 Thread Theresa Jayne Forster
I have an application being compiled with Maven and packaged by one-jar, 

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing
the SVG files, 

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well, 

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the
local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Problem with SVGs on different servers

2012-02-01 Thread Theresa Jayne Forster
Ok Further information, run the program via netbeans - everything works fine
no errors.

Run as a jar I get loads of Avalon / batik jars being hidden errors

So I guess I need to work out whats happening there

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 01 February 2012 12:46
To: fop-users@xmlgraphics.apache.org
Subject: Problem with SVGs on different servers

 

I have an application being compiled with Maven and packaged by one-jar, 

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing
the SVG files, 

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well, 

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the
local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 



RE: Problem with SVGs on different servers

2012-02-01 Thread Theresa Jayne Forster
Ok what version of what jars are needed? I can run it fine within netbeans
and out of netbeans it doesn't work, 

The SVG's are not displaying, but I now have no errors or hidden jar
warnings. 

I have the following dependancies in netbeans 

Fop-1.0.jar

Avalon-framework-api-4.3.1.jar

Avalon-framework-impl-4.3.1.jar

Batik-???-1.7.jar (16 of them)

Xml-apis-ext-1.3.04.jar

Xalan-2.6.0.jar

 

What should I have?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 01 February 2012 12:46
To: fop-users@xmlgraphics.apache.org
Subject: Problem with SVGs on different servers

 

I have an application being compiled with Maven and packaged by one-jar, 

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing
the SVG files, 

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well, 

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the
local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 



How to get one section above another

2012-01-31 Thread Theresa Jayne Forster
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

Senior Software Developer

 mailto:ther...@inbrand.co.uk ther...@inbrand.co.uk
 http://www.inbrand.co.uk/ www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

image001.png

RE: [FOP 1.0] metrics font, glyph and unicode

2012-01-27 Thread Theresa Jayne Forster
I have found a problem with some fonts without metrics files
I have a FRUTIGER Bold and when I just import it without metrics file, its 
returning the characters all on top of each other.
Add the fop 1.0 metrics file and suddenly its working correctly.


Kindest regards


Theresa Forster
Senior Software Developer
-Original Message-
From: polymorphisme [mailto:webmas...@polymorphisme.org] 
Sent: 27 January 2012 13:24
To: fop-users@xmlgraphics.apache.org
Subject: Re: [FOP 1.0] metrics font, glyph and unicode


Ok thanks,

I want obtain this file  http://old.nabble.com/file/p33214044/Arial.pdf
Arial.pdf  with FOP 1.0.


Pascal Sancho wrote:
 
 Hi,
 
 I don't understand what you want to do.
 What is fntsample?
 Where is the uploaded file?
 
 Note that with FOP 1.0, metric files are required only when you don't
 want to embed font in PDF.
 In addition, note also that metrics are the same for both Arial and
 Helvetica (witch is part of the 14 PDF font base), so they are
 interchangeable when not embedded (this is done by host system).
 
 Le 27/01/2012 12:27, polymorphisme a écrit :
 
 Hello,
 
 I want build with FOP a similar file to the upload file (build with
 fntsample).
 In a first time, I obtain the file metrics Arial.ttf.xml for the fonte
 Arial.ttf with the classe org.apache.fop.fonts.apps.TTFReader. 
 But after, I don't know the link between tag bf and Unicode.
 
 bfranges
   bf gi=3 ue=126 us=32/bf gi=3 ue=160 us=160/bf gi=98
 ue=172 us=161/
   ...
 /bfranges
 
 Thanks.
 
 -- 
 Pascal
 
 -
 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/-FOP-1.0--metrics-font%2C-glyph-and-unicode-tp33213482p33214044.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



Problem with fop embedding fonts on linux

2012-01-24 Thread Theresa Jayne Forster
Ok, I have been developing on Windows 7, all works fine on the embedding

But no luck with Linux I get the following error on the first entry in my
fopconfig.xml file 

I have changed it and still no luck, I have checked the case of the path and
file name and it matches 

The entry in the fopconfig is as follows and works on Windows fine. Any
suggestions

 

font embed-url=file:///Fonts/FRUTB___.TTF
kerning=yes 

  font-triplet name=Frutiger
style=normal weight=200/

/font 

 

 

org.apache.fop.apps.FOPException: Failed to resolve font with embed-url
'file:///Fonts/FRUTB___.TTF'

at org.apache.fop.util.LogUtil.handleError(LogUtil.java:38)

at
org.apache.fop.fonts.FontInfoConfigurator.getFontInfo(FontInfoConfigurator.j
ava:212)

at
org.apache.fop.fonts.FontInfoConfigurator.addFonts(FontInfoConfigurator.java
:168)

at
org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.jav
a:100)

at
org.apache.fop.render.PrintRendererConfigurator.buildFontList(PrintRendererC
onfigurator.java:106)

at
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererC
onfigurator.java:129)

at
org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:165)

at
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:
181)

at
org.apache.fop.area.RenderPagesModel.init(RenderPagesModel.java:73)

at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)

at
org.apache.fop.area.AreaTreeHandler.init(AreaTreeHandler.java:102)

at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.j
ava:359)

at org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:105)

at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)

   at org.apache.fop.apps.Fop.init(Fop.java:79)

at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)

at
uk.co.inbrand.fopengine.FopEngine.generatePDFromFO(FopEngine.java:192)

at uk.co.inbrand.fopengine.FopProcessor.run(FopProcessor.java:51)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
10)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
03)

at java.lang.Thread.run(Thread.java:679)

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Problem with fop embedding fonts on linux

2012-01-24 Thread Theresa Jayne Forster
All Files are 777 as are all the folders 

-rwxrwxrwx  1 theresa theresa  38032 2011-09-02 09:14 FRUTBI__.TTF
-rwxrwxrwx  1 theresa theresa  38216 2011-09-02 09:14 FRUTBLI_.TTF
-rwxrwxrwx  1 theresa theresa  37880 2011-09-02 09:14 FRUTBL__.TTF
-rwxrwxrwx  1 theresa theresa  38164 2011-09-02 09:14 FRUTB___.TTF
-rwxrwxrwx  1 theresa theresa  38484 2011-09-02 09:14 FRUTLI__.TTF
-rwxrwxrwx  1 theresa theresa  38516 2011-09-02 09:14 FRUTL___.TTF

Kindest regards


Theresa Forster
Senior Software Developer


-Original Message-
From: Luis Bernardo [mailto:lmpmberna...@gmail.com] 
Sent: 24 January 2012 13:41
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem with fop embedding fonts on linux

If you checked the case (uppercase is different from lowercase) and
/Fonts really exists then make sure it is also readable (and the fonts
inside too) and searchable (executable, i.e., chmod +x).

On Tue, Jan 24, 2012 at 1:24 PM, Theresa Jayne Forster
ther...@inbrand.co.uk wrote:
 Ok, I have been developing on Windows 7, all works fine on the embedding

 But no luck with Linux I get the following error on the first entry in my
 fopconfig.xml file

 I have changed it and still no luck, I have checked the case of the path
and
 file name and it matches

 The entry in the fopconfig is as follows and works on Windows fine. Any
 suggestions



     font
embed-url=file:///Fonts/FRUTB___.TTF
 kerning=yes 

   font-triplet name=Frutiger
 style=normal weight=200/

     /font





 org.apache.fop.apps.FOPException: Failed to resolve font with embed-url
 'file:///Fonts/FRUTB___.TTF'

     at org.apache.fop.util.LogUtil.handleError(LogUtil.java:38)

     at

org.apache.fop.fonts.FontInfoConfigurator.getFontInfo(FontInfoConfigurator.j
ava:212)

     at

org.apache.fop.fonts.FontInfoConfigurator.addFonts(FontInfoConfigurator.java
:168)

     at

org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.jav
a:100)

     at

org.apache.fop.render.PrintRendererConfigurator.buildFontList(PrintRendererC
onfigurator.java:106)

     at

org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererC
onfigurator.java:129)

     at
 org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:165)

     at

org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:
181)

     at
 org.apache.fop.area.RenderPagesModel.init(RenderPagesModel.java:73)

     at
 org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)

     at
 org.apache.fop.area.AreaTreeHandler.init(AreaTreeHandler.java:102)

     at

org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.j
ava:359)

     at org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:105)

     at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)

    at org.apache.fop.apps.Fop.init(Fop.java:79)

     at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)

     at
 uk.co.inbrand.fopengine.FopEngine.generatePDFromFO(FopEngine.java:192)

     at uk.co.inbrand.fopengine.FopProcessor.run(FopProcessor.java:51)

     at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
10)

     at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
03)

     at java.lang.Thread.run(Thread.java:679)



 Kindest regards




 Theresa Forster

 Senior Software Developer



-
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



How to do what i am trying to do?

2012-01-06 Thread Theresa Jayne Forster
In the past with the modified 0.23 I had a template using z-index  and it
worked.

 

But now I have upgraded to 1.0 its not working. (the compliance page says
No)

 

So how can you specify the order of sections overlapping/overlaying rather
than pushing each other out of the way.

 

I have 

region-before (the header)

region-after (the footer) 

region-start (the graphics) 

region end (the faded background)

region-body (the text)

 

before we had the start and end in the body area not touching the header or
footer but the end behind the start and the body over them all

so the Z-index is as follows

body = 1

start = 2

end = 3

 

so how can I do this?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



Problem with clippath

2011-12-16 Thread Theresa Jayne Forster
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



 



Is there a master reference for FOP functionality?

2011-12-13 Thread Theresa Jayne Forster
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-previous
http://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-attachment
http://www.w3schools.com/xslfo/prop_background-attachment.asp 

left http://www.w3schools.com/xslfo/prop_left_right.asp 


background-color http://www.w3schools.com/xslfo/prop_background-color.asp 

line-height http://www.w3schools.com/xslfo/prop_line-height.asp 


background-image http://www.w3schools.com/xslfo/prop_background-image.asp 

margin-bottom http://www.w3schools.com/xslfo/prop_margin.asp 


background-repeat
http://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-position
http://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


border-top-color http://www.w3schools.com/xslfo/prop_border_color.asp 

space-start


border-top-style http://www.w3schools.com/xslfo/prop_border_style.asp 

speak http://www.w3schools.com/xslfo/prop_speak.asp 


border-top-width http://www.w3schools.com/xslfo/prop_border_width.asp 

speak-header http://www.w3schools.com/xslfo/prop_speak-header.asp 


bottom http://www.w3schools.com/xslfo/prop_top_bottom.asp 

speak-numeral http://www.w3schools.com/xslfo/prop_speak-numeral.asp 



Fonts Problem

2011-12-13 Thread Theresa Jayne Forster
Using FOP 1.0 I am having problems with some fonts

 

My fopconfig is as follows

renderers

renderer mime=application/pdf

fonts

font
embed-url=file:///myapp/Fonts/FRUTL___.TTF

  font-triplet
name=Frutiger style=normal weight=200/

/font


font
embed-url=file:///myapp/Fonts/FRUTB___.TTF

  font-triplet
name=Frutiger style=normal weight=400/

/font

font
embed-url=file:///myapp/Fonts/tfarrow-medium.TTF

  font-triplet
name=TFArrow style=normal weight=400/

/font

/fonts

/renderer

 

The Frutiger Light (weight=200) has all the letters appearing on top of
each other as if the kerning is wrong, how do I solve this issue?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Is there a master reference for FOP functionality?

2011-12-13 Thread Theresa Jayne Forster
Actually my question stems from 3 days of trying to find out what the valid
options for the fo:external-graphic   clip parameter are

 

I found 

 

Clip =auto

Clip= 'path' 'M0 0 L 0 100 L 100 100 L 100 0 z' 'noscale'

 

Whereas in the end what I needed was in the block-container surrounding it I
needed to add overflow=hidden

But I also want to clip stuff based on a path  so I can have rounded corners
and such

 

 


Theresa Forster

Senior Software Developer



 

From: Luis Bernardo [mailto:lmpmberna...@gmail.com] 
Sent: 13 December 2011 10:21
To: fop-users@xmlgraphics.apache.org
Subject: 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.com
wrote:

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-previous
http://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-attachment
http://www.w3schools.com/xslfo/prop_background-attachment.asp 

left http://www.w3schools.com/xslfo/prop_left_right.asp 


background-color http://www.w3schools.com/xslfo/prop_background-color.asp 

line-height http://www.w3schools.com/xslfo/prop_line-height.asp 


background-image http://www.w3schools.com/xslfo/prop_background-image.asp 

margin-bottom http://www.w3schools.com/xslfo/prop_margin.asp 


background-repeat
http://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-position
http://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

RE: Interrupt/cancel/abort a render

2011-12-06 Thread Theresa Jayne Forster
Craig, I agree with you, that is exactly how we process stuff here, drop a
file in a folder and then the fopengine picks it up - processes and then
drops the output into another folder for the original process to pick up (or
time out)


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Craig Ringer [mailto:cr...@postnewspapers.com.au] 
Sent: 06 December 2011 03:10
To: fop-users@xmlgraphics.apache.org
Cc: Alexios Giotis
Subject: Re: Interrupt/cancel/abort a render

IMO the best way to make it cancelable is to run fop out-of-process in a 
separate VM instance that you can kill using the standard OS methods.

That's what I think I'll end up doing when I need to support 
cancellation. It's a bit of a pain and has some performance cost because 
you can't re-use the fop factory for multiple runs or benefit from some 
of fop's other caching. Perhaps more importantly it means you can't run 
under a standard SecurityManager since you need to be able to spawn new 
JVM instances. OTOH, it eliminates potential memory leaks / unwanted 
threadlocals / caches.

--
Craig Ringer




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Why the difference in speed?

2011-12-05 Thread Theresa Jayne Forster
Hi All, 

 

Just wondering , we used to run 0.20.5 as a fop.exe and saving the input
files and then execing fop.exe 

This was mind blowingly fast at generating the pdf.

 

Now I am trying to use Fop 1.0 and doing it all programmatically, it is
significantly slower specifically for the creation of the FOP from the
fopFactory and then the transform. 

 

What could be slowing it down like this, with 0.20.5 we were using fonts
declared with the fopconfig.xml and kerning files

The new one we are using autodetect - could this be the issue should I
generate the font config as before rather than use the autodetect?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer





RE: Why the difference in speed?

2011-12-05 Thread Theresa Jayne Forster
Ok, I tried setting up a font definition but I am getting an error no matter
what font I try to get going, and the error is non descriptive

 

Any idea why I am having this problem?

 

Font file 

renderer mime=application/pdf

fonts

font
embed-url=file:///InBrand/fonts/FRUTL__.TTF

 
font-triplet name=Frutiger style=normal weight=200/

/font


 
auto-detect/

/fonts

/renderer

 

The error 

 

Creating New Fop

org.apache.fop.apps.FOPException: Failed to resolve font with embed-url
'file:///InBrand/fonts/FRUTL__.TTF'

at org.apache.fop.util.LogUtil.handleError(LogUtil.java:38)

at
org.apache.fop.fonts.FontInfoConfigurator.getFontInfo(FontInfoConfigurator.j
ava:212)

at
org.apache.fop.fonts.FontInfoConfigurator.addFonts(FontInfoConfigurator.java
:168)

at
org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.jav
a:100)

at
org.apache.fop.render.PrintRendererConfigurator.buildFontList(PrintRendererC
onfigurator.java:106)

at
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererC
onfigurator.java:129)

at
org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:165)

at
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:
181)

at
org.apache.fop.area.RenderPagesModel.init(RenderPagesModel.java:73)

at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)

at
org.apache.fop.area.AreaTreeHandler.init(AreaTreeHandler.java:102)

at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.j
ava:359)

at
org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:105)

at
org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)*

at org.apache.fop.apps.Fop.init(Fop.java:79)

at
org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)

at
uk.co.inbrand.fopengine.FopEngine.generatePDFFromXml(FopEngine.java:166)

at
uk.co.inbrand.fopengine.FopProcessor.run(FopProcessor.java:43)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
va:886)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
08)

at java.lang.Thread.run(Thread.java:619)

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 05 December 2011 13:22
To: fop-users@xmlgraphics.apache.org
Subject: Why the difference in speed?

 

Hi All, 

 

Just wondering , we used to run 0.20.5 as a fop.exe and saving the input
files and then execing fop.exe 

This was mind blowingly fast at generating the pdf.

 

Now I am trying to use Fop 1.0 and doing it all programmatically, it is
significantly slower specifically for the creation of the FOP from the
fopFactory and then the transform. 

 

What could be slowing it down like this, with 0.20.5 we were using fonts
declared with the fopconfig.xml and kerning files

The new one we are using autodetect - could this be the issue should I
generate the font config as before rather than use the autodetect?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



RE: Freezing when attempting to create new instance of FopFactory.

2011-12-01 Thread Theresa Jayne Forster
I had something like that - it was hitting the create FopFactory and just
exiting, no error no nothing, 

 

To resolve this I set my logging to debug, and suddenly I saw the problem
appear in the logs.

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: JRSofty [mailto:jrso...@gmail.com] 
Sent: 01 December 2011 15:12
To: fop-users@xmlgraphics.apache.org
Subject: Freezing when attempting to create new instance of FopFactory.

 

Hello,

 

I'm working on a print template system for an application, and everything
seemed to work fine, then I deployed it. The problem traces down to where I
create a new instance of the FopFactory by using:

 

 FopFactory fopFactory = FopFactory.newInstance();

 

Now here's the thing. There are no exceptions thrown, no errors either it
seems. It just gets to this point in the code and stops. Does anyone know
what could possibly be the problem, or where I should start to look?

 

-- 
--- THIS IS A SIGNATURE NO NEED TO CLICK ON LINKS UNLESS YOU FEEL LIKE IT
---
http://jrsofty1.stinkbugonline.com
http://www.galahtech.org



RE: Freezing when attempting to create new instance of FopFactory.

2011-12-01 Thread Theresa Jayne Forster
I just checked the list going back to when I had the problem this is what I
found back then..

 

I thought I had posted, I discovered the issue, it was noclassdeffound

errors but tomcat was swallowing them so I wasn't getting anywhere on debug,

however when I took the code into a stand alone app it gave me the error, I

was missing all sorts of jars that the previous version of fop I was using

(something like 0.23 modified) wasn't needed, including xml-api-ext and

Avalon framework. 

 

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer





RE: Speeding up FOP 1.0

2011-11-30 Thread Theresa Jayne Forster
XML file is https://gist.github.com/1409545

XSL file is https://gist.github.com/1409552

 

Its running on a Quad Core 4gb ram Windows 7 Machine, but it will be running
on a Dual Core Linux system with 2GB ram when in Production.

 

Kindest regards

 


Theresa Forster

 

From: Rob Sargent [mailto:rsarg...@xmission.com] 
Sent: 30 November 2011 15:13
To: fop-users@xmlgraphics.apache.org
Subject: Re: Speeding up FOP 1.0

 

How big is your dataset?  What hardware, etc?






RE: Speeding up FOP 1.0

2011-11-30 Thread Theresa Jayne Forster
On top of that, if I make the images local and not from the 3rd party site,
the pdf then takes 2.5 seconds 

The images only take 8 seconds to download from the 3rd party site, so why
is it taking so long?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer





is it possible to run out of memory

2011-09-19 Thread Theresa Jayne Forster
I have a fop engine running on a windows server. 

Single core AMD - 2GB ram 

Whenever I try to generate a specific PDF it locks up and goes to 100% CPU

 

But using the same engine locally on my 

Quad Core - 4GB ram 

It runs fine and generates the PDF, 

 

Any idea what could be causing that and how can I resolve it so this one
document works fine on the single core machine.

The same template generates other documents fine its just one input xml that
has a lot of text and images.

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 mailto:ther...@inbrand.co.uk ther...@inbrand.co.uk
 http://www.inbrand.co.uk/ www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

image001.png

RE: Conversion from 0.23 to 1.00

2011-09-16 Thread Theresa Jayne Forster
I found the problem,  whilst 0.23 does not moan when you set the
content-width=123mm apparently in 0.95 and above, 

You have to have it set to auto-scale otherwise it will just appear as
full size.. 

Oh well.. Maybe the rescaling will work better - and what if you want to
crop it?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Eric Douglas [mailto:edoug...@blockhouse.com] 
Sent: 15 September 2011 16:17
To: fop-users@xmlgraphics.apache.org
Subject: RE: Conversion from 0.23 to 1.00

 

A sample would help.

Is it an external image? an instream image?

Are you setting the attributes?

content-width, content-height, scaling?

In my image block I also set line-height='1' and font-size='0pt'

 

 

  _  

From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: Thursday, September 15, 2011 11:10 AM
To: fop-users@xmlgraphics.apache.org
Subject: Conversion from 0.23 to 1.00

I have converted my code from 0.23 to 1.00

 

But I am having problems with my graphics.

 

In the past we have used scale and it has scaled properly, 

Now under 1.00 its not scaling at all (well cropping) 

Am I missing something (the original 0.23 had been modded to provide extras
like cmyk as %, z-index and float)

 

My xsl is creating a fo file but the image is not being cropped, Is there
any way to keep it inside the block-container 

I am getting errors like this 

 

WARNING: Line 1 of a paragraph overflows the available area by 11339
millipoints. (See position 1399:11)

15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener processEvent

WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 17123 millipoints. (See position 1398:91)

15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener processEvent

WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 5784 millipoints. (See position 1984:91)

15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener processEvent

WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 5784 millipoints. (See position 1989:134)

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3898 - Release Date: 09/15/11



Conversion from 0.23 to 1.00

2011-09-15 Thread Theresa Jayne Forster
I have converted my code from 0.23 to 1.00

 

But I am having problems with my graphics.

 

In the past we have used scale and it has scaled properly, 

Now under 1.00 its not scaling at all (well cropping) 

Am I missing something (the original 0.23 had been modded to provide extras
like cmyk as %, z-index and float)

 

My xsl is creating a fo file but the image is not being cropped, Is there
any way to keep it inside the block-container 

I am getting errors like this 

 

WARNING: Line 1 of a paragraph overflows the available area by 11339
millipoints. (See position 1399:11)

15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener processEvent

WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 17123 millipoints. (See position 1398:91)

15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener processEvent

WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 5784 millipoints. (See position 1984:91)

15-Sep-2011 16:01:04 org.apache.fop.events.LoggingEventListener processEvent

WARNING: Content overflows the viewport of an fo:block-container in
block-progression direction by 5784 millipoints. (See position 1989:134)

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Problem with foreign characters,

2011-09-08 Thread Theresa Jayne Forster
Well what happens is my xslt is calling in a html webpage via tagsoup 
So I have no visibility of it until it gets to me in the xsl...


Kindest regards


Theresa Forster
Senior Software Developer
-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: 08 September 2011 14:02
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem with foreign characters,

Hi theresa,

#195;#169; is an UTF-8 sequence (0xC3 0xA9) that encode EACUTE as UTF-8;
#239;#187;#191; is an UTF-8 sequence (0xEF 0xBB 0xBB) that encode The
BOM as UTF-8 (this is the UTF-8 signature);

You should have a look on how char encoding is handled in your app, it
that seems to be an issue there.

That said, to convert a string in XSLT I imagine to ways:
 either in pure XSLT, using a recursive template (see below),
 or using embedded script (see [1] for Xalan).

xsl:template match=text()
  xsl:call-template name=text/
/xsl:template

xsl:template name=text
  xsl:param name=str select=./
  xsl:param name=find select='#xa0;'/
  xsl:param name=replace select='#x20;'/
  xsl:choose
xsl:when test=contains($str,$find)
  xsl:value-of select=substring-before($str,$find)/
  xsl:value-of select=$replace/
  xsl:call-template name=text
xsl:with-param name=str
select=substring-after($str,$find)/
  /xsl:call-template
/xsl:when
xsl:otherwise
  xsl:value-of select=$str/
/xsl:otherwise
  /xsl:choose
/xsl:template

[1] http://xml.apache.org/xalan-j/extensions.html


Le 08/09/2011 13:48, Theresa Jayne Forster a écrit :
 I have a minor issue and would like some help if I can,
 
 Before I start there are a couple of pointers here.
 1)  I cannot change the java code nor the version of FOP (modified 0.23)
 2)  I have a partial resolution already in place
 3)  I am just looking for the way to get the information I need.
 
 I have code which scrapes a web page and rips out text turning it into
 the downloadable pdf.
 Some characters like é do not display correctly so I am doing a replace
 in a template,
 I need to find what the characters are coming in as so I can convert
 them in the replace,
 For instance the é character comes in as the character codes #195;#169;
 How can I find the character codes coming in for all the other
 characters (or convert them on the fly within xsl)
 
 My template currently is as follows:
 xsl:template name=loose_nasty_entities
   xsl:param name=thisstring select=./
   xsl:variable name=thisstring1
 xsl:call-template name=replace
   xsl:with-param name=str select=$thisstring/
   xsl:with-param name=search-for select='#226;#8364;#8220;'/
   xsl:with-param name=replace-with select='-'/
 /xsl:call-template
   /xsl:variable
   xsl:variable name=thisstring2
 xsl:call-template name=replace
   xsl:with-param name=str select=$thisstring1/
   xsl:with-param name=search-for select='#239;#187;#191;'/
   xsl:with-param name=replace-with select=''/
 /xsl:call-template
   /xsl:variable
   xsl:variable name=thisstring3
 xsl:call-template name=replace
   xsl:with-param name=str select=$thisstring2/
   xsl:with-param name=search-for select='#194;'/
   xsl:with-param name=replace-with select=''/
 /xsl:call-template
   /xsl:variable
   xsl:variable name=thisstring4
 xsl:call-template name=replace
   xsl:with-param name=str select=$thisstring3/
   xsl:with-param name=search-for select='#195;#169;'/
   xsl:with-param name=replace-with select='é'/
 /xsl:call-template
   /xsl:variable
   xsl:variable name=thisstring5
 xsl:call-template name=replace
   xsl:with-param name=str select=$thisstring4/
   xsl:with-param name=search-for select='#195;#8211;'/
   xsl:with-param name=replace-with select='#214;'/
 /xsl:call-template
   /xsl:variable
   xsl:value-of select=$thisstring5/
 /xsl:template
 
 Kindest regards
 Theresa Forster
-- 
Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1392 / Virus Database: 1520/3880 - Release Date: 09/06/11



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Problem with arial font access

2011-09-05 Thread Theresa Jayne Forster
On that note,

How do you determine the font-family name for a font loaded by autodetect?

For instance I have the font HelveticaNeue
File names are not always the same
HELVNBI.TTF  - HelveticaNeue BoldItalic Italic  Title = HelveticaNeue
BoldItalic
LTe50920.ttf - HelveticaNeue LT 47 LightCn Regular Title = Helvetica LT 47
Light Condensed

What are the names on these?
How do we determine them?



Kindest regards


Theresa Forster
Senior Software Developer
-Original Message-
From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: 05 September 2011 11:21
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem with arial font access

Hi Philippe,

You can try and get that working, but there are several considerations
you must take if you're wanting to use the  auto-detect. feature,
the most significant of which is that the name you set in
font-family must match the system font name. IMO configuring the
fonts explicitly minimizes problems in the long run, obviously there's
an initial overhead.

Hope that helps

Mehdi




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: XSL vs. FOP [was: Re: pagenumbering]

2011-08-31 Thread Theresa Jayne Forster
And my question was about the FO fo:page-number/ tag therefore a FOP
question 

Ie how do I get the output I need when using the tag..

 

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Eric Douglas [mailto:edoug...@blockhouse.com] 
Sent: 31 August 2011 13:37
To: fop-users@xmlgraphics.apache.org
Subject: RE: XSL vs. FOP [was: Re: pagenumbering]

 

XSLFO is what you get when you combine XSLT with XML.

XSLFO is an extension of XSLT and includes XSLT commands.

XSLFO is as unrelated to FOP as XSLT when you're talking about it's creation
for expected output.

If you want only FOP related questions they should be about XSLFO commands
and only as far as whether they're supported and whether they're producing
the expected output.

There is likely a better place for questions about how to generate XSLT or
XSLFO which should produce particular output which don't question whether
FOP is processing it correctly, and you're welcome to point people to such a
place if you don't have an answer or don't feel like answering, though I
personally wouldn't mind helping if I do have an answer.

 

I use FOP with XML + XSLT with embedded code.  I have had some issues with
how FOP works which require looking at the XSLFO, so I actually split the
process so I call the Java transform method twice.  One passes the XSL on
the Transformer create and the XML as input and the output is XSLFO I can
write to a file if I need.  The second transform uses no XSL and passes the
XSLFO as input and the FOP handler on the output.

 

If you don't want to 'misspend' any time answering questions that should
include questions about how to write XSLT or XSLFO.  Once someone has valid
XSLFO and they're not getting the expected output then it's an FOP question.

 

  _  

From: Glenn Adams [mailto:gl...@skynav.com] 
Sent: Tuesday, August 30, 2011 11:41 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: XSL vs. FOP [was: Re: pagenumbering]

Christopher, 

 

We may be applying different ontological models here. 

 

I label anything having to do with XSL-FO as FO related.

 

I label anything having to do with XSLT as XSL related.

 

For me, FO related != XSL related.

 

In fact, there is no necessary logical connection between the two, except
insofar as FO borrows/reuses certain constructs from XSL(T), the only one of
which I know of is the number to string conversion properties, which,
coincidentally, have to do with the current subject matter: page number
generation.

 

In any case, by model, page number properties are FO related, not XSL
related.

 

Because FOP supports both XSL(T) [indirectly} and FO, it certainly covers
both areas, but as far as I'm concerned the XSL(T) portion of it is a
convenience function, unrelated to its core functionality.

 

Given the amount of traffic (mis)spent on issues related to the XSL(T)
features of FOP, I often wish it did not support this convenience function.
But that's neither here nor there.

 

G.

On Tue, Aug 30, 2011 at 9:12 AM, Christopher R. Maden cr...@maden.org
wrote:

On 08/30/2011 10:52 AM, Glenn Adams wrote:
 actually, this is an FO issue, not XSL, since it is FOP that
 generates page numbers via fo:page-number

XSL encompasses both Formatting Objects (sometimes XSL-FO) and XSL
Tranformations (XSLT).  An FO issue *is* an XSL issue.

It is FOP that generates page numbers, but what Theresa needed was the
FO instruction, which is agnostic about the software that consumes it
(whether FOP, RenderX, Antenna House, or anything else).

The XSL List (URL: http://www.mulberrytech.com/xsl/xsl-list/ ) covers
all of XSL, including XSL-FO.

We've previously had discussions on this list about allowing XML+XSLT as
input to FOP, and the potential user confusion that results as to what
FOP actually does.  For similar reasons, when I reply to questions here,
I try to make it clear what parts are specific to FOP, and which
questions are about XML, XSLT, or FO, and orthogonal to FOP's operation
specifically.

 the correct answer is that you need to use the initial-page-number
 property on fo:page-sequence to specify a different starting number
 than is generated by auto;

 see http://www.w3.org/TR/2006/REC-xsl11-20061205/#initial-page-number
 and and
 http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_page-sequence for
 details;

Yes, and I apologize for not taking the time to look up the references
that Theresa needs.

~Chris

[Emotional content notice (since plain text is really bad at
communicating this): I want to be very clear that I am not attacking or
criticizing Glenn or Theresa.  And certainly, I've known Glenn by his
work for far too long to accuse him of anything remotely resembling
ignorance.  I have simply attempted to be somewhat detailed and pedantic
here for maximal clarity to everyone who might read this.]
--
Chris Maden, text nerd  URL: http://crism.maden.org/ 
The present tendency and drift towards the Police State gives all
 free Americans pause.. - Alabama 

RE: pagenumbering

2011-08-31 Thread Theresa Jayne Forster
Thanks for the response but the question was already answered, but then a
petty discussion started about whether fo:page-number was FOP or XSLT

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Chen Yang [mailto:cy...@hrsg.ca] 
Sent: 31 August 2011 14:20
To: fop-users@xmlgraphics.apache.org
Subject: RE: pagenumbering

 

Hey Theresa,

 

Not sure if this answer your question, 

 

I need to start the page 1 after cover page and Table of contents

 

xsl:call-template name=insert_cover_page_template/

xsl:call-template name=insert_bookmarks/

xsl:call-template name=insert_table_of_contents_page_template/

 

Then I bought in my contents template

xsl:call-template name=insert_contents_page_template/

 

Inside the insert_contents_page_template

 

xsl:template name=insert_contents_page_template

  fo:page-sequence master-reference=A4-landscape
initial-page-number=1   

  xsl:call-template name=insert_page_header-template/ 

  xsl:call-template name=side_bar/ 

  xsl:call-template name=insert_page_footer_template/

 fo:flow  flow-name=xsl-region-body

  xsl:apply-templates/

  fo:block id=TheVeryLastPage/

 /fo:flow   

  /fo:page-sequence

/xsl:template

 

Page number template 

 

  !-- page number --

  xsl:template name=page_number

 fo:block-container absolute-position=absolute top=5mm

fo:block font-family=sans-serif font-size=7pt
text-align=right color=black 

Page fo:page-number/ of fo:page-number-citation
ref-id=TheVeryLastPage/

/fo:block

  /fo:block-container

  /xsl:template

 

 

Finally,Insert page number into footer template

 

  !-- footer --

xsl:template name=insert_page_footer_template  

fo:static-content flow-name=xsl-region-after   



.

.

. 

  

  xsl:call-template name=page_number/



/fo:static-content

/xsl:template

 

Now the Page 1 of X will start on the first content page, not on my cover
page or table of contents page.

 

Regards 

 

Chen Yang

 

Programmer / Analyst

HRSG (Human Resource Systems Group)

6 Antares Drive,Phase II Suite 100

Ottawa, ON, K2E 8A9

 tel:613-745-6605 Tel:613-745-6605 x 254

Fax:613-745-4019

Email:  mailto:cy...@hrsg.ca cy...@hrsg.ca

Web:http://www.hrsg.ca/ www.hrsg.ca

 

Competency-based HR Solutions 

 

 

From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: August-30-11 9:50 AM
To: fop-users@xmlgraphics.apache.org
Subject: pagenumbering

 

I was wondering, how can you change the page numbering on
page-number-citation stuff,

 

We have the requirement of numbering starting on the inside cover as page 1
not page 2 as currently the front page is classed as page 1. 

 

Is there any way to make the numbering start from 1 on the inside of the
front cover?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1392 / Virus Database: 1520/3866 - Release Date: 08/29/11



RE: pagenumbering

2011-08-31 Thread Theresa Jayne Forster
Eric, That thought had crossed my mind, but we take a random amount of
formatted text from a CMS and pass it into FOP using a template, the output
however was doing the cover page as page 1 rather than the inside of the
cover, the answer I got was what I was looking for,

I had been looking at the page-number tag not the page-sequence tag and
initial-page-number tag, This in my opinion is FO as it is the input to FOP
without needing any XSLT. 

 

Thank you all who have assisted and while I think the discussion was
interesting, we should leave it for now, or risk upsetting the majority of
users on this list.

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Eric Douglas [mailto:edoug...@blockhouse.com] 
Sent: 31 August 2011 16:17
To: fop-users@xmlgraphics.apache.org
Subject: RE: pagenumbering

 

I agree that discussion was petty.  If someone thought the question was off
topic they are welcome to respond with links to point you somewhere you
might get better answers or ignore the question.

While I haven't checked what other XSLFO processors exist, it seems the XSLT
and XSLFO specifications are both generic and unrelated to FOP.

If the question is about creating XSL in either form it may be technically
off topic, though I for one don't care.

If the question is about how FOP specifically interprets your XSLFO, or
about whether a feature is supported then it's most relevant.

 

I use FOP in a most unconventional way but I've stuck with it for 2 reasons
I can think of.

1) I don't know of any other free project which creates PDFs with all the
options FOP has.

2) FOP was initially recommended to us by a consultant and I've gotten it to
work so if it isn't broken there's no need to change.

If there is another PDF create project with all the features we need that
can create more efficiently we'll likely switch eventually.

FOP doesn't handle large transforms.  I tested creating a 1000 page PDF and
it ran out of memory, though the output is small and the input is reasonably
small.

I got around this bug by creating 1 page PDFs.  We generate our input
programmatically so we know what goes on each page, so I just broke it up.

I increment the page number on each PDF and just pass it in as a tag.

 fo:page-sequence
  xsl:attribute
name=master-referenceSTANDARD_PAGE/xsl:attribute
  xsl:attribute name=initial-page-numberxsl:value-of
select=IPN//xsl:attribute
Then I use pdfbox to mrge the resulting PDFs.

 

  _  

From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: Wednesday, August 31, 2011 9:41 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: pagenumbering

Thanks for the response but the question was already answered, but then a
petty discussion started about whether fo:page-number was FOP or XSLT

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

From: Chen Yang [mailto:cy...@hrsg.ca] 
Sent: 31 August 2011 14:20
To: fop-users@xmlgraphics.apache.org
Subject: RE: pagenumbering

 

Hey Theresa,

 

Not sure if this answer your question, 

 

I need to start the page 1 after cover page and Table of contents

 

xsl:call-template name=insert_cover_page_template/

xsl:call-template name=insert_bookmarks/

xsl:call-template name=insert_table_of_contents_page_template/

 

Then I bought in my contents template

xsl:call-template name=insert_contents_page_template/

 

Inside the insert_contents_page_template

 

xsl:template name=insert_contents_page_template

  fo:page-sequence master-reference=A4-landscape
initial-page-number=1   

  xsl:call-template name=insert_page_header-template/ 

  xsl:call-template name=side_bar/ 

  xsl:call-template name=insert_page_footer_template/

 fo:flow  flow-name=xsl-region-body

  xsl:apply-templates/

  fo:block id=TheVeryLastPage/

 /fo:flow   

  /fo:page-sequence

/xsl:template

 

Page number template 

 

  !-- page number --

  xsl:template name=page_number

 fo:block-container absolute-position=absolute top=5mm

fo:block font-family=sans-serif font-size=7pt
text-align=right color=black 

Page fo:page-number/ of fo:page-number-citation
ref-id=TheVeryLastPage/

/fo:block

  /fo:block-container

  /xsl:template

 

 

Finally,Insert page number into footer template

 

  !-- footer --

xsl:template name=insert_page_footer_template  

fo:static-content flow-name=xsl-region-after   



..

.

.. 

  

  xsl:call-template name=page_number/



/fo:static-content

/xsl:template

 

Now the Page 1 of X will start on the first content page, not on my cover
page or table of contents page.

 

Regards 

 

Chen Yang

 

Programmer / Analyst

HRSG (Human Resource

pagenumbering

2011-08-30 Thread Theresa Jayne Forster
I was wondering, how can you change the page numbering on
page-number-citation stuff,

 

We have the requirement of numbering starting on the inside cover as page 1
not page 2 as currently the front page is classed as page 1. 

 

Is there any way to make the numbering start from 1 on the inside of the
front cover?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: pagenumbering

2011-08-30 Thread Theresa Jayne Forster
So, If I have it right, I need to set up 2 page-sequences one with the cover 
and one with the rest, 

And I need to set the page number at 1 for the second one,

Reading through the links you gave appear to show that you cannot set a 
pagenumber of 0 

quoteA positive integer. If a non-positive or non-integer value is provided, 
the value will be rounded to the nearest integer value greater than or equal to 
1./quote

 

So something like 

 

fo:simple-page-master master-name=Front Page”

fo:region-body region-name=xsl-region-body-front /

fo:region-before region-name=xsl-region-before-front /

/fo:simple-page-master

 

fo:simple-page-master master-name=free-text-odd 

fo:region-body region-name=xsl-region-body column-count=2 
column-gap=4mm /

fo:region-after region-name=free-text-after-odd /

fo:region-before region-name=free-text-before-odd/

/fo:simple-page-master

 

fo:simple-page-master master-name=free-text-even 

fo:region-body region-name=xsl-region-body column-count=2 
column-gap=4mm /

fo:region-after region-name=free-text-after-even /

fo:region-before region-name=free-text-before-even /

/fo:simple-page-master

 

fo:page-sequence-master master-name=Contents

fo:repeatable-page-master-alternatives

fo:conditional-page-master-reference 
master-reference=Front Page/

/fo:repeatable-page-master-alternatives

/fo:page-sequence-master   



fo:page-sequence-master master-name=Free Text- initial-page-number=”1”

fo:repeatable-page-master-alternatives

fo:conditional-page-master-reference 
master-reference=free-text-even odd-or-even=even/

fo:conditional-page-master-reference 
master-reference=free-text-odd  odd-or-even=odd/

/fo:repeatable-page-master-alternatives

/fo:page-sequence-master

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Glenn Adams [mailto:gl...@skynav.com] 
Sent: 30 August 2011 15:52
To: fop-users@xmlgraphics.apache.org
Subject: Re: pagenumbering

 

actually, this is an FO issue, not XSL, since it is FOP that generates page 
numbers via fo:page-number

 

the correct answer is that you need to use the initial-page-number property on 
fo:page-sequence to specify a different starting number than is generated by 
auto;

 

see http://www.w3.org/TR/2006/REC-xsl11-20061205/#initial-page-number and and 
http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_page-sequence for details;

 

regards,

glenn

On Tue, Aug 30, 2011 at 8:36 AM, Christopher R. Maden cr...@maden.org wrote:

On 08/30/2011 09:49 AM, Theresa Jayne Forster wrote:
 I was wondering, how can you change the page numbering on
 page-number-citation stuff,

 We have the requirement of numbering starting on the inside cover as
 page 1 not page 2 as currently the front page is classed as page 1.

 Is there any way to make the numbering start from 1 on the inside of
 the front cover?

[This is really an XSL question, not a FOP-specific question.]

The thing to change is not the page-number-citation, but the page number
itself.  Make the inside cover start a new page-sequence, starting its
number from 1.  Simple! (-:

~Chris
--
Chris Maden, text nerd  URL: http://crism.maden.org/ 
“The present tendency and drift towards the Police State gives all
 free Americans pause.” — Alabama Supreme Court, 1955
 (Pike v. Southern Bell Tel.  Telegraph, 81 So.2d 254)

-
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

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1392 / Virus Database: 1520/3866 - Release Date: 08/29/11



RE: Help: XSL to PCL

2011-08-26 Thread Theresa Jayne Forster
Well one of the first things you would need to do is configure the pcl
renderer in the config file.

http://xmlgraphics.apache.org/fop/0.95/configuration.html#pcl-renderer

 

and be aware of the restrictions 

 

http://xmlgraphics.apache.org/fop/0.95/output.html#pcl

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer






RE: Arabic fonts r-L

2011-08-24 Thread Theresa Jayne Forster
Page numbering, I use the page numbering for numbers on the page as well as for 
the contents page .

 

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer





RE: Arabic fonts r-L

2011-08-24 Thread Theresa Jayne Forster
Glenn, sorry I have not tested recently but the numbering when using 
fo:pagenumber/  goes left to right  or did when I tested a while back, 

You said it was not working yet, I was looking for an update.

 

 

As per your email back in may

quote

On Fri, May 13, 2011

 

Theresa,

 

The current code in git://github.com/skynavga/fop.git DOES handle right-to-left 
column progression in fo:table. You need to ensure that the appropriate writing 
mode is specified on fo:table or on the nearest ancestor fo:block-container or 
on fo:page-sequence.

 

I have NOT yet implemented changes needed to reverse page numbering, but it is 
on my list of TODO items. Thanks for reminding me.

 

Regards,

Glenn

/quote

 

Theresa

 

From: Glenn Adams [mailto:gl...@skynav.com] 
Sent: 24 August 2011 08:31
To: fop-users@xmlgraphics.apache.org
Subject: Re: Arabic fonts r-L

 

could you send me an example FO of what is not working for you regarding page 
numbering in RTL context?

On Wed, Aug 24, 2011 at 1:03 AM, Theresa Jayne Forster ther...@inbrand.co.uk 
wrote:

Page numbering, I use the page numbering for numbers on the page as well as for 
the contents page .

 

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1392 / Virus Database: 1520/3834 - Release Date: 08/14/11
Internal Virus Database is out of date.



Arabic fonts r-L

2011-08-23 Thread Theresa Jayne Forster
Hi all, 

 

Just looking for information on the current status of compliance for Arabic
fonts, I know there is a side fork dealing with this but I have not seen any
update recently.

In particular 

1.   Has the R-L columns been completed?

2.   Have the R-L numbering been complete?

 

Thanks

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Tool or schema to validate report xsl files

2011-08-01 Thread Theresa Jayne Forster
I use the open source Kernow program to test my files, it is really good for
both Schema and actually testing the transform as well.

Kindest regards


Theresa Forster
Senior Software Developer


-Original Message-
From: Eric Douglas [mailto:edoug...@blockhouse.com] 
Sent: 01 August 2011 13:48
To: fop-users@xmlgraphics.apache.org
Subject: RE: Tool or schema to validate report xsl files

I've used a free version of a tool from editix.com just to validate some
xsl syntax.
Eclipse Java editor can also edit xsl files.
FOP's web page lists which xslfo commands it supports.
FOP's input is the xslfo.  It accepts xslt along with xml as a
convenience only.  With embedded code this part can be broken out to a
second step which references no FOP classes.
 

-Original Message-
From: vjintegrates [mailto:vijaypawnar...@gmail.com] 
Sent: Monday, August 01, 2011 6:46 AM
To: fop-users@xmlgraphics.apache.org
Subject: Tool or schema to validate report xsl files


Is there tool or schema to validate report xsl files for a specific
version of FOP at development time. ?
--
View this message in context:
http://old.nabble.com/Tool-or-schema-to-validate-report-xsl-files-tp3216
8625p32168625.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



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1390 / Virus Database: 1518/3790 - Release Date: 07/26/11




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread Theresa Jayne Forster
I have this to come, as I have just upgraded from a customised 0.23 to 1.0
and the first problem I saw was that originally we would define the document
as 
Xsl-region-before
Xsl-region-after
Xsl-region-body

Now we have to have body before everything else.. 

Plus we had custom cmyk(12%,1%,0%,20%)
And now we need
cmky(0.12,0.01,0,0.2)

its gonna take a while.

and o/ Hiya Richard, hows your current project going, been a while since we
worked at Bournemouth

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Kerry, Richard [mailto:richard.ke...@atos.net] 
Sent: 12 July 2011 12:28
To: fop-users@xmlgraphics.apache.org
Subject: RE: org.apache.fop.fo.ValidationException: fo:list-block is
missing child elements

 

 Our entire application was based on FOP 0.20.5 and rewriting 
 all XSLTs would
 mean a lot of work.
 Is there any other way we can resolve the issue.

At risk of being obvious, how about :

Don't try to move from 0.20 to 1.0 unless you've got time available to spend
sorting out any issues that arise.


Unhelpfully,
Richard.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1390 / Virus Database: 1516/3759 - Release Date: 07/11/11




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: pdftops eps font issue

2011-07-08 Thread Theresa Jayne Forster
Why not just have FOP generate the eps direct without going through the PDF
stage?


Kindest regards


Theresa Forster
Senior Software Developer


-Original Message-
From: Alberto Priore [mailto:alberto.pri...@gmail.com] 
Sent: 07 July 2011 17:06
To: fop-users@xmlgraphics.apache.org
Subject: pdftops eps font issue


I'm creating a pdf with Apache FOP in Linux then I need to convert the pdf
it
into an eps.

I'm trying lot of ways, the only one that seems works is the pdftops. But,
when I convert it into Linux in command line

pdftops file.pdf -eps file.eps

This command creates me the eps but when I try to open it in Adobe
Illustrator in Windows XP It returns me the error

EAAFD+HelveticaNeueLTStd-MdCnO_99-Identify-H;
Font not found on the system; missing font has been substituted.

But 1: the fonts han not been substituted 2: the eps do not show words
inside it is all blank instead of the images

I'm sure that in Windows XP I have all the fonts becouse if I convert the
pdf to an eps inside the Adobe Illustrator all works fine and Adobe
Illustrator do not show me the fonts issue.

Can you help me? 
What I'm doing wrong?

-- 
View this message in context:
http://old.nabble.com/pdftops-eps-font-issue-tp32014501p32014501.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



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1388 / Virus Database: 1513/3724 - Release Date: 06/24/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: pdftops eps font issue

2011-07-08 Thread Theresa Jayne Forster
SVG is supported by illustrator, hell you can import pdf into illustrator
(with some limitations)

But what about using inkscape to convert from PDF to SVG then load into
illustrator, there are so many formats and ways to convert.
Why EPS (which I remember as being Encapsulated Post Script)  

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Alberto Priore [mailto:alberto.pri...@gmail.com] 
Sent: 08 July 2011 10:58
To: fop-users@xmlgraphics.apache.org
Subject: RE: pdftops eps font issue


The Apache FOP can create this output formats
http://xmlgraphics.apache.org/fop/0.95/output.html
and it can create with some limitation like you can see in .ps format
http://xmlgraphics.apache.org/fop/0.95/output.html#ps



Theresa Jayne Forster wrote:
 
 Why not just have FOP generate the eps direct without going through the
 PDF
 stage?
 
 
 Kindest regards
 
 
 Theresa Forster
 Senior Software Developer
 
 
 -Original Message-
 From: Alberto Priore [mailto:alberto.pri...@gmail.com] 
 Sent: 07 July 2011 17:06
 To: fop-users@xmlgraphics.apache.org
 Subject: pdftops eps font issue
 
 
 I'm creating a pdf with Apache FOP in Linux then I need to convert the pdf
 it
 into an eps.
 
 I'm trying lot of ways, the only one that seems works is the pdftops. But,
 when I convert it into Linux in command line
 
 pdftops file.pdf -eps file.eps
 
 This command creates me the eps but when I try to open it in Adobe
 Illustrator in Windows XP It returns me the error
 
 EAAFD+HelveticaNeueLTStd-MdCnO_99-Identify-H;
 Font not found on the system; missing font has been substituted.
 
 But 1: the fonts han not been substituted 2: the eps do not show words
 inside it is all blank instead of the images
 
 I'm sure that in Windows XP I have all the fonts becouse if I convert the
 pdf to an eps inside the Adobe Illustrator all works fine and Adobe
 Illustrator do not show me the fonts issue.
 
 Can you help me? 
 What I'm doing wrong?
 
 -- 
 View this message in context:
 http://old.nabble.com/pdftops-eps-font-issue-tp32014501p32014501.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
 
 
 
 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 10.0.1388 / Virus Database: 1513/3724 - Release Date: 06/24/11
 Internal Virus Database is out of date.
 
 
 
 -
 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/pdftops-eps-font-issue-tp32014501p32020265.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



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1388 / Virus Database: 1513/3724 - Release Date: 06/24/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



CMYK

2011-06-27 Thread Theresa Jayne Forster
We produce pdf files to send to printers, and they continually complain that
the images are RGB, is there any way to force them to be CMYK within
BATIK/FOP?  0.2x Fop. (cant upgrade this to 1.0 at the moment)

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 mailto:ther...@inbrand.co.uk ther...@inbrand.co.uk
 http://www.inbrand.co.uk/ www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

image001.png

RE: Strange response

2011-06-22 Thread Theresa Jayne Forster
Andreas, thank you for your response, I am sorry to everyone I keep asking
questions but my boss is pushing further and further with the 0.2 rather
than let me complete the change to 1.0 which is always a bad idea. 
I am seeing strange things happening, and I guess more I am looking for a
if this happens what is the problem so I can solve it myself later type
issue.


We are talking 0.2 at the moment (heavily modded - like it actually has
float support and cmyk as %) 
And yes I found out, the designers drew the box that size - so I duplicated
the size they used on the in design document - to then find that it won't
work like that due to their bounding box not being right.  :)

Thanks again 

Kindest regards


Theresa Forster
Senior Software Developer




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: I need bottom up text.

2011-06-21 Thread Theresa Jayne Forster
The FO output is as follows (for the part in question)
fo:block-container font-family=HelveticaNeue font-weight=normal
font-style=normal
 font-size=7pt
 line-height=8.4pt
 text-align=left
 color=cmyk(34%,30%,32%,9%) 
 top=140.581mm
 left=12.7mm
 width=50mm
 height=11mm
 position=absolute
 border-color=red
 border-style=solid
 border-width=1px
fo:table font-family=HelveticaNeue font-weight=normal
font-style=normal
  font-size=7pt
  line-height=8.4pt
  text-align=left
  color=cmyk(34%,30%,32%,9%) 
  width=50mm
  height=11mm
   fo:table-body
  fo:table-row
 fo:table-cell font-family=HelveticaNeue
font-weight=normal font-style=normal
font-size=7pt
line-height=8.4pt
text-align=left
color=cmyk(34%,30%,32%,9%) 
display-align=after
fo:block
   fo:inline font-weight=normal
font-style=normal text-decoration=no-underline
  vertical-align=baseline
  font-size=100%*Small print to be
added here/fo:inline
/fo:block
 /fo:table-cell
  /fo:table-row
   /fo:table-body
/fo:table
 /fo:block-container

Without the table it displays fine just not bottom aligned.

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Andreas L. Delmelle [mailto:andreas.delme...@telenet.be] 
Sent: 20 June 2011 18:41
To: fop-users@xmlgraphics.apache.org
Subject: Re: I need bottom up text.

On 20 Jun 2011, at 18:07, Theresa Jayne Forster wrote:

Hi Theresa

 I am trying to do a document with a box near the bottom which is bottom
aligned.
  
 I have tried everything but as soon as I put the apply-templates inside
the table the text vanished, what am I doing wrong and how can I get it
working.

In the future, can you please post the generated FO markup? That helps us
identify, reproduce and understand the issue better. Right now, based only
on the XSLT code, we have to infer/imagine which attributes are included in
the 'smallprint' set. Not that they are necessarily relevant here, but
still...

Suppose, for example, that the attribute-set 'smallprint' contains a
relative font-size of 0.6em.
Assuming that this attribute-set is also used in the matching template for
Smallprint nodes, then if you start off with a font-size of 10pt, in the
outer block-container it will be 6pt, and by the time the text is actually
reached, that may have shrunk to well below 2pt, which would make the text
near invisible at normal zoom.

From the command-line, you can easily obtain the FO that FOP would get, by
means of the '-foout' switch.

This just as some advice that will yield quicker and more to-the-point
responses.

 (basically I am looking for similar to the html4.0 loose transitional
  
 tabletr valign=bottomtd/td/tr/table

From what I can tell, the code you have should work fine for the most part
(in FOP 1.0), assuming that there is nothing too exotic in that 'smallprint'
attribute set or the other content (which we cannot see in your XSL code).
The only thing that does not work, AFAIK, is a forced height on fo:table.
To work around the latter, you can force the table to grow to the desired
size by wrapping the cell content in a fo:block-container with explicit
height.


HTH!

Regards,

Andreas
---



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: I need bottom up text.

2011-06-21 Thread Theresa Jayne Forster
Yes I am upgrading but this has to work on the 0.2 

With the b-c it displays but not vertically aligned, 
With the table struct its not displaying


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: 21 June 2011 08:47
To: fop-users@xmlgraphics.apache.org
Subject: Re: I need bottom up text.

Theresa,

as I said before, you can simplify your FO code with a single
fo:block-container:

fo:block-container
absolute-position=absolute
height=151.581mm
display-align=after
  fo:block*Small print to be added here/fo:block
/fo:block-container

IIRC, you are upgrading from FOP 0.2x to 1.0
Note that with FOP 0.2x, display-align didn't work on fo:b-c, forcing
user to use fo:table construction.
Since FOP 0.9x, it is a good practice to use fo:b-c for such purpose.

Le 21/06/2011 09:22, Theresa Jayne Forster a écrit :
 The FO output is as follows (for the part in question)
 fo:block-container font-family=HelveticaNeue font-weight=normal
 font-style=normal
  font-size=7pt
  line-height=8.4pt
  text-align=left
  color=cmyk(34%,30%,32%,9%) 
  top=140.581mm
  left=12.7mm
  width=50mm
  height=11mm
  position=absolute
  border-color=red
  border-style=solid
  border-width=1px
 fo:table font-family=HelveticaNeue font-weight=normal
 font-style=normal
   font-size=7pt
   line-height=8.4pt
   text-align=left
   color=cmyk(34%,30%,32%,9%) 
   width=50mm
   height=11mm
fo:table-body
   fo:table-row
  fo:table-cell font-family=HelveticaNeue
 font-weight=normal font-style=normal
 font-size=7pt
 line-height=8.4pt
 text-align=left
 color=cmyk(34%,30%,32%,9%) 
 display-align=after
 fo:block
fo:inline font-weight=normal
 font-style=normal text-decoration=no-underline
   vertical-align=baseline
   font-size=100%*Small print to be
 added here/fo:inline
 /fo:block
  /fo:table-cell
   /fo:table-row
/fo:table-body
 /fo:table
  /fo:block-container
 
 Without the table it displays fine just not bottom aligned.
 
 Kindest regards
 
 
 Theresa Forster
 Senior Software Developer
 
 -Original Message-
 From: Andreas L. Delmelle [mailto:andreas.delme...@telenet.be] 
 Sent: 20 June 2011 18:41
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: I need bottom up text.
 
 On 20 Jun 2011, at 18:07, Theresa Jayne Forster wrote:
 
 Hi Theresa
 
 I am trying to do a document with a box near the bottom which is bottom
 aligned.
  
 I have tried everything but as soon as I put the apply-templates inside
 the table the text vanished, what am I doing wrong and how can I get it
 working.
 
 In the future, can you please post the generated FO markup? That helps us
 identify, reproduce and understand the issue better. Right now, based only
 on the XSLT code, we have to infer/imagine which attributes are included in
 the 'smallprint' set. Not that they are necessarily relevant here, but
 still...
 
 Suppose, for example, that the attribute-set 'smallprint' contains a
 relative font-size of 0.6em.
 Assuming that this attribute-set is also used in the matching template for
 Smallprint nodes, then if you start off with a font-size of 10pt, in the
 outer block-container it will be 6pt, and by the time the text is actually
 reached, that may have shrunk to well below 2pt, which would make the text
 near invisible at normal zoom.
 
From the command-line, you can easily obtain the FO that FOP would get, by
 means of the '-foout' switch.
 
 This just as some advice that will yield quicker and more to-the-point
 responses.
 
 (basically I am looking for similar to the html4.0 loose transitional
  
 tabletr valign=bottomtd/td/tr/table
 
From what I can tell, the code you have should work fine for the most part
 (in FOP 1.0), assuming that there is nothing too exotic in that 'smallprint'
 attribute set or the other content (which we cannot see in your XSL code).
 The only thing that does not work, AFAIK, is a forced height on fo:table.
 To work around the latter, you can force the table to grow to the desired
 size by wrapping the cell content

RE: I need bottom up text.

2011-06-21 Thread Theresa Jayne Forster
I solved it in the end, the problem is that you have to define a column-width 
and also a row height otherwise it doesn’t show...


Kindest regards


Theresa Forster
Senior Software Developer


-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: 21 June 2011 09:58
To: fop-users@xmlgraphics.apache.org
Subject: Re: I need bottom up text.

Theresa,

With FOP 1.0, you can use either fo:table construction or
fo:block-container, both gives normal behavior and text is displayed at
bottom of the surrounding fo:block-container.

Note that (as Andreas aid) the height attribute have no effect on
fo:table; you have to set it on fo:table-row.
When applying this, your code is OK.

If this is not what you expected, you should provide further info.
Probably you want something else (like footnotes).




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Strange response

2011-06-21 Thread Theresa Jayne Forster
I have a fo file with a block inside a b-c

 

But on the pdf produced, I am not seeing the block on it. But I do see the
red border of the b-c And all text is missing, any ideas why?

 

xsl:template name=header

fo:static-content
flow-name=xsl-region-before

fo:block-container
position=absolute top=0mm left=0mm width=75mm height=42mm

 
xsl:call-template name=htslogo/

/fo:block-container

fo:block-container
position=absolute top=-4mm left=75mm width=135mm height=42mm

 
xsl:call-template name=header-gfx/ 

/fo:block-container

fo:block-container
position=absolute top=10.104mm left=85.5mm width=47.75mm
height=10mm xsl:use-attribute-sets=MainHeader border-style=solid
border-color=red border-width=1px

fo:block
background-color=pink Case Study/fo:block   ß This is the one missing

/fo:block-container

/fo:static-content

/xsl:template

 

FO = 

/fo:instream-foreign-object

/fo:block

/fo:block-container

fo:block-container font-family=HelveticaNeueMedium font-weight=normal
font-style=normal font-size=24pt text-align=left
color=cmyk(30%,0%,0%,0%) border-width=1px border-color=red
border-style=solid height=10mm width=47.75mm left=85.5mm
top=10.104mm position=absolute

fo:block background-color=pinkCase Study/fo:block

/fo:block-container

/fo:static-content

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



I need bottom up text.

2011-06-20 Thread Theresa Jayne Forster
I am trying to do a document with a box near the bottom which is bottom
aligned. 

 

I have tried everything but as soon as I put the apply-templates inside the
table the text vanished, what am I doing wrong and how can I get it working.

 

(basically I am looking for similar to the html4.0 loose transitional

 

tabletr valign=bottomtd/td/tr/table

 

The FO I am using is as follows, I can see the border but nothing inside

But if I just had the block-container then a block  it works fine.

 

fo:block-container top=140.581mm left=12.7mm width=50mm height=11mm
position=absolute border-color=red border-style=solid
border-width=1px  xsl:use-attribute-sets=smallprint

fo:table width=50mm height=11mm  xsl:use-attribute-sets=smallprint

fo:table-body

fo:table-row

 
fo:table-cell display-align=after xsl:use-attribute-sets=smallprint

 
fo:block

 
xsl:apply-templates select=$Smallprint/

 
/fo:block

 
/fo:table-cell

/fo:table-row

/fo:table-body

/fo:table

/fo:block-container

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Error including a PDF inside another PDF

2011-06-17 Thread Theresa Jayne Forster
On a slightly different note can you use the FOP-pdf-images.jar to extract
thumbnails of PDFs?

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: 17 June 2011 08:00
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error including a PDF inside another PDF

Hi Jose,

The ERROR message is the key here, it's indicative of an absence of an
image loader for PDFs. You need to have the FOP-pdf-images JAR to your
class path, you can get the JAR from this link
http://www.jeremias-maerki.ch/download/fop/pdf-images/ and to put it
in your class path, the easiest way would be to drop the jar in your
lib/ folder.

Hope that helps

Mehdi



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Error including a PDF inside another PDF

2011-06-17 Thread Theresa Jayne Forster
But can it be used to extract the front page as an image?

We can rescale later...

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: 17 June 2011 11:17
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error including a PDF inside another PDF

Hi Theresa,

To put it simply, no. As far as I'm aware and I've done some testing
of this, FOP-pdf-images doesn't resize/rescale PDFs it only crops.

Hope that helps

Mehdi





-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: FOP Extension to handle Wiki Syntax

2011-06-15 Thread Theresa Jayne Forster
We see what you are trying to do,  what would be probably better rather than 
creating an extension, 
How about a more helpful / generic pre-processor 

Wiki -- XML
And then you can add your own pre-processor extensions to say add 
BBCode-XML

Then you can use your wiki-XML to change the wiki page into a valid XML 
document to be transformed into FO by xsl and then to pdf.

Example:
**this is a header**   --  para style=header2this is a header/para


Kindest regards


Theresa Forster
Senior Software Developer



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Color fade on SVG with gradients

2011-06-14 Thread Theresa Jayne Forster
After seeing  the thread for Text fill color in external SVG is not
preserved

I thought  I would raise this issue we are seeing, 

With small numbers of gradients, we have no problems but we have a gradient
full logo with many gradients, 

With normal viewers it looks exactly as intended (with a lighter front).
After this though when placing in a PDF the svg loses color and looks faded
missing the top color after processing, 

I read that this may be due to color processing changes, from RGB-CMYK-RGB
or something like that. Or has anyone a better solution?

 

Kindest regards

 


Theresa Forster

Senior Software Developer




 



RE: FOP Extension to handle Wiki Syntax

2011-06-14 Thread Theresa Jayne Forster
Can't you just XSLT the incoming document ?


Kindest regards


Theresa Forster
Senior Software Developer
-Original Message-
From: kalgon [mailto:kal...@hotmail.com] 
Sent: 14 June 2011 11:09
To: fop-users@xmlgraphics.apache.org
Subject: FOP Extension to handle Wiki Syntax


Hi,

I would like to write a FOP extension to render text written in wiki syntax:

fo:block
fopwiki:wiki value={/root/description/text()} /
/fo:block

root
description
= title =
* item
* item
/description
/root

What I would like to know is how I can build a tree of FONodes (blocks,
text, table...) programmatically while parsing my wiki text and feed that
tree to the FOP engine. I've been looking at ElementMapping, XMLHandler and
the likes but I can't get a good grip at how those are working.

If somebody could point me to a good and complete tutorial on FOP extensions
or send me a nice example of how to do it, that would help me a lot!

Thanks,

Kalgon

-- 
View this message in context:
http://old.nabble.com/FOP-Extension-to-handle-Wiki-Syntax-tp31841403p3184140
3.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



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1382 / Virus Database: 1511/3683 - Release Date: 06/05/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Multi Threaded FOP?

2011-06-09 Thread Theresa Jayne Forster
I am looking into redoing my FOP integration and maybe adding it into some
form of MQ service, 

So many applications can request fop functionality and then have their
response sent on the MQQueue, 

How Threadsafe is the Fop engine? Or is the current newFopInstance from a
singleton factory instance totally threadsafe?

 

Are there any catcha's I need to be aware of?

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: NoSuchMethodError: org.apache.fop.fonts.FontInfo.setEventListener

2011-06-08 Thread Theresa Jayne Forster
I had a similar problem and it was that Struts as included by Netbeans had
an older commons-io library that was missing required methods that FOP
needs.


Kindest regards


Theresa Forster
Senior Software Developer
-Original Message-
From: honyk [mailto:j.tosov...@email.cz] 
Sent: 07 June 2011 21:42
To: fop-users@xmlgraphics.apache.org
Subject: RE: NoSuchMethodError:
org.apache.fop.fonts.FontInfo.setEventListener

   java.lang.NoSuchMethodError:
   org.apache.fop.fonts.FontInfo.setEventListener(...)V

Sorry for this noise. I've included all the libraries from FOP distributon
into my project and it works now! I had there just fop + batik before.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1382 / Virus Database: 1511/3683 - Release Date: 06/05/11

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1382 / Virus Database: 1511/3683 - Release Date: 06/05/11



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Hair ripping time

2011-06-06 Thread Theresa Jayne Forster
Yes but its jumping out from the line 
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);

So if I am stepping through the code, I hit that line, press F8 for step
over , and its on the finally 
So the code is jumping from that line all the way out missing all the other
lines and not getting caught even though I am trying to catch every
exception  (to try and debug this - not as a normal thing btw) 
With catch (Exception ex)


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Rob Sargent [mailto:rsarg...@xmission.com] 
Sent: 03 June 2011 18:07
To: fop-users@xmlgraphics.apache.org
Subject: Re: Hair ripping time

That print statement will always be called since it's in the finally block.

On 06/03/2011 09:27 AM, Theresa Jayne Forster wrote:
 This makes no sense its crashing out with no error on this line
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
 And it jumps straight to
System.out.print(*);

 The code I am using is as follows

 public File generatePDFFromXml(File xslFile,File xmlFile) {
  FopFactory fopFactory = FopFactory.newInstance();
  BufferedOutputStream out = null;
  File tempFile = null;
  try {
  fopFactory.setStrictValidation(false);
  DefaultConfigurationBuilder cfgBuilder = new
 DefaultConfigurationBuilder();
  Configuration cfg = cfgBuilder.buildFromFile(new
 File(fopconfig.xml));
  fopFactory.setUserConfig(cfg);

  tempFile = File.createTempFile(W2P, .pdf);
  out = new BufferedOutputStream(new
FileOutputStream(tempFile));
  FOUserAgent useragent= fopFactory.newFOUserAgent();
  useragent.setOutputFile(tempFile);
  useragent.setTargetResolution(300);
  Fop fop =
 fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
  TransformerFactory factory =
TransformerFactory.newInstance();
  Source xslt = new StreamSource(xslFile);
  Transformer transformer = factory.newTransformer(xslt);
  Source src = new StreamSource(xmlFile);
  Result res = new SAXResult(fop.getDefaultHandler());
  transformer.transform(src, res);
 out.flush();
 out.close();
  System.out.println(Output File =
+tempFile.getAbsolutePath());
  }  catch (TransformerConfigurationException ex) {
  ex.printStackTrace();
  } catch (TransformerException ex) {
  ex.printStackTrace();
  } catch (FOPException ex) {
  ex.printStackTrace();
  } catch (FileNotFoundException ex) {
  ex.printStackTrace();
 } catch (IOException ex) {
  ex.printStackTrace();
  } catch (Exception ex) {
  ex.printStackTrace();
  } finally {
  try {
System.out.print(*);
  out.close();
 } catch (IOException ex) {
  }
  }
  return tempFile;
  }

 Kindest regards


 Theresa Forster
 Senior Software Developer

 ther...@inbrand.co.uk
 www.inbrand.co.uk

 Tel: 01483 266500



 IMPORTANT NOTE: This transmission has been sent by or on behalf of In
Brand
 Software Ltd. The information in this transmission is for the intended
 addressee only and is confidential to that intended addressee. If either
you
 know or you ought reasonably to conclude that you are not, or may not be,
 the intended addressee, you are hereby given notice that any unauthorised
 dissemination or copying of this transmission and any disclosure or use of
 the information
 transmitted is strictly prohibited and may be illegal. In such
circumstances
 we ask for your assistance in notifying us immediately by e-mail,
telephone
 or letter.

 InBrand Software Ltd Registered in England No. 5131004 Registered Office:
 The Old Barn, Ewhurst Road, Cranleigh GU6 7EF


 -Original Message-
 From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk]
 Sent: 03 June 2011 15:42
 To: fop-users@xmlgraphics.apache.org
 Subject: RE: Hair ripping time

 Tried that same result, it jumps immediately out of the try catch into the
 finally

 Kindest regards


 Theresa Forster
 Senior Software Developer

 Seems like you need:

 Transformer transformer = factory.newTransformer();
 transformer.transform(new StreamSource(inputFO));


 HTH!

 Regards

 Andreas
 ---
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
 Internal Virus Database is out of date.



 -
 To unsubscribe, e-mail: fop-users

RE: Hair ripping time

2011-06-06 Thread Theresa Jayne Forster
Thanks for that, it has improved my debugging but it seems to be implying an
issue with FOP

java.lang.NoSuchMethodError:
org.apache.commons.io.filefilter.FileFilterUtils.fileFileFilter()Lorg/apache
/commons/io/filefilter/IOFileFilter;
at
org.apache.fop.fonts.autodetect.FontFileFinder.getFileFilter(FontFileFinder.
java:79)
at
org.apache.fop.fonts.autodetect.FontFileFinder.init(FontFileFinder.java:52
)
at org.apache.fop.fonts.FontDetector.detect(FontDetector.java:69)
at
org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.jav
a:92)

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Andreas L. Delmelle [mailto:andreas.delme...@telenet.be] 
Sent: 03 June 2011 21:54
To: fop-users@xmlgraphics.apache.org
Subject: Re: Hair ripping time

On 03 Jun 2011, at 17:27, Theresa Jayne Forster wrote:

Hi Theresa

 This makes no sense its crashing out with no error on this line
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
 And it jumps straight to 
  System.out.print(*);
snip /
}  catch (TransformerConfigurationException ex) {
ex.printStackTrace();
} catch (TransformerException ex) {
ex.printStackTrace();
} catch (FOPException ex) {
ex.printStackTrace();
} catch (FileNotFoundException ex) {
ex.printStackTrace();
   } catch (IOException ex) {
ex.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();

Not as a general practice, but if all else fails:

} catch (Throwable t) {
t.printStackTrace();
}

Hopefully, that will reveal what is happening here.


Regards

Andreas
---

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Hair ripping time

2011-06-06 Thread Theresa Jayne Forster
I am running it under Apache Tomcat but I also have commons-io-1.3.2.jar in the 
Netbeans Libraries folder and its ticked for export.

Looking into the war file I think I see the problem though, it has both 1.1 and 
1.3.2 of commons-io in the war so it could be a version clash...
Time to find and remove all the 1.1 instances.

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Michael Rubin [mailto:mru...@thunderhead.com] 
Sent: 06 June 2011 09:31
To: fop-users@xmlgraphics.apache.org
Subject: Re: Hair ripping time

Sounds like a possible classpath issue to me? Do you have commons-io-*.jar on 
your system? And if so, is it in your classpath? Does adding it to your 
classpath help?

Thanks to a google search, 
http://javacio.us/search?q=org%2Fapache%2Fcommons%2Fio%2Ffilefilter%2FIOFileFilter+more%3Ajar_filesinline=true
 appears to point out which jars contain the file and where they can be 
retrieved from if required, although I have not tested the links.

Thanks.

-Mike


On 06/06/11 09:25, Theresa Jayne Forster wrote:
 Thanks for that, it has improved my debugging but it seems to be implying an
 issue with FOP

 java.lang.NoSuchMethodError:
 org.apache.commons.io.filefilter.FileFilterUtils.fileFileFilter()Lorg/apache
 /commons/io/filefilter/IOFileFilter;
  at
 org.apache.fop.fonts.autodetect.FontFileFinder.getFileFilter(FontFileFinder.
 java:79)
  at
 org.apache.fop.fonts.autodetect.FontFileFinder.init(FontFileFinder.java:52
 )
  at org.apache.fop.fonts.FontDetector.detect(FontDetector.java:69)
  at
 org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.jav
 a:92)

 Kindest regards


 Theresa Forster
 Senior Software Developer

 



Michael Rubin
Developer

T: +44 20 8238 7400
F: +44 20 8238 7401

mru...@thunderhead.com

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us 
immediately and then destroy it. 




-Original Message-
 From: Andreas L. Delmelle [mailto:andreas.delme...@telenet.be]
 Sent: 03 June 2011 21:54
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Hair ripping time

 On 03 Jun 2011, at 17:27, Theresa Jayne Forster wrote:

 Hi Theresa

 This makes no sense its crashing out with no error on this line
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
 And it jumps straight to
   System.out.print(*);
 snip /
 }  catch (TransformerConfigurationException ex) {
 ex.printStackTrace();
 } catch (TransformerException ex) {
 ex.printStackTrace();
 } catch (FOPException ex) {
 ex.printStackTrace();
 } catch (FileNotFoundException ex) {
 ex.printStackTrace();
} catch (IOException ex) {
 ex.printStackTrace();
 } catch (Exception ex) {
 ex.printStackTrace();
 Not as a general practice, but if all else fails:

  } catch (Throwable t) {
  t.printStackTrace();
  }

 Hopefully, that will reveal what is happening here.


 Regards

 Andreas
 ---

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
 Internal Virus Database is out of date.



 -
 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

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Hair ripping time

2011-06-06 Thread Theresa Jayne Forster
Ok Strange, I am running commons-io-1.4 now and its still not working but the 
fop I compiled up from source is using 1.3.1 so does that mean we are limited 
to 1.3.1 as there is missing functionality in the later versions?


Kindest regards


Theresa Forster
Senior Software Developer

ther...@inbrand.co.uk
www.inbrand.co.uk

Tel: 01483 266500



IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand 
Software Ltd. The information in this transmission is for the intended 
addressee only and is confidential to that intended addressee. If either you 
know or you ought reasonably to conclude that you are not, or may not be, the 
intended addressee, you are hereby given notice that any unauthorised 
dissemination or copying of this transmission and any disclosure or use of the 
information
transmitted is strictly prohibited and may be illegal. In such circumstances we 
ask for your assistance in notifying us immediately by e-mail, telephone or 
letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office: The 
Old Barn, Ewhurst Road, Cranleigh GU6 7EF 


-Original Message-
From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 06 June 2011 09:48
To: fop-users@xmlgraphics.apache.org
Subject: RE: Hair ripping time

I am running it under Apache Tomcat but I also have commons-io-1.3.2.jar in the 
Netbeans Libraries folder and its ticked for export.

Looking into the war file I think I see the problem though, it has both 1.1 and 
1.3.2 of commons-io in the war so it could be a version clash...
Time to find and remove all the 1.1 instances.

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Michael Rubin [mailto:mru...@thunderhead.com] 
Sent: 06 June 2011 09:31
To: fop-users@xmlgraphics.apache.org
Subject: Re: Hair ripping time

Sounds like a possible classpath issue to me? Do you have commons-io-*.jar on 
your system? And if so, is it in your classpath? Does adding it to your 
classpath help?

Thanks to a google search, 
http://javacio.us/search?q=org%2Fapache%2Fcommons%2Fio%2Ffilefilter%2FIOFileFilter+more%3Ajar_filesinline=true
 appears to point out which jars contain the file and where they can be 
retrieved from if required, although I have not tested the links.

Thanks.

-Mike


On 06/06/11 09:25, Theresa Jayne Forster wrote:
 Thanks for that, it has improved my debugging but it seems to be implying an
 issue with FOP

 java.lang.NoSuchMethodError:
 org.apache.commons.io.filefilter.FileFilterUtils.fileFileFilter()Lorg/apache
 /commons/io/filefilter/IOFileFilter;
  at
 org.apache.fop.fonts.autodetect.FontFileFinder.getFileFilter(FontFileFinder.
 java:79)
  at
 org.apache.fop.fonts.autodetect.FontFileFinder.init(FontFileFinder.java:52
 )
  at org.apache.fop.fonts.FontDetector.detect(FontDetector.java:69)
  at
 org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.jav
 a:92)

 Kindest regards


 Theresa Forster
 Senior Software Developer

 



Michael Rubin
Developer

T: +44 20 8238 7400
F: +44 20 8238 7401

mru...@thunderhead.com

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us 
immediately and then destroy it. 




-Original Message-
 From: Andreas L. Delmelle [mailto:andreas.delme...@telenet.be]
 Sent: 03 June 2011 21:54
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Hair ripping time

 On 03 Jun 2011, at 17:27, Theresa Jayne Forster wrote:

 Hi Theresa

 This makes no sense its crashing out with no error on this line
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
 And it jumps straight to
   System.out.print(*);
 snip /
 }  catch (TransformerConfigurationException ex) {
 ex.printStackTrace();
 } catch (TransformerException ex) {
 ex.printStackTrace();
 } catch (FOPException ex) {
 ex.printStackTrace();
 } catch (FileNotFoundException ex) {
 ex.printStackTrace();
} catch (IOException ex) {
 ex.printStackTrace();
 } catch (Exception ex) {
 ex.printStackTrace();
 Not as a general practice, but if all else fails:

  } catch (Throwable t) {
  t.printStackTrace();
  }

 Hopefully, that will reveal what is happening here.


 Regards

 Andreas
 ---

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
 Internal Virus Database is out of date

RE: Hair ripping time

2011-06-06 Thread Theresa Jayne Forster
Ok, solution found, and I think this needs to be noted down,

Using Netbeans, added Frameworks

Spring Web MVC
JavaServer Faces
Struts 1.3.8
Hibernate 3.2.5

The problem is the struts, it comes with commons-io-1.1.jar and doesn’t have 
one of the methods in the font autodetect code that was implemented in 1.3.1 
and up.
So I had to go into the library defs in the struts framework and delete the 1.1 
and replace it with the 1.3.1 and it now works fine.


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 06 June 2011 10:54
To: fop-users@xmlgraphics.apache.org
Subject: RE: Hair ripping time

Sorry to keep posting but its strange and I am trying to understand, when I 
find something new I am also letting you know so old ground isn’t covered 
again. 

1) Runs stand alone fine, 
2) War file contains the commons-io file
3) Running under Tomcat 6 it fails with a Method not found error.
4) could it be due to Tomcat 6 having a different default commons-io in its 
build somewhere? And if so , where so I can upgrade it?


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 06 June 2011 10:23
To: fop-users@xmlgraphics.apache.org
Subject: RE: Hair ripping time

Ok Strange, I am running commons-io-1.4 now and its still not working but the 
fop I compiled up from source is using 1.3.1 so does that mean we are limited 
to 1.3.1 as there is missing functionality in the later versions?


Kindest regards


Theresa Forster
Senior Software Developer



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1382 / Virus Database: 1511/3683 - Release Date: 06/05/11


-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1382 / Virus Database: 1511/3683 - Release Date: 06/05/11



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Problems since upgrading,

2011-06-03 Thread Theresa Jayne Forster
The problem is that the Designers specify it must be HEAVY not BOLD and they
have no understanding of the numeric weights.

 

The designers use light, normal, bold, heavy and black 

 

The current FOP only supports normal and bold. 

 

I guess I will need to make sure that the fop I use is modded to support the
black and heavy as well as light.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Eric Douglas [mailto:edoug...@blockhouse.com] 
Sent: 02 June 2011 16:03
To: fop-users@xmlgraphics.apache.org
Subject: RE: Problems since upgrading,

 

heavy is not a standard keyword.

If you select the wrong value for the fonts you have loaded it should log a
warning for font replacement.

Keywords translate to specific numbers.

You would want to use the numbers instead of the words to be sure it's
always correct.

They might think light is 200 but your light font has a weight of 100, or
normal 300 / 400 etc.

http://www.w3.org/TR/CSS2/fonts.html#font-boldness

Standard keywords are normal (400) and bold (700), and lighter / bolder
(relative to parent).

 

 

 

  _  

From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: Thursday, June 02, 2011 10:46 AM
To: fop-users@xmlgraphics.apache.org
Subject: Problems since upgrading,

Since upgrading the fop I use from 0.23 to 1.0 I am now getting problems 

One of which is that the font designations I used to use are now no longer
possible, and was wondering why this has seemingly changed, and is there
plans to support the method I am used to using?

 

Before fo:block font-family=Frutiger font-style=normal
font-weight=heavy/

 

Now apparently I need to do weight as a number 700=bold etc

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11



RE: FOP with embedded font running in Oracle 10g

2011-06-03 Thread Theresa Jayne Forster
Are you just saying your Java App has to be able to access the font to
create the PDF based on data from the database or are you saying you have to
store the ttf file inside the database?

The former, just use auto-detect/ in the fopconfig.  With 1.0 it searches
the classpath (which includes your application Jar) to find fonts, and you
can also have external jar files containing the Fonts as well.

Auto-Detect and auto-embed feature
When the auto-detect flag is set in the configuration, FOP will
automatically search for fonts in the default paths for your operating
system.
FOP will also auto-detect fonts which are available in the classpath, if
they are described as application/x-font in the MANIFEST.MF file. For
example, if your .jar file contains font/myfont.ttf:
Manifest-Version: 1.0
  Name: font/myfont.ttf
  Content-Type: application/x-font

This feature allows you to create JAR files containing fonts. The JAR files
can be added to fop by providing them in the classpath, e.g. copying them
into the lib/ directory.

Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Flipz-007 [mailto:flipz-...@seznam.cz] 
Sent: 03 June 2011 10:04
To: fop-users@xmlgraphics.apache.org
Subject: FOP with embedded font running in Oracle 10g

Dear all,

I need to create Java application which will generate PDF report from given
data. This application needs to be run in Oracle DB 10g environment as a
stored procedure.

The main problem is that I don't know how to configure FOP to use my
specific font which is embedded in application jar as a resource. In
Internet there are many examples how to configure FOP if the font is located
on filesystem, but in my case I need to load the font into DB inside my java
archive.

I searched through the Internet but I didn't find any solution.
Could you give me any advice please?
Thank you very much.

Jiri

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Problems since upgrading,

2011-06-03 Thread Theresa Jayne Forster
On that note, is it possible to chain XSL files on the fop input, or even make 
it double process, 

Ie multi pass processing to allow for calculations on page number etc?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer





Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
Ok I cannot see what is wrong here, 

A test app does this 

 

Fop fop =
fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);

TransformerFactory factory = TransformerFactory.newInstance();

Source xslt = new StreamSource(new File(C:/sample.xsl));

Transformer transformer = factory.newTransformer(xslt);

 

And works fine, 

The app I am working on does this

 

Fop fop =
fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);

TransformerFactory factory = TransformerFactory.newInstance();

Transformer transformer = factory.newTransformer(new
StreamSource(inputFO));

 

And it immediately jumps out when it hits the newTransformer() line..

In the first it's an xslt, in the second it's a FO file, do I have to do
something different for that?

 

WTF aren't these the same, and why does so much of FOP jump out without even
trying to give debug output? Or is there a way of doing that?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
Tried that same result, it jumps immediately out of the try catch into the
finally

Kindest regards


Theresa Forster
Senior Software Developer

Seems like you need:

Transformer transformer = factory.newTransformer();
transformer.transform(new StreamSource(inputFO));


HTH!

Regards

Andreas
---
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
This makes no sense its crashing out with no error on this line
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
And it jumps straight to 
  System.out.print(*);

The code I am using is as follows

public File generatePDFFromXml(File xslFile,File xmlFile) {
FopFactory fopFactory = FopFactory.newInstance();
BufferedOutputStream out = null;
File tempFile = null;
try {
fopFactory.setStrictValidation(false);
DefaultConfigurationBuilder cfgBuilder = new
DefaultConfigurationBuilder();
Configuration cfg = cfgBuilder.buildFromFile(new
File(fopconfig.xml));
fopFactory.setUserConfig(cfg);

tempFile = File.createTempFile(W2P, .pdf);
out = new BufferedOutputStream(new FileOutputStream(tempFile));
FOUserAgent useragent= fopFactory.newFOUserAgent();
useragent.setOutputFile(tempFile);
useragent.setTargetResolution(300);
Fop fop =
fopFactory.newFop(MimeConstants.MIME_PDF,useragent,out);
TransformerFactory factory = TransformerFactory.newInstance();
Source xslt = new StreamSource(xslFile);
Transformer transformer = factory.newTransformer(xslt);
Source src = new StreamSource(xmlFile);
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
   out.flush();
   out.close();
System.out.println(Output File = +tempFile.getAbsolutePath());
}  catch (TransformerConfigurationException ex) {
ex.printStackTrace();
} catch (TransformerException ex) {
ex.printStackTrace();
} catch (FOPException ex) {
ex.printStackTrace();
} catch (FileNotFoundException ex) {
ex.printStackTrace();
   } catch (IOException ex) {
ex.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
} finally {
try {
  System.out.print(*);
out.close();
   } catch (IOException ex) {
}
}
return tempFile;
}

Kindest regards


Theresa Forster
Senior Software Developer

ther...@inbrand.co.uk
www.inbrand.co.uk

Tel: 01483 266500



IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 


-Original Message-
From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 03 June 2011 15:42
To: fop-users@xmlgraphics.apache.org
Subject: RE: Hair ripping time

Tried that same result, it jumps immediately out of the try catch into the
finally

Kindest regards


Theresa Forster
Senior Software Developer

Seems like you need:

Transformer transformer = factory.newTransformer();
transformer.transform(new StreamSource(inputFO));


HTH!

Regards

Andreas
---
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11
Internal Virus Database is out of date.



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Hair ripping time

2011-06-03 Thread Theresa Jayne Forster
Sorry I think we have moved on from that – I was testing it in a slightly 
different way as the example method wasn’t working, 

 

The problem is when I do the newFop command its exiting from the system 
completely, the standalone app works fine with the same config etc.

 

The spring app under tomcat is doing the following in the logs

 

2011-06-03 16:54:44,292 [http-8080-2] INFO  uk.co.inbrand.inline.InLine - 
Processing Incoming Request..

2011-06-03 16:54:49,150 [http-8080-2] DEBUG 
org.apache.fop.apps.FopFactoryConfigurator - Initializing FopFactory 
Configurationwith strict validation

2011-06-03 16:54:49,151 [http-8080-2] DEBUG FOP - target-resolution set to: 
300.0dpi (px2mm=0.0846)

2011-06-03 16:54:49,151 [http-8080-2] DEBUG FOP - target-resolution set to: 
300.0dpi (px2mm=0.0846)

2011-06-03 16:54:49,152 [http-8080-2] DEBUG 
org.apache.fop.render.AbstractConfigurator - User configuration found for MIME 
type application/pdf

2011-06-03 16:54:49,152 [http-8080-2] DEBUG 
org.apache.fop.render.AbstractConfigurator - User configuration found for MIME 
type application/pdf

2011-06-03 16:54:49,152 [http-8080-2] DEBUG 
org.apache.fop.fonts.FontInfoConfigurator - Starting font configuration...

 

Kindest regards

 


Theresa Forster

Senior Software Developer





RE: Measuring

2011-06-02 Thread Theresa Jayne Forster
I have seen cm, mm, px, em, in,

 

Kindest regards

 


Theresa Forster

Senior Software Developer




From: Zac Nichol [mailto:zacnic...@gmail.com] 
Sent: 02 June 2011 15:24
To: fop-users@xmlgraphics.apache.org
Subject: Re: Measuring

 

you can specify units like left=2in for inches, or left=2mm for
millimeters, or as you said you can do px for pixels.  i'm not sure if there
are even more units available, these are the only ones i've used.

On Thu, Jun 2, 2011 at 10:16 AM, Eric Douglas edoug...@blockhouse.com
wrote:

How does Fop measure? 
If I put a tag in my .fo for fo:block-container position=absolute left= .

Does it measure in pixels / points (are they the same thing?)? 
Do I need to specifiy?  left=10px or just left=10? 
It appears to work the same with or without a unit of measure, assuming the
page measurement to be 72PPI, but I don't want to make an assumption and be
wrong later.

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11



RE: Measuring

2011-06-02 Thread Theresa Jayne Forster
Well the main part of the SVG is whatever you want, I have seen pixels and
mm used without measurement, the main width and height again can be pixels
and also mm etc.

 

Where I use SVG I usually put it in a template call as follows

 

svg:svg

 
xmlns:dc=http://purl.org/dc/elements/1.1/;

 
xmlns:svg=http://www.w3.org/2000/svg;

 
xmlns=http://www.w3.org/2000/svg;

 
xmlns:xlink=http://www.w3.org/1999/xlink;

   version=1.1

   width={$width}mm

   height={$height}mm

   viewBox=0 0 612.28299
147.42

 

which means the width and height is in mm but the viewbox is in pixels.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

ther...@inbrand.co.uk
www.inbrand.co.uk http://www.inbrand.co.uk/ 

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

From: Eric Douglas [mailto:edoug...@blockhouse.com] 
Sent: 02 June 2011 15:45
To: fop-users@xmlgraphics.apache.org
Subject: RE: Measuring

 

That's exactly what I was looking for on block placement, thanks.  What
about SVG?

My SVG code looks like this (doesn't mention UOM).

 

fo:instream-foreign-object content-width=236.25 content-height=auto
scaling=non-uniformsvg:svg preserveAspectRatio=xMinYMin meet
width=100% height=100% viewBox=0,0,556,84svg:path d= M 0.00 0.00 L
0.30 0.00 ...

 

Can I assume that is pt?  I'm assuming page size is 792 x 612 (or 612 x 792
landscape).


 

  _  

From: Glenn Adams [mailto:gl...@skynav.com] 
Sent: Thursday, June 02, 2011 10:36 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Measuring

length in XSL-FO is as defined by CSS 2. A unit designator is required
unless the value is 0. The available unit designators are: 

*   em 
*   ex 
*   in 
*   cm 
*   mm 
*   pt 
*   pc 
*   px

The unit 'pt' is an absolute measurement equal to 1/72 inch. FOP
non-conformantly permits unit-less lengths not equal to zero, in which case
it is interpreted as 'px', which is device/implementation dependent.

 

If you want a precise, absolute measurement, use 'pt', 'mm', or another
absolute unit.

 

Glenn

 

On Thu, Jun 2, 2011 at 8:16 AM, Eric Douglas edoug...@blockhouse.com
wrote:

How does Fop measure? 
If I put a tag in my .fo for fo:block-container position=absolute left= .

Does it measure in pixels / points (are they the same thing?)? 
Do I need to specifiy?  left=10px or just left=10? 
It appears to work the same with or without a unit of measure, assuming the
page measurement to be 72PPI, but I don't want to make an assumption and be
wrong later.

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3662 - Release Date: 05/26/11

image001.png

RE: how to do relative position

2011-05-27 Thread Theresa Jayne Forster
I got it actually, I mis understood the meaning of absolute and relative, 

I thought absolute meant always absolute per the document not per the
containing container

Well a day where you learn nothing is a day wasted


Kindest regards


Theresa Forster
Senior Software Developer



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Problem with kerning on a font

2011-05-27 Thread Theresa Jayne Forster
I am having problems with fixing the kerning xml file generated with
TTFReader,

 

It has not got the right values for me or ti  I need to therefore find the
correct codes in the font.xml file.

 

But the numbering doesn't make sense? Ie what character is 3?   Ie kerning
kxp1=3

Or is there another way to get the correct kerning file?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



RE: Problem with kerning on a font

2011-05-27 Thread Theresa Jayne Forster
That solved it thanks, 

The main difference in the file I saw was the old file had TYPE0 section at the 
beginning, so that fixed the kerning problem by getting 1.0 and regenerating 
the metrics file.


Kindest regards


Theresa Forster
Senior Software Developer

-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: 27 May 2011 16:32
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem with kerning on a font

Hi Theresa,

FOP 0.2x TTFReader was buggy.
You can try to generate metrics files using a TTFReader that comes with
a recent FOP version. Such metrics files should work with older FOP
versions.

I don't remember if FOP 0.2x metrics generation proceeded in the same
way as current FOP version. See [1] if needed.

[1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#truetype-metrics

Le 27/05/2011 16:59, Theresa Jayne Forster a écrit :
 Unfortunately at the moment I am having to use a hacked 0.23 with added
 functionality by a previous programmer. (who left no notes)
 
 Also the java program calls the fop.exe externally facepalm/  
 
 I cant wait to upgrade to 1.0 :)
 
 Kindest regards
 
 
 Theresa Forster
 Senior Software Developer
-- 
Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3656 - Release Date: 05/23/11



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: problem resolve external image resource with fop

2011-05-18 Thread Theresa Jayne Forster
Hmmm 
I think you are talking about how we do it
We process contents of web pages from the web pulling in data etc from
remote sites and putting them into a template, 

A small example here (imagedataservlet returns xml containing the width and
height in pixels of an image)

xsl:template name=crop-scale-image
xsl:param name=content-width/
xsl:param name=content-height/
xsl:param name=imgurl/

xsl:variable name=imginfourl

xsl:texthttp://www.example.com/ImageDataServlet-1.0/ImageDataServlet?imgsr
c=/xsl:text
xsl:value-of select=$imgurl/
/xsl:variable
xsl:variable name=imginfo
select=document($imginfourl)/
xsl:variable name=imgWidthmm
select=$imginfo/imginfo/imgwidth div 3.779527559/
xsl:variable name=imgHeightmm
select=$imginfo/imginfo/imgheight div 3.779527559/
xsl:variable name=xscale select=$content-width div
$imgWidthmm/
xsl:variable name=yscale select=$content-height div
$imgHeightmm/
xsl:variable name=scale
xsl:choose
xsl:when test=$xscale = $yscale
xsl:value-of select=$xscale/
/xsl:when
xsl:otherwise
xsl:value-of select=$yscale/
/xsl:otherwise
/xsl:choose
/xsl:variable
xsl:choose
xsl:when test=$yscale  $xscale
fo:external-graphic
scaling-method=resample-any-method
height={$content-height}mm
width={$content-width}mm
src={$imgurl}
content-x=0mm
content-y=0mm
content-width={$imgWidthmm
* $scale}mm

content-height={$imgHeightmm * $scale}mm
clip=auto
movie=auto
/
/xsl:when
xsl:otherwise 
fo:external-graphic
scaling-method=resample-any-method
height={$content-height}mm
width={$content-width}mm
src={$imgurl}
content-x=0mm
content-y=0mm
content-width={$imgWidthmm
* $scale}mm

content-height={$imgHeightmm * $scale}mm
clip=auto
movie=auto
/
/xsl:otherwise
/xsl:choose
/xsl:template 

Kindest regards


Theresa Forster
Senior Software Developer 

-Original Message-
From: Robyp1 [mailto:rob...@hotmail.com] 
Sent: 17 May 2011 08:57
To: fop-users@xmlgraphics.apache.org
Subject: problem resolve external image resource with fop


hi,

i have a problem using a fop in a web application. First of all,  this is
not only only a kind a web application but a maven web application with
others dependencies like libs or maven module (not web) linked. One kind of
this lib/maven module keep the source with embed a fop code for translate
xml into pdf using an xsl stylesheet. My problem is that the user request is
processed by a servlet. I try to use URIResolver with ServletContext and
servlet-context: for accessing external resource in xsl with
fo:external-graphic src=servlet-context:path
webapp/images/nameGifImage.gif. This is work fine but i prefere that fop
access resource without serveletContext but with the ClassLoader without
placing images in a context web root. I try to place my images in a
application class-path where fop is embed but this not work. Anybody now how
can i solve my problem? How can find where fop external resource would be
place? 

Thank you very much

Roby
-- 
View this message in context:
http://old.nabble.com/problem-resolve-external-image-resource-with-fop-tp316
35640p31635640.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



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1509/3644 - Release Date: 05/17/11




RE: Complex Script, BIDI text supported?

2011-05-13 Thread Theresa Jayne Forster
Once I have the normal one set up I will be looking at the bidi (we need it for 
Arabic) the one sticking point for us is we need the page numbering reversed on 
the fo:page-number/ and also for a multi column document we need it to go 
Right to left, does the git version have this? Or is that still in development?

 

Theresa Forster

From: Matthias Reischenbacher [mailto:matthias8...@gmx.at] 
Sent: 13 May 2011 12:58
To: fop-users@xmlgraphics.apache.org
Subject: Re: Complex Script, BIDI text supported?

 

Hi Glenn,

I've tested your git branch and the following additional issues came up:

1. fo:basic-links with internal destination don't work
2. fo:page-number references only sometimes work
3. start-indent on fo:block with a block-container child isn't taken into 
account.

Please let me know, if you want me to prepare a test case showing all three 
issues.

Best regards,
Matthias

On 31.03.2011 00:43, Glenn Adams wrote: 

Matthias,

 

I just updated my working repo git://github.com/skynavga/fop.git with fixes for 
fo:table and fo:list-block to account for RTL writing modes; i.e., table column 
progression and list-item (label and body) alignment are now RTL in RTL WM 
contexts. 

 

In the process, I uncovered two other issues as well, which I am now working on 
along with the fo:character problem you reported:

*   fo:block-container does not align right in a RTL WM context when it 
does not use absolute or fixed positioning;
*   fo:leader is not working in a RTL WM context;

I will update you when I have fixes committed for these issues.

 

G.

 

On Wed, Mar 23, 2011 at 6:45 AM, Glenn Adams gl...@skynav.com wrote:

Thanks for uncovering these issues. Let me address them and I'll let you know 
when they are fixed in my GIT repo. Perhaps after that I can submit a new patch 
update for the SVN branch. 

 

G. 

 

2011/3/23 Matthias Reischenbacher matthias8...@gmx.at



Glenn,

I just tested a little bit more and the following questions/problems came up:

1. Are table cells also supposed to flow from right to left in rl-tb 
writing-mode?

2. Shouldn't list-item labels be displayed on the right side?

3. fo:character seem to overlap in rl mode.

I'm attaching a new test file and the current PDF output.

Thanks,
Matthias 



On 22.03.2011 18:27, Matthias Reischenbacher wrote:


Hi Glenn,

thanks again for your help and doing all those fixes. Today I've retested my
sample file with the git branch and everything works fine now. I'll do some
more testing in the next weeks and I'll let you know if I encounter any
problems.

Are you planning to submit a new patch for the apache svn repo anytime soon?
If not, no problem. I'm just asking because I have some local modifications
in my svn working copy which I'll have to apply manually to the git working
copy.

Thanks  best regards,
Matthias


Glenn Adams-2 wrote:


Matthias,

I've fixed the fo:block-container problem as well as text-align and
treatment of writing-mode on page regions. The fixes are present in my GIT
repo I referred to earlier  (and also include all trunk commits up to this
point). To be a little more detailed:

   - the use of writing-mode=rl on simple-page-master now results in
   correct interpretation of region-start and region end; i.e.,
region-start is
   now on the right side of the page (with 0 reference orientation), and
   region-end is on the left side;
   - the erroneous (historical) mirroring around the y axis of viewports
   with writing-mode=rl, including those generated by region-* and
   block-container, has been removed;
   - both text-align and text-align-last now treat start and end as
relative
   to the writing mode, e.g., text-align=start is on the right when
   writing-mode=rl, etc.
   - if no text-align is specified, then in a writing-mode=rl context
   correctly results in right (i.e., start) alignment, while in lr start
is
   on left (assuming reference orientation of 0);

I am aware of an existing problem with text-align=justify in RTL WM
contexts, and expect a fix in a day or so.

Let me know if you encounter any other bidi problems. Also, just as a
reminder, a neutral character, e.g., FULL STOP '.', at the end of a
paragraph in a block takes on the default direction of the block. So, if
you
have a block of English text with a period at the end and it appears in a
RTL WM context, then the period will be placed at the left of the last
line,
not the right as one might expect. This is actually correct behavior, and
is
a side effect of the Unicode bidi algorithm. To deal with this, you can
wrap
the English text including the period withfo:bidi-override
unicode-bidi=embed direction=ltrSentence(s) with a period at the
end./fo:bidi-override. This will create a LTR embedding context in the
outer RTL context of the block.

In general, you can use the fo:bidi-override element to both create bidi
embedding levels and also to override the directionality of text as would
be
computed by the Unicode bidi algorithm.

G.

On 

RE: Complex Script, BIDI text supported?

2011-05-13 Thread Theresa Jayne Forster
Sorry if I didn’t put it in terms you could easily understand but I am making a 
variable 30+ page document with Flow and columns=”2” so not using tables at 
all. The generic flow of a page needs to be from “as we see it” back to front – 
right to left so on a 2 column page it needs to go right hand column to left

 

Theresa

From: Glenn Adams [mailto:gl...@skynav.com] 
Sent: 13 May 2011 15:40
To: fop-users@xmlgraphics.apache.org
Subject: Re: Complex Script, BIDI text supported?

 

Theresa,

 

The current code in git://github.com/skynavga/fop.git DOES handle right-to-left 
column progression in fo:table. You need to ensure that the appropriate writing 
mode is specified on fo:table or on the nearest ancestor fo:block-container or 
on fo:page-sequence.

 

I have NOT yet implemented changes needed to reverse page numbering, but it is 
on my list of TODO items. Thanks for reminding me.

 

Regards,

Glenn

On Fri, May 13, 2011 at 7:26 AM, Theresa Jayne Forster ther...@inbrand.co.uk 
wrote:

Once I have the normal one set up I will be looking at the bidi (we need it for 
Arabic) the one sticking point for us is we need the page numbering reversed on 
the fo:page-number/ and also for a multi column document we need it to go 
Right to left, does the git version have this? Or is that still in development?

 

Theresa Forster

From: Matthias Reischenbacher [mailto:matthias8...@gmx.at] 
Sent: 13 May 2011 12:58
To: fop-users@xmlgraphics.apache.org
Subject: Re: Complex Script, BIDI text supported?

 

Hi Glenn,

I've tested your git branch and the following additional issues came up:

1. fo:basic-links with internal destination don't work
2. fo:page-number references only sometimes work
3. start-indent on fo:block with a block-container child isn't taken into 
account.

Please let me know, if you want me to prepare a test case showing all three 
issues.

Best regards,
Matthias

On 31.03.2011 00:43, Glenn Adams wrote: 

Matthias,

 

I just updated my working repo git://github.com/skynavga/fop.git with fixes for 
fo:table and fo:list-block to account for RTL writing modes; i.e., table column 
progression and list-item (label and body) alignment are now RTL in RTL WM 
contexts.. 

 

In the process, I uncovered two other issues as well, which I am now working on 
along with the fo:character problem you reported:

*   fo:block-container does not align right in a RTL WM context when it 
does not use absolute or fixed positioning;
*   fo:leader is not working in a RTL WM context;

I will update you when I have fixes committed for these issues.

 

G.

 

On Wed, Mar 23, 2011 at 6:45 AM, Glenn Adams gl...@skynav.com wrote:

Thanks for uncovering these issues. Let me address them and I'll let you know 
when they are fixed in my GIT repo. Perhaps after that I can submit a new patch 
update for the SVN branch. 

 

G.. 

 

2011/3/23 Matthias Reischenbacher matthias8...@gmx.at

Glenn,

I just tested a little bit more and the following questions/problems came up:

1. Are table cells also supposed to flow from right to left in rl-tb 
writing-mode?

2. Shouldn't list-item labels be displayed on the right side?

3. fo:character seem to overlap in rl mode.

I'm attaching a new test file and the current PDF output.

Thanks,
Matthias 



On 22.03.2011 18:27, Matthias Reischenbacher wrote:


Hi Glenn,

thanks again for your help and doing all those fixes. Today I've retested my
sample file with the git branch and everything works fine now. I'll do some
more testing in the next weeks and I'll let you know if I encounter any
problems.

Are you planning to submit a new patch for the apache svn repo anytime soon?
If not, no problem. I'm just asking because I have some local modifications
in my svn working copy which I'll have to apply manually to the git working
copy.

Thanks  best regards,
Matthias


Glenn Adams-2 wrote:


Matthias,

I've fixed the fo:block-container problem as well as text-align and
treatment of writing-mode on page regions. The fixes are present in my GIT
repo I referred to earlier  (and also include all trunk commits up to this
point). To be a little more detailed:

   - the use of writing-mode=rl on simple-page-master now results in
   correct interpretation of region-start and region end; i.e.,
region-start is
   now on the right side of the page (with 0 reference orientation), and
   region-end is on the left side;
   - the erroneous (historical) mirroring around the y axis of viewports
   with writing-mode=rl, including those generated by region-* and
   block-container, has been removed;
   - both text-align and text-align-last now treat start and end as
relative
   to the writing mode, e.g., text-align=start is on the right when
   writing-mode=rl, etc.
   - if no text-align is specified, then in a writing-mode=rl context
   correctly results in right (i.e., start) alignment, while in lr start
is
   on left (assuming reference orientation of 0);

I am aware of an existing problem with text-align

Determine font names to use

2011-05-11 Thread Theresa Jayne Forster
I am slowly getting through this minefield, 

 

For the AutoReg fonts, how do we determine the names to use in the XML

I have been trying the following and am getting annoying and conflicting
results.

 

The text in the xsl is 

fo:block font-family=FrutigerNormal font-weight=normal
font-style=normal font-size=15pt text-align=left

This is supposed to be in Frutiger Normal to test the auto-detect fonts

/fo:block

 

Error is 

2011-05-11 09:01:21,837 [main] WARN  org.apache.fop.apps.FOUserAgent - Font
FrutigerNormal,normal,400 not found. Substituting with any,normal,400.

 

Next change.

 

Text in the xsl is changed to 

fo:block font-family=Frutiger font-weight=normal font-style=normal
font-size=15pt text-align=left

This is supposed to be in Frutiger Normal to test the auto-detect
fonts/fo:block

 

FOP works fine, 

 

Adobe responds however with a large bullet on the page and the popup Cannot
find or create the font 'FrutigerLight'. Some Characters may not display or
print correctly.

 

FOP log shows 

2011-05-11 09:04:11,918 [main] WARN  org.apache.fop.apps.FOUserAgent - Font
Frutiger,normal,400 not found. Substituting with Frutiger,normal,200.

 

 

Ok lets try it one more time.

fo:block font-family=Frutiger font-weight=light font-style=normal
font-size=15pt text-align=left 

This is supposed to be in Frutiger Normal to test the auto-detect fonts
/fo:block

 

Popup the same, 

 

Log the same 

2011-05-11 09:07:31,919 [main] WARN  org.apache.fop.apps.FOUserAgent - Font
Frutiger,normal,400 not found. Substituting with Frutiger,normal,200.

 

Ok that's strange its not accepting the font-weight param anymore (the old
version of Fop worked fine.)

 

Change the XSL to font-weight=200 and there is no error in the FOP logs
but still the same error on the PDF.

 

So, how do we use these fonts and how do you find the names needed to use
them properly ?

 

The fopconfig.xml is as follows.

 

renderer mime=application/pdf

fonts

directory
recursive=trueC:/Runtime/Fonts/directory

auto-detect/

/fonts

/renderer

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 mailto:ther...@inbrand.co.uk ther...@inbrand.co.uk
 http://www.inbrand.co.uk/ www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

image001.png

RE: Determine font names to use

2011-05-11 Thread Theresa Jayne Forster
Thanks for the information but I am using FOP as an api within a tomcat app so 
while it may help as a standalone thing, I was hoping to be able to get the 
actual names programmatically so that I could generate a list in the app of 
installed fonts on the JS editor.

Theresa

-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: 11 May 2011 09:37
To: fop-users@xmlgraphics.apache.org
Subject: Re: Determine font names to use

Hi Theresa,

perhaps this link can help you:
http://xmlgraphics.apache.org/fop/1.0/fonts.html#font-list


Le 11/05/2011 10:16, Theresa Jayne Forster a écrit :
 I am slowly getting through this minefield,
 
  
 
 For the AutoReg fonts, how do we determine the names to use in the XML
 
 I have been trying the following and am getting annoying and conflicting
 results.
 
  
 
 The text in the xsl is
 
 fo:block font-family=FrutigerNormal font-weight=normal
 font-style=normal font-size=15pt text-align=left
 
 This is supposed to be in Frutiger Normal to test the auto-detect fonts
 
 /fo:block
 
  
 
 Error is
 
 2011-05-11 09:01:21,837 [main] WARN  org.apache.fop.apps.FOUserAgent -
 Font FrutigerNormal,normal,400 not found. Substituting with
 any,normal,400.
 
  
 
 Next change.
 
  
 
 Text in the xsl is changed to
 
 fo:block font-family=Frutiger font-weight=normal
 font-style=normal font-size=15pt text-align=left
 
 This is supposed to be in Frutiger Normal to test the auto-detect
 fonts/fo:block
 
  
 
 FOP works fine,
 
  
 
 Adobe responds however with a large bullet on the page and the popup
 “Cannot find or create the font ‘FrutigerLight’. Some Characters may not
 display or print correctly.
 
  
 
 FOP log shows
 
 2011-05-11 09:04:11,918 [main] WARN  org.apache.fop.apps.FOUserAgent -
 Font Frutiger,normal,400 not found. Substituting with
 Frutiger,normal,200.
 
  
 
  
 
 Ok lets try it one more time…
 
 fo:block font-family=Frutiger font-weight=light font-style=normal
 font-size=15pt text-align=left
 
 This is supposed to be in Frutiger Normal to test the auto-detect fonts 
 /fo:block
 
  
 
 Popup the same,
 
  
 
 Log the same
 
 2011-05-11 09:07:31,919 [main] WARN  org.apache.fop.apps.FOUserAgent -
 Font Frutiger,normal,400 not found. Substituting with
 Frutiger,normal,200.
 
  
 
 Ok that’s strange its not accepting the font-weight param anymore (the
 old version of Fop worked fine.)
 
  
 
 Change the XSL to font-weight=”200” and there is no error in the FOP
 logs but still the same error on the PDF.
 
  
 
 So, how do we use these fonts and how do you find the names needed to
 use them properly ?
 
  
 
 The fopconfig.xml is as follows.
 
  
 
 renderer mime=application/pdf
 
 fonts
 
 directory
 recursive=trueC:/Runtime/Fonts/directory
 
 auto-detect/
 
 /fonts
 
 /renderer
 
  
 
 Kindest regards
 
  
 
 
 Theresa Forster

-- 
Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3628 - Release Date: 05/10/11



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: ExampleXML2PDF.java ERROR

2011-05-11 Thread Theresa Jayne Forster
Looks strange, I have had no problem with the latest from Trunk and the
stand alone program here  http://pastebin.com/zzQrHwwD

Except for the Font issue I am having that is. 

 

Maybe have a look at the code I have there and see where yours differs, mine
takes xml/xslt and turns it into PDF

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




From: dinuka dayarathna [mailto:dinukaonl...@gmail.com] 
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

 

(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link ExampleXML2PDF.java
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/
embedding/ExampleXML2PDF.java?view=markup . This is the application which I
had searched from a long time.

But when I build and run this application it gives me the following error.

=

FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectt
eam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectt
eam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pd
f)

Transforming...
Exception in thread main java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/ut
il/Iterator;
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:75)
at
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegistry.java:
67)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.

=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.



RE: ExampleXML2PDF.java ERROR

2011-05-11 Thread Theresa Jayne Forster
On another note I had lots of classdef not founds and discovered I needed

Avalon Framework

Xml-api-ext

Commons.configuration 

And

Xmlgraphics.commons-1.5svn.jar 

 

libraries

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




 

From: dinuka dayarathna [mailto:dinukaonl...@gmail.com] 
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

 

(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link ExampleXML2PDF.java
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/
embedding/ExampleXML2PDF.java?view=markup . This is the application which I
had searched from a long time.

But when I build and run this application it gives me the following error.

=

FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectt
eam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectt
eam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pd
f)

Transforming...
Exception in thread main java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/ut
il/Iterator;
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:75)
at
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegistry.java:
67)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.

=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.



How to get fonts loaded programatically?

2011-05-10 Thread Theresa Jayne Forster
I have been trying to get fonts to load programmatically using the latest
FOP 

To instantiate the factory I do the following

 

private static final  FopFactory fopFactory =
FopFactory.newInstance();

fopFactory.setUserConfig(new File(C:/myfiles/fopconfig.xml));

fopFactory.setTargetResolution(300);

 

then I make the Fop and use it.

 

The config file has 2 separate sections, 

1.   Fonts section as per the old system (I copied it from our old
setup) 

2.   A renderer section for PDF telling it to use autodetect.

 

But I am not seeing anything in the logs except the standard 14. and these
errors.

 

2011-05-09 16:28:06,551 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
- Font HelveticaNeue,normal,400 not found. Substituting with
any,normal,400.

2011-05-09 16:28:06,822 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
- Font AGaramond,normal,700 not found. Substituting with any,normal,700.

2011-05-09 16:28:06,824 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
- Font HelveticaNeue,normal,700 not found. Substituting with
any,normal,700.

 

Any advise would be helpful.

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 mailto:ther...@inbrand.co.uk ther...@inbrand.co.uk
 http://www.inbrand.co.uk/ www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

image001.png

RE: How to get fonts loaded programatically?

2011-05-10 Thread Theresa Jayne Forster
I guess, I was also wanting to check I was implementing it in the right way?

 

Or to make it use the fonts do I need to create an FOUserAgent rather than
just a Fop instance from the factory?

 

As there are not really any proper examples of embedding that explain the
difference between making a 

Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,out);

 

Or

FOUserAgent userAgent = fopFactory.newFOUserAgent();

Fop fop = fopFactory.newFop(MimeConstants.MIME_POSTSCRIPT, userAgent, out);

 

What is the difference between the two and what are the benefits of using a
user agent rather than just a fop?

 

 

Theresa

 

From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: 10 May 2011 09:40
To: fop-users@xmlgraphics.apache.org
Subject: Re: How to get fonts loaded programatically?

 

Hi Theresa,

 

There're two ways you can find out what you're looking for, some information
is on the FOP website http://xmlgraphics.apache.org/fop/trunk/fonts.html,
but if that fails to answer your questions I'd suggest you look through the
mailing list archives. There have been quite a few of questions regarding
fonts fairly recently, so that'll probably help you find the answers you're
looking for.

 

Hope that helps

 

Mehdi

On 10 May 2011 09:29, Theresa Jayne Forster ther...@inbrand.co.uk wrote:

I have been trying to get fonts to load programmatically using the latest
FOP 

To instantiate the factory I do the following

 

private static final  FopFactory fopFactory =
FopFactory.newInstance();

fopFactory.setUserConfig(new File(C:/myfiles/fopconfig.xml));

fopFactory.setTargetResolution(300);

 

then I make the Fop and use it.

 

The config file has 2 separate sections, 

1.   Fonts section as per the old system (I copied it from our old
setup) 

2.   A renderer section for PDF telling it to use autodetect.

 

But I am not seeing anything in the logs except the standard 14. and these
errors.

 

2011-05-09 16:28:06,551 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
- Font HelveticaNeue,normal,400 not found. Substituting with
any,normal,400.

2011-05-09 16:28:06,822 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
- Font AGaramond,normal,700 not found.. Substituting with
any,normal,700.

2011-05-09 16:28:06,824 [http-8080-1] WARN  org.apache.fop.apps.FOUserAgent
- Font HelveticaNeue,normal,700 not found. Substituting with
any,normal,700.

 

Any advise would be helpful.

 

Kindest regards

 


Theresa Forster

Senior Software Developer

ther...@inbrand.co.uk
www.inbrand.co.uk http://www.inbrand.co.uk/ 

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

 

 

  _  

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3625 - Release Date: 05/08/11

image001.png

RE: Strange problem with no error being generated

2011-05-10 Thread Theresa Jayne Forster
I thought I had posted, I discovered the issue, it was noclassdeffound
errors but tomcat was swallowing them so I wasn’t getting anywhere on debug,
however when I took the code into a stand alone app it gave me the error, I
was missing all sorts of jars that the previous version of fop I was using
(something like 0.23 modified) wasn’t needed, including xml-api-ext and
Avalon framework. 

Now I have an alternate question I am seeing this a lot in my logs, does it
mean that the font was substituted or that it has them and could be
substituted if needed?

2011-05-10 10:04:20,312 [http-8080-3] DEBUG org.apache.fop.fonts.FontInfo -
Font lookup: HelveticaNeue normal 400
2011-05-10 10:04:20,312 [http-8080-3] DEBUG org.apache.fop.fonts.FontInfo -
Font lookup: HelveticaNeue normal 400 substitutable
2011-05-10 10:04:20,312 [http-8080-3] DEBUG org.apache.fop.fonts.FontInfo -
Font lookup: HelveticaNeue normal 400
2011-05-10 10:04:20,312 [http-8080-3] DEBUG org.apache.fop.fonts.FontInfo -
Font lookup: HelveticaNeue normal 400 substitutable

Kindest regards

Theresa Forster
Senior Software Developer

ther...@inbrand.co.uk
www.inbrand.co.uk

Tel: 01483 266500



IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 


-Original Message-
From: Chris Bowditch [mailto:bowditch_ch...@hotmail.com] 
Sent: 10 May 2011 10:02
To: fop-users@xmlgraphics.apache.org
Subject: Re: Strange problem with no error being generated

On 06/05/2011 14:20, Theresa Jayne Forster wrote:

Hi Theresa,

 I have been trying to create an embedded FOP within Java, It used to 
 work with the Driver method fine,

 But its now not working and just erroring immediately as soon as it 
 hits the FopFactory.newInstance() call,

 No exception no nothing, just moves immediately to the finally clause 
 with not a peep in the logs, can anyone suggest

 What the issue might be.


No one has replied to you yet, probably because you didn't provide 
enough information. Please post a code snippet. If there is no exception 
how do you know the call to FopFactory.newInstance() fails? Does it 
return null?

Have you looked at \examples\embedding\java\embedding\ExampleFO2PDF.java?

Thanks,

Chris

 Kindest regards


 Theresa Forster

 Senior Software Developer

 ther...@inbrand.co.uk mailto:ther...@inbrand.co.uk
 www.inbrand.co.uk http://www.inbrand.co.uk/

 *Tel: 01483 266500*

 IMPORTANT NOTE: This transmission has been sent by or on behalf of In 
 Brand Software Ltd. The information in this transmission is for the 
 intended addressee only and is confidential to that intended 
 addressee. If either you know or you ought reasonably to conclude that 
 you are not, or may not be, the intended addressee, you are hereby 
 given notice that any unauthorised dissemination or copying of this 
 transmission and any disclosure or use of the information
 transmitted is strictly prohibited and may be illegal. In such 
 circumstances we ask for your assistance in notifying us immediately 
 by e-mail, telephone or letter.

 InBrand Software Ltd Registered in England No. 5131004 Registered 
 Office: The Old Barn, Ewhurst Road, Cranleigh GU6 7EF



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3625 - Release Date: 05/08/11



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Problem with Trunk - or is it

2011-05-06 Thread Theresa Jayne Forster
 

Ok, found where it is,  That was a new addition from the last time we pulled
it 

 

I needed to get the commons package as well

/me facepalms

 

From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] 
Sent: 05 May 2011 17:12
To: fop-users@xmlgraphics.apache.org
Subject: Problem with Trunk - or is it

 

Hi Guys, 

I just pulled trunk and tried to create a PDF, unfortunately it doesn't seem
to work as the org.apache.fop.apps.MimeConstants.MIME_PDF is missing along
with some of the other entries. All we now have in there is 

 

/** Apache FOP's AWT preview (non-standard MIME type) */

String MIME_FOP_AWT_PREVIEW = application/X-fop-awt-preview;

/** Apache FOP's Direct Printing (non-standard MIME type) */

String MIME_FOP_PRINT   = application/X-fop-print;

/** Apache FOP's area tree XML */

String MIME_FOP_AREA_TREE   = application/X-fop-areatree;

/** Apache FOP's intermediate format XML */

String MIME_FOP_IF  = application/X-fop-intermediate-format;

 

Is this right or is this an oversight?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

ther...@inbrand.co.uk
www.inbrand.co.uk http://www.inbrand.co.uk/ 

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3617 - Release Date: 05/05/11

image001.png

Strange problem with no error being generated

2011-05-06 Thread Theresa Jayne Forster
I have been trying to create an embedded FOP within Java, It used to work
with the Driver method fine, 

But its now not working and just erroring immediately as soon as it hits the
FopFactory.newInstance() call, 

No exception no nothing, just moves immediately to the finally clause with
not a peep in the logs, can anyone suggest

What the issue might be.

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 mailto:ther...@inbrand.co.uk ther...@inbrand.co.uk
 http://www.inbrand.co.uk/ www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

image001.png

Problem with Trunk - or is it

2011-05-05 Thread Theresa Jayne Forster
Hi Guys, 

I just pulled trunk and tried to create a PDF, unfortunately it doesn't seem
to work as the org.apache.fop.apps.MimeConstants.MIME_PDF is missing along
with some of the other entries. All we now have in there is 

 

/** Apache FOP's AWT preview (non-standard MIME type) */

String MIME_FOP_AWT_PREVIEW = application/X-fop-awt-preview;

/** Apache FOP's Direct Printing (non-standard MIME type) */

String MIME_FOP_PRINT   = application/X-fop-print;

/** Apache FOP's area tree XML */

String MIME_FOP_AREA_TREE   = application/X-fop-areatree;

/** Apache FOP's intermediate format XML */

String MIME_FOP_IF  = application/X-fop-intermediate-format;

 

Is this right or is this an oversight?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 mailto:ther...@inbrand.co.uk ther...@inbrand.co.uk
 http://www.inbrand.co.uk/ www.inbrand.co.uk

Tel: 01483 266500

 



 

IMPORTANT NOTE: This transmission has been sent by or on behalf of In Brand
Software Ltd. The information in this transmission is for the intended
addressee only and is confidential to that intended addressee. If either you
know or you ought reasonably to conclude that you are not, or may not be,
the intended addressee, you are hereby given notice that any unauthorised
dissemination or copying of this transmission and any disclosure or use of
the information
transmitted is strictly prohibited and may be illegal. In such circumstances
we ask for your assistance in notifying us immediately by e-mail, telephone
or letter.

InBrand Software Ltd Registered in England No. 5131004 Registered Office:
The Old Barn, Ewhurst Road, Cranleigh GU6 7EF 

 

image001.png