Java string error with certain ranges of right-to-left Unicode characters

2022-11-18 Thread Ethan Gruber
Hi all,

I am attempting to generate a PDF that contains characters from the
Kharoshthi Unicode set (https://en.wikipedia.org/wiki/Kharosthi).

I have downloaded the newest version of FOP and still get the same errors I
tested on earlier versions built into Oxygen XML editor.

The error starts with (I attach a full error in a text file):

java.lang.StringIndexOutOfBoundsException: index 1,length 1
at java.base/java.lang.String.checkIndex(String.java:3278)
at java.base/java.lang.StringUTF16.checkIndex(StringUTF16.java:1470)
at java.base/java.lang.StringUTF16.charAt(StringUTF16.java:1267)
at java.base/java.lang.String.charAt(String.java:695)

After doing some more testing to narrow down the error, this seems to occur
in Unicode blocks with 5 characters rather than the typical four, for
example  (Kharoshthi letter Ka), but only in right-to-left
scripts. I also tested the right-to-left 5-character Meroitic and received
the same error. But I tested the 5-character left-to-right Linear A and
Gothic, which successfully passed. Lower right-to-left Unicode blocks for
Arabic and Hebrew also passed.

I have also included an FO XML file, for reference. I appreciate any
feedback.

Thanks,
Ethan
SEVERE: Error while rendering page 1
java.lang.StringIndexOutOfBoundsException: index 1,length 1
at java.base/java.lang.String.checkIndex(String.java:3278)
at java.base/java.lang.StringUTF16.checkIndex(StringUTF16.java:1470)
at java.base/java.lang.StringUTF16.charAt(StringUTF16.java:1267)
at java.base/java.lang.String.charAt(String.java:695)
at 
org.apache.fop.util.CharUtilities.containsSurrogatePairAt(CharUtilities.java:417)
at 
org.apache.fop.render.pdf.PDFPainter.drawTextWithDX(PDFPainter.java:492)
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:444)
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:457)
at 
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1243)
at 
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1069)
at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:861)
at 
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:924)
at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:845)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:704)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:1004)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:1004)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)
at 
org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceArea(AbstractPathOrientedRenderer.java:759)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:744)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:1004)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:1004)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:1004)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)
at 
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:591)
at 
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:789)
at 
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:568)
at 
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:433)
at 
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:380)
at 
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:735)
at 
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:345)
at 
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:318)
at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:584)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage

RE: build error in fop-trunk

2020-04-06 Thread Simon Steiner
Hi,

I fixed the other failure now.

Thanks

-Original Message-
From: Simon Steiner  
Sent: 02 April 2020 12:21
To: fop-users@xmlgraphics.apache.org; jfrm.mau...@gmail.com
Subject: RE: build error in fop-trunk

Hi,

I've fixed one of your failures, the other tests were passing for me on windows.

Thanks

-Original Message-
From: jfrm.mau...@gmail.com  
Sent: 18 March 2020 17:17
To: fop-users@xmlgraphics.apache.org
Subject: Re: build error in fop-trunk


Hi Simon,

Thank you for your suggestion.

Le 18/03/2020 à 16:33, Simon Steiner a écrit :
> mvn clean install -DskipTests
This one works however as I am trying to learn I would prefer a clean build.

Regards

-- 
Jean-François MAUREL
PIMECA
http://www.pimeca.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: build error in fop-trunk

2020-04-02 Thread Simon Steiner
Hi,

I've fixed one of your failures, the other tests were passing for me on windows.

Thanks

-Original Message-
From: jfrm.mau...@gmail.com  
Sent: 18 March 2020 17:17
To: fop-users@xmlgraphics.apache.org
Subject: Re: build error in fop-trunk


Hi Simon,

Thank you for your suggestion.

Le 18/03/2020 à 16:33, Simon Steiner a écrit :
> mvn clean install -DskipTests
This one works however as I am trying to learn I would prefer a clean build.

Regards

-- 
Jean-François MAUREL
PIMECA
http://www.pimeca.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: build error in fop-trunk

2020-03-18 Thread jfrm.mau...@gmail.com



Hi Simon,

Thank you for your suggestion.

Le 18/03/2020 à 16:33, Simon Steiner a écrit :

mvn clean install -DskipTests

This one works however as I am trying to learn I would prefer a clean build.

Regards

--
Jean-François MAUREL
PIMECA
http://www.pimeca.com


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



RE: build error in fop-trunk

2020-03-18 Thread Simon Steiner
Hi,

Try:
mvn clean install -DskipTests

Thanks

-Original Message-
From: jfrm.mau...@gmail.com  
Sent: 18 March 2020 15:00
To: fop-users@xmlgraphics.apache.org
Cc: Chris Bowditch 
Subject: Re: build error in fop-trunk


Hi Chris,

Thank you for your answer.

Le 18/03/2020 à 15:18, Chris Bowditch a écrit :
> Can you share the errors you are seeing?

Sure.

I investigated a little bit more:
1- an event-model.xml was missing because ANT_HOME was not set on my 
computer if I am not mistaken.
A comment in the README file could help future users may be.
2- I suspect a problem of 'end of line' (I build on Windows 10 with java 
8) in test org.apache.fop.accessibility.fo.FO2StructureTreeConverterTestCase
3- I pasted the full report from maven build below (don't if attachment 
are allowed).

> Also don't forget FOP supports older Java versions so might need to 
> build with Java 7
  Thanks for the tip.

Regards


===
MAVEN BUILD REPORT
===
[INFO] Scanning for projects...
[INFO] 

[INFO] Reactor Build Order:
[INFO]
[INFO] Apache FOP 
Parent  [pom]
[INFO] Apache FOP 
Utilities   [jar]
[INFO] Apache FOP 
Events  [jar]
[INFO] Apache FOP 
Core[jar]
[INFO] Apache FOP 
All-In-One  [jar]
[INFO] Apache FOP 
Sandbox [jar]
[INFO] Apache FOP 
Servlet [war]
[INFO] Apache FOP 
Transcoder  [jar]
[INFO] Apache FOP Transcoder 
All-In-One   [jar]
[INFO]
[INFO] -< org.apache.xmlgraphics:fop-parent 
 >--
[INFO] Building Apache FOP Parent 
2.5.0-SNAPSHOT  [1/9]
[INFO] [ pom 
]-
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ 
fop-parent ---
[INFO] Installing D:\git\xmlgraphics-fop\pom.xml to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-parent\2.5.0-SNAPSHOT\fop-parent-2.5.0-SNAPSHOT.pom
[INFO]
[INFO] --< org.apache.xmlgraphics:fop-util 
 >---
[INFO] Building Apache FOP Utilities 
2.5.0-SNAPSHOT   [2/9]
[INFO] [ jar 
]-
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-util ---
[INFO] Deleting D:\git\xmlgraphics-fop\fop-util\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
fop-util ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\git\xmlgraphics-fop\fop-util\src\main\resources
[INFO] Copying 2 resources to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
fop-util ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to 
D:\git\xmlgraphics-fop\fop-util\target\classes
[WARNING] 
/D:/git/xmlgraphics-fop/fop-util/src/main/java/org/apache/fop/util/XMLResourceBundle.java:
 
D:\git\xmlgraphics-fop\fop-util\src\main\java\org\apache\fop\util\XMLResourceBundle.java
 
uses unchecked or unsafe operations.
[WARNING] 
/D:/git/xmlgraphics-fop/fop-util/src/main/java/org/apache/fop/util/XMLResourceBundle.java:
 
Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources 
(default-testResources) @ fop-util ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\git\xmlgraphics-fop\fop-util\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
fop-util ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ fop-util ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.1.1:jar (default-jar) @ fop-util ---
[INFO] Building jar: 
D:\git\xmlgraphics-fop\fop-util\target\fop-util-2.5.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ fop-util ---
[INFO] Installing 
D:\git\xmlgraphics-fop\fop-util\target\fop-util-2.5.0-SNAPSHOT.jar to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-util\2.5.0-SNAPSHOT\fop-util-2.5.0-SNAPSHOT.jar
[INFO] Installing D:\git\xmlgraphics-fop\fop-util\pom.xml to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-util\2.5.0-SNAPSHOT\fop-util-2.5.0-SNAPSHOT.pom
[INFO]
[INFO] -< org.apache.xmlgraphics:fop-events 
 >--
[INFO] Building Apache FOP Events 
2.5.0-SNAPSHOT  

Re: build error in fop-trunk

2020-03-18 Thread jfrm.mau...@gmail.com



Hi Chris,

Thank you for your answer.

Le 18/03/2020 à 15:18, Chris Bowditch a écrit :

Can you share the errors you are seeing?


Sure.

I investigated a little bit more:
1- an event-model.xml was missing because ANT_HOME was not set on my 
computer if I am not mistaken.

A comment in the README file could help future users may be.
2- I suspect a problem of 'end of line' (I build on Windows 10 with java 
8) in test org.apache.fop.accessibility.fo.FO2StructureTreeConverterTestCase
3- I pasted the full report from maven build below (don't if attachment 
are allowed).


Also don't forget FOP supports older Java versions so might need to 
build with Java 7

 Thanks for the tip.

Regards


===
MAVEN BUILD REPORT
===
[INFO] Scanning for projects...
[INFO] 


[INFO] Reactor Build Order:
[INFO]
[INFO] Apache FOP 
Parent  [pom]
[INFO] Apache FOP 
Utilities   [jar]
[INFO] Apache FOP 
Events  [jar]
[INFO] Apache FOP 
Core    [jar]
[INFO] Apache FOP 
All-In-One  [jar]
[INFO] Apache FOP 
Sandbox [jar]
[INFO] Apache FOP 
Servlet [war]
[INFO] Apache FOP 
Transcoder  [jar]
[INFO] Apache FOP Transcoder 
All-In-One   [jar]

[INFO]
[INFO] -< org.apache.xmlgraphics:fop-parent 
>--
[INFO] Building Apache FOP Parent 
2.5.0-SNAPSHOT  [1/9]
[INFO] [ pom 
]-

[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ 
fop-parent ---
[INFO] Installing D:\git\xmlgraphics-fop\pom.xml to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-parent\2.5.0-SNAPSHOT\fop-parent-2.5.0-SNAPSHOT.pom

[INFO]
[INFO] --< org.apache.xmlgraphics:fop-util 
>---
[INFO] Building Apache FOP Utilities 
2.5.0-SNAPSHOT   [2/9]
[INFO] [ jar 
]-

[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-util ---
[INFO] Deleting D:\git\xmlgraphics-fop\fop-util\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
fop-util ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\git\xmlgraphics-fop\fop-util\src\main\resources

[INFO] Copying 2 resources to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
fop-util ---

[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to 
D:\git\xmlgraphics-fop\fop-util\target\classes
[WARNING] 
/D:/git/xmlgraphics-fop/fop-util/src/main/java/org/apache/fop/util/XMLResourceBundle.java: 
D:\git\xmlgraphics-fop\fop-util\src\main\java\org\apache\fop\util\XMLResourceBundle.java 
uses unchecked or unsafe operations.
[WARNING] 
/D:/git/xmlgraphics-fop/fop-util/src/main/java/org/apache/fop/util/XMLResourceBundle.java: 
Recompile with -Xlint:unchecked for details.

[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources 
(default-testResources) @ fop-util ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\git\xmlgraphics-fop\fop-util\src\test\resources

[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
fop-util ---

[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ fop-util ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.1.1:jar (default-jar) @ fop-util ---
[INFO] Building jar: 
D:\git\xmlgraphics-fop\fop-util\target\fop-util-2.5.0-SNAPSHOT.jar

[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ fop-util ---
[INFO] Installing 
D:\git\xmlgraphics-fop\fop-util\target\fop-util-2.5.0-SNAPSHOT.jar to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-util\2.5.0-SNAPSHOT\fop-util-2.5.0-SNAPSHOT.jar
[INFO] Installing D:\git\xmlgraphics-fop\fop-util\pom.xml to 
C:\Users\mlamo\.m2\repository\org\apache\xmlgraphics\fop-util\2.5.0-SNAPSHOT\fop-util-2.5.0-SNAPSHOT.pom

[INFO]
[INFO] -< org.apache.xmlgraphics:fop-events 
>--
[INFO] Building Apache FOP Events 
2.5.0-SNAPSHOT  [3/9]
[INFO] [ jar 
]-

[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-events ---
[INFO] Deleting D:\git\xmlgraphics-fop\fop-events\target
[INFO]
[INFO] --- 

Re: build error in fop-trunk

2020-03-18 Thread Chris Bowditch

Hi,

Can you share the errors you are seeing? Also don't forget FOP supports 
older Java versions so might need to build with Java 7


Thanks

Chris

On 10/03/2020 19:31, jfrm.mau...@gmail.com wrote:

Hi,

I just cloned from git repository with:
git clone https://github.com/apache/xmlgraphics-fop.git

I build with:
mvn clean install

but the builds fails in the fop core task apparently from missing 
resources.


Am I doing something wrong to build fop ?

Regards

PS: I am on windows 10 if relevant




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



RE: Surrogate pair error

2020-03-11 Thread Jan Driesen
Dear Chris,

I have posted this as FOP-2918.
 
Thanks,

Jan Driesen
IT Office
Brepols Publishers NV

-Original Message-
From: Chris Bowditch  
Sent: maandag 2 maart 2020 15:49
To: fop-users@xmlgraphics.apache.org
Subject: Re: Surrogate pair error

Hi Jan,

Indeed this should work since FOP 2.3 thanks to FOP-1969. I suggest you log a 
new bug if you are able to share your XSL-FO and supporting Font files.

Thanks,

Chris

On 24/02/2020 14:05, Jan Driesen wrote:
>
> Hi,
>
> If we set the MPH 2b Damas font
> (https://fedoraproject.org/wiki/MPH_2B_Damase_fonts), we get the 
> exception from my initial email. Using fontforge, I could verify that 
> this font has a glyph for the character.
>
> If we set Segoe UI Historic
> (https://docs.microsoft.com/en-us/typography/font-list/segoe_ui_histor
> ic) as a font (it also has a glyph for this), we get a different 
> exception.
>
> Both fonts are referred to in fop.xconf
>
> A version of the FO for each font is attached to this mail.
>
> INFO: Default page-height set to: 297mm
>
> feb 24, 2020 2:59:28 PM org.apache.fop.apps.FopConfParser configure
>
> INFO: Default page-width set to: 210mm
>
> feb 24, 2020 2:59:29 PM org.apache.fop.cli.Main startFOP
>
> SEVERE: Exception
>
> org.apache.fop.apps.FOPException: ill-formed UTF-16 sequence, contains 
> isolated high surrogate at end of sequence
>
> java.lang.IllegalArgumentException: ill-formed UTF-16 sequence, 
> contains isolated high surrogate at end of sequence
>
>     at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>
>     at 
> org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
>
>     at org.apache.fop.cli.Main.startFOP(Main.java:183)
>
>     at org.apache.fop.cli.Main.main(Main.java:214)
>
> Caused by: java.lang.IllegalArgumentException: ill-formed UTF-16 
> sequence, contains isolated high surrogate at end of sequence
>
>     at
> org.apache.fop.fonts.MultiByteFont.mapCharsToGlyphs(MultiByteFont.java
> :666)
>
>     at
> org.apache.fop.fonts.MultiByteFont.charSequenceToGlyphSequence(MultiBy
> teFont.java:570)
>
>     at
> org.apache.fop.fonts.MultiByteFont.performSubstitution(MultiByteFont.j
> ava:551)
>
>     at
> org.apache.fop.fonts.LazyFont.performSubstitution(LazyFont.java:424)
>
>     at 
> org.apache.fop.fonts.Font.performSubstitution(Font.java:471)
>
>     at
> org.apache.fop.fonts.GlyphMapping.processWordMapping(GlyphMapping.java
> :141)
>
>     at
> org.apache.fop.fonts.GlyphMapping.doGlyphMapping(GlyphMapping.java:92)
>
>     at
> org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayo
> utManager.java:960)
>
>     at
> org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements
> (TextLayoutManager.java:819)
>
>     at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthEl
> ements(LineLayoutManager.java:698)
>
>     at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements
> (LineLayoutManager.java:627)
>
>     at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Block
> LayoutManager.java:141)
>
>     at
> org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElemen
> ts(BlockStackingLayoutManager.java:290)
>
>     at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Block
> LayoutManager.java:113)
>
>     at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Block
> LayoutManager.java:105)
>
>     at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLa
> youtManager.java:223)
>
>     at
> org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayout
> Manager.java:147)
>
>     at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLa
> youtManager.java:116)
>
>     at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLa
> youtManager.java:69)
>
>     at
> org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.
> java:251)
>
>     at
> org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBrea
> ker.java:770)
>
>     at
> org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java
> :178)
>
>     at
> org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java
> :158)
>
>     at
> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java
> :389)
>
>     at
> org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)
>
>     at
> org.apache.fop.layoutmgr.P

build error in fop-trunk

2020-03-10 Thread jfrm.mau...@gmail.com

Hi,

I just cloned from git repository with:
git clone https://github.com/apache/xmlgraphics-fop.git

I build with:
mvn clean install

but the builds fails in the fop core task apparently from missing resources.

Am I doing something wrong to build fop ?

Regards

PS: I am on windows 10 if relevant

--
Jean-François MAUREL
PIMECA
http://www.pimeca.com


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



Re: Surrogate pair error

2020-03-02 Thread Chris Bowditch
$FragmentContentDispatcher.dispatch(Unknown 
Source)


    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)


    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)


    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)


    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

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


    at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)


    at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)


    ... 3 more

Jan Driesen

IT Office

Brepols Publishers NV

*From:*Simon Steiner 
*Sent:* maandag 24 februari 2020 12:39
*To:* fop-users@xmlgraphics.apache.org
*Subject:* RE: Surrogate pair error

HI,

Can you set the font-family in the fo file and add a font to the 
fop.xconf?


Thanks

*From:*Jan Driesen <mailto:jan.drie...@brepols.net>>

*Sent:* 24 February 2020 11:34
*To:* fop-users@xmlgraphics.apache.org 
<mailto:fop-users@xmlgraphics.apache.org>

*Subject:* Surrogate pair error

Hi everybody,

We have a document containing the following character: Unicode 
Character 'CYPRIOT SYLLABLE RO' (U+10826)


When running fop (2.4) to render a pdf, it fails with the exception 
pasted below. Attached you can find a sample fo file that contains the 
character and produces the error.


I understand that fop 2.3 introduced support for surrogate pairs.

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure

INFO: Default page-height set to: 11.00in

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure

INFO: Default page-width set to: 8.50in

feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener 
processEvent


WARNING: Glyph "?" (0xd802) not available in font "Helvetica".

feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener 
processEvent


WARNING: Glyph "?" (0xdc26) not available in font "Helvetica".

feb 24, 2020 12:24:02 PM org.apache.fop.area.RenderPagesModel addPage

SEVERE: Error while rendering page 1

java.lang.StringIndexOutOfBoundsException: String index out of range: 1

    at java.lang.String.charAt(String.java:658)

    at 
org.apache.fop.util.CharUtilities.containsSurrogatePairAt(CharUtilities.java:417)


    at 
org.apache.fop.render.pdf.PDFPainter.drawTextWithDX(PDFPainter.java:494)


    at 
org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:436)


    at 
org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:449)


    at 
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1237)


    at 
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)


    at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:861)


    at 
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)


    at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:845)


    at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:704)


    at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)


    at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)


    at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)


    at 
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:591)


    at 
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:789)


    at 
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:568)


    at 
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:433)


    at 
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:380)


    at 
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)


    at 
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:345)


    at 
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:318)


    at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)


    at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)


    at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)


    at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:243)


    at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:147)


    at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)


    at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.

RE: Surrogate pair error

2020-02-24 Thread Jan Driesen
)
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(TransformerIdentityImpl.java:485)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
... 3 more



Jan Driesen
IT Office
Brepols Publishers NV

From: Simon Steiner 
Sent: maandag 24 februari 2020 12:39
To: fop-users@xmlgraphics.apache.org
Subject: RE: Surrogate pair error

HI,

Can you set the font-family in the fo file and add a font to the fop.xconf?

Thanks

From: Jan Driesen mailto:jan.drie...@brepols.net>>
Sent: 24 February 2020 11:34
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: Surrogate pair error

Hi everybody,


We have a document containing the following character: Unicode Character 
'CYPRIOT SYLLABLE RO' (U+10826)
When running fop (2.4) to render a pdf, it fails with the exception pasted 
below. Attached you can find a sample fo file that contains the character and 
produces the error.
I understand that fop 2.3 introduced support for surrogate pairs.

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure
INFO: Default page-height set to: 11.00in
feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure
INFO: Default page-width set to: 8.50in
feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0xd802) not available in font "Helvetica".
feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0xdc26) not available in font "Helvetica".
feb 24, 2020 12:24:02 PM org.apache.fop.area.RenderPagesModel addPage
SEVERE: Error while rendering page 1
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:658)
at 
org.apache.fop.util.CharUtilities.containsSurrogatePairAt(CharUtilities.java:417)
at 
org.apache.fop.render.pdf.PDFPainter.drawTextWithDX(PDFPainter.java:494)
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:436)
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:449)
at 
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1237)
at 
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)
at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:861)
at 
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)
at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:845)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:704)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)
at 
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:591)
at 
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:789)
at 
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:568)
at 
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:433)
at 
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:380)
at 
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
at 
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:345)
at 
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:318)
at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:243)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:147)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at org.apache.xerce

RE: Surrogate pair error

2020-02-24 Thread Simon Steiner
HI,

 

Can you set the font-family in the fo file and add a font to the fop.xconf?

 

Thanks

 

From: Jan Driesen  
Sent: 24 February 2020 11:34
To: fop-users@xmlgraphics.apache.org
Subject: Surrogate pair error

 

Hi everybody,

 

 

We have a document containing the following character: Unicode Character
'CYPRIOT SYLLABLE RO' (U+10826)

When running fop (2.4) to render a pdf, it fails with the exception pasted
below. Attached you can find a sample fo file that contains the character
and produces the error.

I understand that fop 2.3 introduced support for surrogate pairs.

 

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure

INFO: Default page-height set to: 11.00in

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure

INFO: Default page-width set to: 8.50in

feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener
processEvent

WARNING: Glyph "?" (0xd802) not available in font "Helvetica".

feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener
processEvent

WARNING: Glyph "?" (0xdc26) not available in font "Helvetica".

feb 24, 2020 12:24:02 PM org.apache.fop.area.RenderPagesModel addPage

SEVERE: Error while rendering page 1

java.lang.StringIndexOutOfBoundsException: String index out of range: 1

at java.lang.String.charAt(String.java:658)

at
org.apache.fop.util.CharUtilities.containsSurrogatePairAt(CharUtilities.java
:417)

at
org.apache.fop.render.pdf.PDFPainter.drawTextWithDX(PDFPainter.java:494)

at
org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:436)

at
org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:449)

at
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java
:1237)

at
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:106
3)

at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.jav
a:861)

at
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.ja
va:926)

at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:
845)

at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:70
4)

at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758
)

at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:99
8)

at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:68
9)

at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:591)

at
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOr
ientedRenderer.java:789)

at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.
java:568)

at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.jav
a:433)

at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer
.java:380)

at
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRendere
r.java:737)

at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java
:345)

at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:318)

at
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587
)

at
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)

at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(Abstra
ctPageSequenceLayoutManager.java:316)

at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLa
youtManager.java:243)

at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequen
ceLayoutManager.java:147)

at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267
)

at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)

at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
362)

at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)

at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1102)

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

at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown
Source)

at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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.xerce

Surrogate pair error

2020-02-24 Thread Jan Driesen
Hi everybody,


We have a document containing the following character: Unicode Character 
'CYPRIOT SYLLABLE RO' (U+10826)
When running fop (2.4) to render a pdf, it fails with the exception pasted 
below. Attached you can find a sample fo file that contains the character and 
produces the error.
I understand that fop 2.3 introduced support for surrogate pairs.

feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure
INFO: Default page-height set to: 11.00in
feb 24, 2020 12:24:00 PM org.apache.fop.apps.FopConfParser configure
INFO: Default page-width set to: 8.50in
feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0xd802) not available in font "Helvetica".
feb 24, 2020 12:24:02 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0xdc26) not available in font "Helvetica".
feb 24, 2020 12:24:02 PM org.apache.fop.area.RenderPagesModel addPage
SEVERE: Error while rendering page 1
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:658)
at 
org.apache.fop.util.CharUtilities.containsSurrogatePairAt(CharUtilities.java:417)
at 
org.apache.fop.render.pdf.PDFPainter.drawTextWithDX(PDFPainter.java:494)
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:436)
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:449)
at 
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1237)
at 
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)
at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:861)
at 
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)
at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:845)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:704)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:758)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:689)
at 
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:591)
at 
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:789)
at 
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:568)
at 
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:433)
at 
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:380)
at 
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
at 
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:345)
at 
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:318)
at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:243)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:147)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
at org.apache.fop.cli.InputH

Re: Unclear error

2019-11-19 Thread Dave Pawson
Sorry, I've been through the backups, nothing older than a couple of hours.
I'll keep trying, see if I can reproduce the error.
I think you'll agree, the error messages produced are not very helpful?

regards

On Tue, 19 Nov 2019 at 16:23, Chris  wrote:
>
> Hi Dave,
>
> fo:wrapper should be supported. Compliance page says it is, and I know
> I've used it before
>
> Thanks,
>
> Chris
>
> On 19/11/2019 16:06, Dave Pawson wrote:
> > Hi Chris... bit late?
> > I kept reducing the fo until it worked.
> >
> > I think the problem centred around fo:wrapper?
> >
> > Is that not supported (or error reported) in fop?
> >
> > regards
> >
> > On Tue, 19 Nov 2019 at 14:50, Chris  wrote:
> >> Hi Dave,
> >>
> >> Can you share your XSL-FO File? The warning you highlight seems less
> >> important than the NullPointerException being thrown.
> >>
> >> Thanks,
> >>
> >> Chris
> >>
> >> On 15/11/2019 08:52, Dave Pawson wrote:
> >>> fop 2.2 on Fedora Linux.
> >>> error is beneath message
> >>>
> >>> >From help pages.
> >>> 1. removed all keeps/breaks
> >>> 2. fo:leaders kept simple
> >>>
> >>> Basically looking for something to alter to address
> >>> "Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> "
> >>>
> >>> which seems incomplete and is of little help in searching for
> >>> a problem.
> >>>
> >>> Any suggestions please,
> >>>
> >>> tiA, Dave P
> >>>
> >>> FOP Version 2.2
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM
> >>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
> >>> WARNING: glue-type break possibility not handled properly, yet
> >>> Nov 15, 2019 8:47:33 AM org.apache.fop.cli.InputHandler e

Re: Unclear error

2019-11-19 Thread Chris
Hi Dave,

fo:wrapper should be supported. Compliance page says it is, and I know 
I've used it before

Thanks,

Chris

On 19/11/2019 16:06, Dave Pawson wrote:
> Hi Chris... bit late?
> I kept reducing the fo until it worked.
>
> I think the problem centred around fo:wrapper?
>
> Is that not supported (or error reported) in fop?
>
> regards
>
> On Tue, 19 Nov 2019 at 14:50, Chris  wrote:
>> Hi Dave,
>>
>> Can you share your XSL-FO File? The warning you highlight seems less
>> important than the NullPointerException being thrown.
>>
>> Thanks,
>>
>> Chris
>>
>> On 15/11/2019 08:52, Dave Pawson wrote:
>>> fop 2.2 on Fedora Linux.
>>> error is beneath message
>>>
>>> >From help pages.
>>> 1. removed all keeps/breaks
>>> 2. fo:leaders kept simple
>>>
>>> Basically looking for something to alter to address
>>> "Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> "
>>>
>>> which seems incomplete and is of little help in searching for
>>> a problem.
>>>
>>> Any suggestions please,
>>>
>>> tiA, Dave P
>>>
>>> FOP Version 2.2
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM
>>> org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
>>> WARNING: glue-type break possibility not handled properly, yet
>>> Nov 15, 2019 8:47:33 AM org.apache.fop.cli.InputHandler error
>>> SEVERE: javax.xml.transform.TransformerException:
>>> Nov 15, 2019 8:47:33 AM FOP startFOP
>>> SEVERE: Exception
>>> org.apache.fop.apps.FOPException: java.lang.NullPointerException
>>> javax.xml.transform.TransformerException: java.lang.NullPointerException
>>> at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>>> at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
>>> at org.apache.fop.cli.Main.startFOP(Main.java:186)
>>> at org.apache.fop.cli.Main.main(Main.java:216)
>>> Caused by: javax.xml.transform.TransformerException:
>>> java.lang.NullPointerException
>>> 

Unclear error

2019-11-15 Thread Dave Pawson
fop 2.2 on Fedora Linux.
error is beneath message

>From help pages.
1. removed all keeps/breaks
2. fo:leaders kept simple

Basically looking for something to alter to address
"Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
"

which seems incomplete and is of little help in searching for
a problem.

Any suggestions please,

tiA, Dave P

FOP Version 2.2
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM
org.apache.fop.layoutmgr.BlockStackingLayoutManager addInBetweenBreak
WARNING: glue-type break possibility not handled properly, yet
Nov 15, 2019 8:47:33 AM org.apache.fop.cli.InputHandler error
SEVERE: javax.xml.transform.TransformerException:
Nov 15, 2019 8:47:33 AM FOP startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:216)
Caused by: javax.xml.transform.TransformerException:
java.lang.NullPointerException
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:343)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
... 3 more
Caused by: java.lang.NullPointerException
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder.setBlockProgressionOffset(TextLayoutManager.java:433)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder.build(TextLayoutManager.java:392)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager$TextAreaBuilder.access$100(TextLayoutManager.java:339)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.addMappingAreas(TextLayoutManager.java:314)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.addAreas(TextLayoutManager.java:241)
at org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:113)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:367)
at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:315)
at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:701)
at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:604)
at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:599)
at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:338)
at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:458)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:141)
at org.apache.fop.area.AreaTreeHandler.en

Re: Glyph not found error on different linux kernel version

2019-03-10 Thread Yogesh Bhosale
Hi,

I figured out the issue. Auto detect relies on "File.listFiles()" java
method to get list of font files. This method returns list of files present
in specified autodetect directory. But the ordering of files is system
dependent, so if you have two files for same font which one will be picked
depends on order. Therefore with underlying kernel update, application
started picking wrong font file and henve the issue. I tackled this issue
with specifying correct font files.

Comming to latency issue, I had metrics which showed me the increase avg
latency for the application. I figured out reason for this also. FOP
creates "FontInfo" object for each renderer, it contains glyph data for the
fonts. With configuration containing both manual and autodetect font
mapping, each font file started loading up twice hence the increase in
latency.

Regards,
Yogesh

On Mon, Mar 4, 2019, 17:47 Chris  wrote:

> Hi,
>
> Auto-detect is fairly unreliable, and listing the specific fonts you
> need is recommended. What do you mean by latency increased?
>
> Thanks,
>
> Chris
>
> On 19/02/2019 08:58, Yogesh Bhosale wrote:
> > I am using apache fop 2.0 for document generation. I was using
> > auto-detect feature to detect fonts from the specified directory. This
> > directory contained two font files (.ttf, .pfb) for a same font;
> > earlier this setting used to work for me. Until I upgraded my linux
> > kernel version and It started picking wrong font file, so while
> > generating PNG document I am getting error "Glyph not found" for some
> > characters and document generated is garbled. To fix this error, I
> > added the manual font mapping to .ttf file along with auto-detect.
> > This fix worked but it caused latency to increase. Any clue on this
> > behaviour?
>
>
>


Re: Glyph not found error on different linux kernel version

2019-03-04 Thread Chris
Hi,

Auto-detect is fairly unreliable, and listing the specific fonts you 
need is recommended. What do you mean by latency increased?

Thanks,

Chris

On 19/02/2019 08:58, Yogesh Bhosale wrote:
> I am using apache fop 2.0 for document generation. I was using 
> auto-detect feature to detect fonts from the specified directory. This 
> directory contained two font files (.ttf, .pfb) for a same font; 
> earlier this setting used to work for me. Until I upgraded my linux 
> kernel version and It started picking wrong font file, so while 
> generating PNG document I am getting error "Glyph not found" for some 
> characters and document generated is garbled. To fix this error, I 
> added the manual font mapping to .ttf file along with auto-detect. 
> This fix worked but it caused latency to increase. Any clue on this 
> behaviour?




Glyph not found error on different linux kernel version

2019-02-19 Thread Yogesh Bhosale
I am using apache fop 2.0 for document generation. I was using auto-detect
feature to detect fonts from the specified directory. This directory
contained two font files (.ttf, .pfb) for a same font; earlier this setting
used to work for me. Until I upgraded my linux kernel version and It
started picking wrong font file, so while generating PNG document I am
getting error "Glyph not found" for some characters and document generated
is garbled. To fix this error, I added the manual font mapping to .ttf file
along with auto-detect. This fix worked but it caused latency to increase.
Any clue on this behaviour?


Re: Strange error with the first word in figure and table titles

2018-11-22 Thread Bernhard Kleine
Thanks Luca for the insight, changing the glyph in the customization
layer has done it.

Gratefully Bernhard

Am 21.11.2018 um 20:39 schrieb Luca Bellonda:
> Hello, between the words Tabelle and Spanner there is an unicode
> spacing (see attached screenshot). I guess that FOP looks for a font
> that contains the character, finding it in Times as second choice,
> using it for the whole word; the next word returns to the default font.
> If so, it is not a bug, but the expected behavior, I think.
> Loot at https://xmlgraphics.apache.org/fop/2.0/fonts.html  -> Font
> Selection Strategies
>
> Try using a regular space or a non breaking space.
>
> Best regards.
>
> Il giorno mer 21 nov 2018 alle ore 15:33 Bernhard Kleine
> mailto:bernhard.kle...@gmx.net>> ha scritto:
>
> any idea?
>
> Am 21.11.2018 um 13:12 schrieb Bernhard Kleine:
>>
>> I hope this fragment shows enough. There seems to be no reason
>> that "Tabelle Spanner im Visier des Fotografen" should not be in
>> Alegreya, however as you see in the pdf "Spanner" is in Times
>> Roman. If you need also the customization layer I could provide it.
>>
>> Bernhard
>>
>> > keep-together.within-column="always" margin-left="0pt"
>> font-family="Alegreya, Tahoma, Batang,
>> sans-serif,Symbol,ZapfDingbats">> keep-with-next.within-column="always">> font-family="Alegreya, Tahoma, Batang,
>> sans-serif,Symbol,ZapfDingbats" font-weight="bold"
>> keep-with-next.within-column="always"
>> space-before.minimum="0.8em" space-before.optimum="1.0em"
>> space-before.maximum="1.2em" text-align="start"
>> start-indent="0pt">> marker-class-name="section.head.marker">Allgemeine Bemerkungen
>> Allgemeine
>> Bemerkungen
>> 
>> > space-before.optimum="1em" space-before.minimum="0.8em"
>> space-before.maximum="1.2em">Der deutsche Name dieser Falterfamilie
>>     > space-before.optimum="1em" space-before.maximum="2em"
>> space-after.minimum="0.5em" space-after.optimum="1em"
>> space-after.maximum="2em" keep-together.within-column="auto"
>> id="d0e14">> space-before.minimum="0.8em" space-before.maximum="1.2em"
>> font-weight="bold" font-size="15.6pt" hyphenate="false"
>> space-after.minimum="0.4em" space-after.optimum="0.6em"
>> space-after.maximum="0.8em"
>> keep-with-next.within-column="always">Tabelle Spanner im Visier
>> des Fotografen.> border-before-width.conditionality="retain"
>> border-collapse="collapse" border-start-style="none"
>> border-end-style="none" border-top-style="none"
>> border-bottom-style="none" table-layout="fixed"
>> width="100%">> column-width="proportional-column-width(1.00)"/>> column-number="2"
>> column-width="proportional-column-width(1.00)"/>> start-indent="0pt" end-indent="0pt">> keep-with-next.within-column="always">> padding-start="2pt" padding-end="2pt" padding-top="2pt"
>> padding-bottom="2pt" text-align="center">> font-weight="bold">Unterfamilie> padding-start="2pt" padding-end="2pt" padding-top="2pt"
>> padding-bottom="2pt" text-align="center">> font-weight="bold">in Baden-Württemberg
>> 
>> > start-indent="0pt" end-indent="0pt">> padding-start="2pt" padding-end="2pt" padding-top="2pt"
>> padding-bottom="2pt"
>> 
>> text-align="left">Archiearinae> padding-start="2pt" padding-end="2pt" padding-top="2pt"
>> padding-bottom="2pt"
>> 
>> text-align="right">2
>>
>> Am 21.11.2018 um 12:23 schrieb Matthias Reischenbacher:
>>>
>>> Hi Bernhard,
>>>
>>> you'll have to provide a XSL-FO fragment, so that we can help
>>> you. Probably you'll see what the problem is, as soon as you
>>> examine 

Re: Strange error with the first word in figure and table titles

2018-11-21 Thread Luca Bellonda
Hello, between the words Tabelle and Spanner there is an unicode spacing
(see attached screenshot). I guess that FOP looks for a font that contains
the character, finding it in Times as second choice,
using it for the whole word; the next word returns to the default font.
If so, it is not a bug, but the expected behavior, I think.
Loot at https://xmlgraphics.apache.org/fop/2.0/fonts.html  -> Font
Selection Strategies

Try using a regular space or a non breaking space.

Best regards.

Il giorno mer 21 nov 2018 alle ore 15:33 Bernhard Kleine <
bernhard.kle...@gmx.net> ha scritto:

> any idea?
> Am 21.11.2018 um 13:12 schrieb Bernhard Kleine:
>
> I hope this fragment shows enough. There seems to be no reason that
> "Tabelle Spanner im Visier des Fotografen" should not be in Alegreya,
> however as you see in the pdf "Spanner" is in Times Roman. If you need also
> the customization layer I could provide it.
>
> Bernhard
>
>  keep-together.within-column="always" margin-left="0pt"
> font-family="Alegreya, Tahoma, Batang,
> sans-serif,Symbol,ZapfDingbats"> keep-with-next.within-column="always"> keep-with-next.within-column="always" space-before.minimum="0.8em"
> space-before.optimum="1.0em" space-before.maximum="1.2em"
> text-align="start" start-indent="0pt"> marker-class-name="section.head.marker">Allgemeine Bemerkungen
> Allgemeine
> Bemerkungen
>  space-before.optimum="1em" space-before.minimum="0.8em"
> space-before.maximum="1.2em">Der deutsche Name dieser Falterfamilie
>  space-before.optimum="1em" space-before.maximum="2em"
> space-after.minimum="0.5em" space-after.optimum="1em"
> space-after.maximum="2em" keep-together.within-column="auto"
> id="d0e14"> space-before.minimum="0.8em" space-before.maximum="1.2em"
> font-weight="bold" font-size="15.6pt" hyphenate="false"
> space-after.minimum="0.4em" space-after.optimum="0.6em"
> space-after.maximum="0.8em" keep-with-next.within-column="always">Tabelle 
> Spanner
> im Visier des Fotografen. border-before-width.conditionality="retain" border-collapse="collapse"
> border-start-style="none" border-end-style="none" border-top-style="none"
> border-bottom-style="none" table-layout="fixed"
> width="100%"> column-width="proportional-column-width(1.00)"/> column-number="2"
> column-width="proportional-column-width(1.00)"/> start-indent="0pt" end-indent="0pt"> keep-with-next.within-column="always"> padding-end="2pt" padding-top="2pt" padding-bottom="2pt"
> text-align="center"> font-weight="bold">Unterfamilie padding-start="2pt" padding-end="2pt" padding-top="2pt"
> padding-bottom="2pt" text-align="center">in
> Baden-Württemberg
>  start-indent="0pt" end-indent="0pt"> padding-start="2pt" padding-end="2pt" padding-top="2pt"
> padding-bottom="2pt"
> text-align="left">Archiearinae padding-start="2pt" padding-end="2pt" padding-top="2pt"
> padding-bottom="2pt"
> text-align="right">2
> Am 21.11.2018 um 12:23 schrieb Matthias Reischenbacher:
>
> Hi Bernhard,
>
> you'll have to provide a XSL-FO fragment, so that we can help you.
> Probably you'll see what the problem is, as soon as you examine it
> yourself. Unfortunately I don't know, how the XSL-FO fragment can be dumped
> with Oxygen before it is converted to PDF.
>
> Best regards,
>
> Matthias
>
> On 21.11.2018 05:07, Bernhard Kleine wrote:
>
> Hi, (my first contribution)
>
> using docbook 5.1 with oxygen 20.1  for a book I happened to meet a
> strange error. The font for the entire work is Alagreya, however, the first
> word of figure and table captions are in Times Roman. As Bob Stayton
> confirmed, there is not any mentioning of Times Roman in the xml I wrote,
> nor in the customization I adapted. It is only this first word. Bob thinks
> this is an error with FOP. Where do I report such errors?
>
> Thanks for reading.
>
> Greetings from the Black Forest
>
> Bernhard
>
> --
> spitzhalde9
> D-79853 lenzkirchbernhard.kle...@gmx.netwww.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>
>
> --
> spitzhalde9
> D-79853 lenzkirchbernhard.kle...@gmx.netwww.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>
> --
> spitzhalde9
> D-79853 lenzkirchbernhard.kle...@gmx.netwww.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>
>

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

Re: Strange error with the first word in figure and table titles

2018-11-21 Thread Bernhard Kleine
any idea?

Am 21.11.2018 um 13:12 schrieb Bernhard Kleine:
>
> I hope this fragment shows enough. There seems to be no reason that
> "Tabelle Spanner im Visier des Fotografen" should not be in Alegreya,
> however as you see in the pdf "Spanner" is in Times Roman. If you need
> also the customization layer I could provide it.
>
> Bernhard
>
>  keep-together.within-column="always" margin-left="0pt"
> font-family="Alegreya, Tahoma, Batang,
> sans-serif,Symbol,ZapfDingbats"> keep-with-next.within-column="always"> keep-with-next.within-column="always" space-before.minimum="0.8em"
> space-before.optimum="1.0em" space-before.maximum="1.2em"
> text-align="start" start-indent="0pt"> marker-class-name="section.head.marker">Allgemeine Bemerkungen
> Allgemeine
> Bemerkungen
>  space-before.optimum="1em" space-before.minimum="0.8em"
> space-before.maximum="1.2em">Der deutsche Name dieser Falterfamilie
>      space-before.optimum="1em" space-before.maximum="2em"
> space-after.minimum="0.5em" space-after.optimum="1em"
> space-after.maximum="2em" keep-together.within-column="auto"
> id="d0e14"> space-before.minimum="0.8em" space-before.maximum="1.2em"
> font-weight="bold" font-size="15.6pt" hyphenate="false"
> space-after.minimum="0.4em" space-after.optimum="0.6em"
> space-after.maximum="0.8em"
> keep-with-next.within-column="always">Tabelle Spanner im Visier des
> Fotografen. border-before-width.conditionality="retain" border-collapse="collapse"
> border-start-style="none" border-end-style="none"
> border-top-style="none" border-bottom-style="none"
> table-layout="fixed" width="100%"> column-width="proportional-column-width(1.00)"/> column-number="2"
> column-width="proportional-column-width(1.00)"/> start-indent="0pt" end-indent="0pt"> keep-with-next.within-column="always"> padding-start="2pt" padding-end="2pt" padding-top="2pt"
> padding-bottom="2pt" text-align="center"> font-weight="bold">Unterfamilie padding-start="2pt" padding-end="2pt" padding-top="2pt"
> padding-bottom="2pt" text-align="center"> font-weight="bold">in Baden-Württemberg
>  start-indent="0pt" end-indent="0pt"> padding-start="2pt" padding-end="2pt" padding-top="2pt"
> padding-bottom="2pt"
> text-align="left">Archiearinae padding-start="2pt" padding-end="2pt" padding-top="2pt"
> padding-bottom="2pt"
> text-align="right">2
>
> Am 21.11.2018 um 12:23 schrieb Matthias Reischenbacher:
>>
>> Hi Bernhard,
>>
>> you'll have to provide a XSL-FO fragment, so that we can help you.
>> Probably you'll see what the problem is, as soon as you examine it
>> yourself. Unfortunately I don't know, how the XSL-FO fragment can be
>> dumped with Oxygen before it is converted to PDF.
>>
>> Best regards,
>>
>> Matthias
>>
>>
>> On 21.11.2018 05:07, Bernhard Kleine wrote:
>>>
>>> Hi, (my first contribution)
>>>
>>> using docbook 5.1 with oxygen 20.1  for a book I happened to meet a
>>> strange error. The font for the entire work is Alagreya, however,
>>> the first word of figure and table captions are in Times Roman. As
>>> Bob Stayton confirmed, there is not any mentioning of Times Roman in
>>> the xml I wrote, nor in the customization I adapted. It is only this
>>> first word. Bob thinks this is an error with FOP. Where do I report
>>> such errors?
>>>
>>> Thanks for reading.
>>>
>>> Greetings from the Black Forest
>>>
>>> Bernhard
>>>
>>> -- 
>>> spitzhalde9
>>> D-79853 lenzkirch
>>> bernhard.kle...@gmx.net
>>> www.b-kleine.com, www.urseetal.net
>>> -
>>> thunderbird mit enigmail
>>> GPG schlüssel: D5257409
>>> fingerprint:
>>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>>
> -- 
> spitzhalde9
> D-79853 lenzkirch
> bernhard.kle...@gmx.net
> www.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



signature.asc
Description: OpenPGP digital signature


Re: Strange error with the first word in figure and table titles

2018-11-21 Thread Matthias Reischenbacher
Hi Bernhard,

you'll have to provide a XSL-FO fragment, so that we can help you.
Probably you'll see what the problem is, as soon as you examine it
yourself. Unfortunately I don't know, how the XSL-FO fragment can be
dumped with Oxygen before it is converted to PDF.

Best regards,

Matthias


On 21.11.2018 05:07, Bernhard Kleine wrote:
>
> Hi, (my first contribution)
>
> using docbook 5.1 with oxygen 20.1  for a book I happened to meet a
> strange error. The font for the entire work is Alagreya, however, the
> first word of figure and table captions are in Times Roman. As Bob
> Stayton confirmed, there is not any mentioning of Times Roman in the
> xml I wrote, nor in the customization I adapted. It is only this first
> word. Bob thinks this is an error with FOP. Where do I report such errors?
>
> Thanks for reading.
>
> Greetings from the Black Forest
>
> Bernhard
>
> -- 
> spitzhalde9
> D-79853 lenzkirch
> bernhard.kle...@gmx.net
> www.b-kleine.com, www.urseetal.net
> -
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



Strange error with the first word in figure and table titles

2018-11-21 Thread Bernhard Kleine
Hi, (my first contribution)

using docbook 5.1 with oxygen 20.1  for a book I happened to meet a
strange error. The font for the entire work is Alagreya, however, the
first word of figure and table captions are in Times Roman. As Bob
Stayton confirmed, there is not any mentioning of Times Roman in the xml
I wrote, nor in the customization I adapted. It is only this first word.
Bob thinks this is an error with FOP. Where do I report such errors?

Thanks for reading.

Greetings from the Black Forest

Bernhard

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



signature.asc
Description: OpenPGP digital signature


FOP ERROR forcing opt to max in LengthRange

2018-10-01 Thread Alex Muir
Greetings,

I've googled for the error below that I'm getting when running a
transformation using dita 2.0.1 plugin however I get no results

System ID: /mnt/3diplugin/TV SQUARED /Attribution
API/source/180620-TVS-Attribution-API-Guide.ditamap
Scenario: 180620-TVS-Attribution-API-Guide (docdept-pdf)1
Input file: /mnt/3diplugin/TV SQUARED /Attribution
API/source/180620-TVS-Attribution-API-Guide.ditamap
Engine name: FOP
Severity: error
Description: forcing opt to max in LengthRange


I also did the following search with no results. perhaps I'm searching in
the wrong place.
/usr/local/Oxygen XML Editor 20$ sudo grep --include="*.*" -nRHI
LengthRange *

Any ideas on what causes this exception?

Regards
Alex
*https://www.linkedin.com/in/alexgmuir/
<https://www.linkedin.com/in/alexgmuir/>*


RE: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

2018-03-16 Thread Simon Steiner
Hi,

 

I could get round this by using in the fopservlet, but I think it’s a
security issue allowing filesystem access from tomcat

 

public Resource getResource(URI uri) throws IOException {

if (uri.toASCIIString().startsWith("file:")) {

return new Resource(new FileInputStream(uri.getPath()));

}

return new
Resource(getServletContext().getResourceAsStream(uri.toASCIIString()));

}

Thanks

 

From: Graeme Wellington
[mailto:graeme.welling...@ptbuildingsolutions.com.au] 
Sent: 16 March 2018 00:12
To: fop-users@xmlgraphics.apache.org
Subject: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

 

More info…

 

I have several servlets and FOs to test the various combinations:

http://localhost:8080/fop/fop?fo=C:/temp/readme.fo   ; works OK

http://localhost:8080/fop/fop?fo=C:/temp/readmeX.fo ; fails

http://localhost:8080/fop/fopX?fo=C:/temp/readmeX.fo ; fails

http://localhost:8080/fop/fopZ?fo=C:/temp/readmeX.fo ; fails

 

FopServlet.java ; as distributed

FopServletX.java  ; attempt to read custom configuration fop.xml

FopServletZ.java  ; attempt to read custom configuration fop.xml
/ custom Resolver

 

Readme.fo ; as distributed – works with:
http://localhost:8080/fop/fop?fo=C:/temp/readme.fo

ReadmeX.fo   ; external-graphic included

 

Fop.xml; as distributed with base = “.”

 

The batch command generates the PDF successfully (attached):-

"C:\fop-2.2\fop\fop.bat" -fo=C:/temp/readmeX.fo -pdf
"C:/temp/FOP-ReadmeX-fo.pdf"  > glw-FO.txt 2>&1

 

 

Regards

 

Graeme Wellington

Pro-Time Building Solutions Pty Ltd

178 Martin Road WALL FLAT SA 5254

Mobile: 0419 808 473

Email:  <mailto:graeme.welling...@ptbuildingsolutions.com.au>
graeme.welling...@ptbuildingsolutions.com.au

 



 

From: Robert Meyer <rme...@hotmail.co.uk <mailto:rme...@hotmail.co.uk> > 
Sent: Thursday, March 15, 2018 5:58 AM
To: fop-users@xmlgraphics.apache.org
<mailto:fop-users@xmlgraphics.apache.org> 
Subject: Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

 

It's been a while, but shouldn't it throw a nicer message than an NPE? Maybe
something like "Oh, hello. We see you've not entered a path standard URI
format. Instead you've entered ''. Please check and try again".

 

Then again, FOP's never been that user friendly! I might look into it
myself.

 

Robert

  _  

From: Szeak (Register Man) <szea...@gmail.com <mailto:szea...@gmail.com> >
Sent: 14 March 2018 13:36
To: fop-users@xmlgraphics.apache.org
<mailto:fop-users@xmlgraphics.apache.org> 
Subject: Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics 

 

Hi,

FOP from version 2 using standard URI format for pathes.
So you need to set the pathes in this format also in your FOP config and in
FO.
Ie.: /C/Temp/tomcat.gif or ///C/Temp/tomcat.gif

Best regards, Szeak

2018-03-14 03:12 keltezéssel, Graeme Wellington írta:

Hi

 

I have just migrated to FOP 2.2 - I am using apache-tomcat-8.5.29 / Java 1.8

 

I am using a FOP servlet to render PDF form XML data source.

 

I have a basic example that works on FOP 1.1 but not FOP 2.2

 

http://localhost:8080/fop/fopZ?fo=C:/temp/readme.fo

 

The readme.fo comes with the FOP distribution.

 

Without change the servlet works ok and I get a PDF.

 

When I try and add 1 line to include an image I get SEVERE error as below.

 

I have tried various permutations if the following lines separately but no
luck :

 



OR

  

OR

  

…

 

I have loaded the tomcat.gif at the various locations to match.

 

However I do not think it is getting that far.

 

I have a customised configuration file and have set the base as follows:

 

./ 

 

 

Can anyone help?

 

 

Mar 14, 2018 12:06:34 PM org.apache.catalina.core.StandardWrapperValve
invoke

SEVERE: Servlet.service() for servlet [FopZ] in context with path [/fop]
threw exception [javax.xml.transform.TransformerException:
java.lang.NullPointerException] with root cause

java.lang.NullPointerException

at
java.io.FilterInputStream.markSupported(FilterInputStream.java:243)

at
org.apache.xmlgraphics.image.loader.util.ImageUtil.decorateMarkSupported(Ima
geUtil.java:213)

at
org.apache.xmlgraphics.image.loader.util.ImageUtil.autoDecorateInputStream(I
mageUtil.java:228)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createI
mageSource(AbstractImageSessionContext.java:373)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.access$
100(AbstractImageSessionContext.java:53)

at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSe

RE: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

2018-03-15 Thread Graeme Wellington
HI

Made those changes to relevant servlet and xsl etc. but no luck.

I will send more details in next post.

Regards

Graeme Wellington
Pro-Time Building Solutions Pty Ltd
178 Martin Road WALL FLAT SA 5254
Mobile: 0419 808 473
Email: 
graeme.welling...@ptbuildingsolutions.com.au<mailto:graeme.welling...@ptbuildingsolutions.com.au>

[PTBSX-Logo]

From: Szeak (Register Man) <szea...@gmail.com>
Sent: Thursday, March 15, 2018 12:07 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

Hi,

FOP from version 2 using standard URI format for pathes.
So you need to set the pathes in this format also in your FOP config and in FO.
Ie.: /C/Temp/tomcat.gif or ///C/Temp/tomcat.gif

Best regards, Szeak

2018-03-14 03:12 keltezéssel, Graeme Wellington írta:
Hi

I have just migrated to FOP 2.2 - I am using apache-tomcat-8.5.29 / Java 1.8

I am using a FOP servlet to render PDF form XML data source.

I have a basic example that works on FOP 1.1 but not FOP 2.2

http://localhost:8080/fop/fopZ?fo=C:/temp/readme.fo

The readme.fo comes with the FOP distribution.

Without change the servlet works ok and I get a PDF.

When I try and add 1 line to include an image I get SEVERE error as below.

I have tried various permutations if the following lines separately but no luck 
:


OR

OR

…

I have loaded the tomcat.gif at the various locations to match.

However I do not think it is getting that far.

I have a customised configuration file and have set the base as follows:

./


Can anyone help?


Mar 14, 2018 12:06:34 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [FopZ] in context with path [/fop] threw 
exception [javax.xml.transform.TransformerException: 
java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at 
java.io.FilterInputStream.markSupported(FilterInputStream.java:243)
at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.decorateMarkSupported(ImageUtil.java:213)
at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.autoDecorateInputStream(ImageUtil.java:228)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createImageSource(AbstractImageSessionContext.java:373)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.access$100(AbstractImageSessionContext.java:53)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext$UnrestrictedFallbackResolver.createSource(AbstractImageSessionContext.java:364)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.newSource(AbstractImageSessionContext.java:94)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSource(AbstractImageSessionContext.java:191)
at 
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:123)
at 
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
at 
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
at org.apache.fop.fo.FObj.processNode(FObj.java:126)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:208)
at 
com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:281)
at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:247)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configurat

Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

2018-03-14 Thread Robert Meyer
It's been a while, but shouldn't it throw a nicer message than an NPE? Maybe 
something like "Oh, hello. We see you've not entered a path standard URI 
format. Instead you've entered ''. Please check and try again".

Then again, FOP's never been that user friendly! I might look into it myself.

Robert

From: Szeak (Register Man) <szea...@gmail.com>
Sent: 14 March 2018 13:36
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

Hi,

FOP from version 2 using standard URI format for pathes.
So you need to set the pathes in this format also in your FOP config and in FO.
Ie.: /C/Temp/tomcat.gif or ///C/Temp/tomcat.gif

Best regards, Szeak

2018-03-14 03:12 keltezéssel, Graeme Wellington írta:

Hi



I have just migrated to FOP 2.2 - I am using apache-tomcat-8.5.29 / Java 1.8



I am using a FOP servlet to render PDF form XML data source.



I have a basic example that works on FOP 1.1 but not FOP 2.2



http://localhost:8080/fop/fopZ?fo=C:/temp/readme.fo



The readme.fo comes with the FOP distribution.



Without change the servlet works ok and I get a PDF.



When I try and add 1 line to include an image I get SEVERE error as below.



I have tried various permutations if the following lines separately but no luck 
:





OR



OR



…



I have loaded the tomcat.gif at the various locations to match.



However I do not think it is getting that far.



I have a customised configuration file and have set the base as follows:



./





Can anyone help?





Mar 14, 2018 12:06:34 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [FopZ] in context with path [/fop] threw 
exception [javax.xml.transform.TransformerException: 
java.lang.NullPointerException] with root cause

java.lang.NullPointerException

at 
java.io.FilterInputStream.markSupported(FilterInputStream.java:243)

at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.decorateMarkSupported(ImageUtil.java:213)

at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.autoDecorateInputStream(ImageUtil.java:228)

at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createImageSource(AbstractImageSessionContext.java:373)

at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.access$100(AbstractImageSessionContext.java:53)

at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext$UnrestrictedFallbackResolver.createSource(AbstractImageSessionContext.java:364)

at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.newSource(AbstractImageSessionContext.java:94)

at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSource(AbstractImageSessionContext.java:191)

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

at 
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)

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

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

at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)

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

at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:208)

at 
com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:281)

at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:247)

at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)

at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)

at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)

at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)

at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Config

Re: FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

2018-03-14 Thread Szeak (Register Man)

  
  
Hi,
  
  FOP from version 2 using standard URI format for pathes.
  So you need to set the pathes in this format also in your FOP
  config and in FO.
  Ie.: /C/Temp/tomcat.gif or ///C/Temp/tomcat.gif
  
  Best regards, Szeak
  
  2018-03-14 03:12 keltezéssel, Graeme Wellington írta:


  
  
  
  
  
Hi
 
I have just migrated to FOP 2.2 - I am
  using apache-tomcat-8.5.29 / Java 1.8
 
I am using a FOP servlet to render PDF form
  XML data source.
 
I have a basic example that works on FOP
  1.1 but not FOP 2.2
 
http://localhost:8080/fop/fopZ?fo=C:/temp/readme.fo
 
The readme.fo comes with the FOP
  distribution.
 
Without change the servlet works ok and I
  get a PDF.
 
When I try and add 1 line to include an
  image I get SEVERE error as below.
 
I have tried various permutations if the
  following lines separately but no luck :
 

OR
      
    OR
      
    …
 
I have loaded the tomcat.gif at the various
  locations to match.
 
However I do not think it is getting that
  far.
 
I have a customised configuration file and
  have set the base as follows:
 
./ 
 
 
Can anyone help?
 
 
Mar 14, 2018 12:06:34 PM
  org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet
  [FopZ] in context with path [/fop] threw exception
  [javax.xml.transform.TransformerException:
  java.lang.NullPointerException] with root cause
java.lang.NullPointerException
    at
  java.io.FilterInputStream.markSupported(FilterInputStream.java:243)
    at
org.apache.xmlgraphics.image.loader.util.ImageUtil.decorateMarkSupported(ImageUtil.java:213)
    at
org.apache.xmlgraphics.image.loader.util.ImageUtil.autoDecorateInputStream(ImageUtil.java:228)
    at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createImageSource(AbstractImageSessionContext.java:373)
    at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.access$100(AbstractImageSessionContext.java:53)
    at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext$UnrestrictedFallbackResolver.createSource(AbstractImageSessionContext.java:364)
    at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.newSource(AbstractImageSessionContext.java:94)
    at
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSource(AbstractImageSessionContext.java:191)
    at
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:123)
    at
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
    at
  org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
    at
  org.apache.fop.fo.FObj.processNode(FObj.java:126)
    at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
    at
  org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
    at
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:208)
    at
com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:281)
    at
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:247)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112

FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

2018-03-14 Thread Graeme Wellington
Hi

I have just migrated to FOP 2.2 - I am using apache-tomcat-8.5.29 / Java 1.8

I am using a FOP servlet to render PDF form XML data source.

I have a basic example that works on FOP 1.1 but not FOP 2.2

http://localhost:8080/fop/fopZ?fo=C:/temp/readme.fo

The readme.fo comes with the FOP distribution.

Without change the servlet works ok and I get a PDF.

When I try and add 1 line to include an image I get SEVERE error as below.

I have tried various permutations if the following lines separately but no luck 
:


OR

OR

...

I have loaded the tomcat.gif at the various locations to match.

However I do not think it is getting that far.

I have a customised configuration file and have set the base as follows:

./


Can anyone help?


Mar 14, 2018 12:06:34 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [FopZ] in context with path [/fop] threw 
exception [javax.xml.transform.TransformerException: 
java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at 
java.io.FilterInputStream.markSupported(FilterInputStream.java:243)
at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.decorateMarkSupported(ImageUtil.java:213)
at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.autoDecorateInputStream(ImageUtil.java:228)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createImageSource(AbstractImageSessionContext.java:373)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.access$100(AbstractImageSessionContext.java:53)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext$UnrestrictedFallbackResolver.createSource(AbstractImageSessionContext.java:364)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.newSource(AbstractImageSessionContext.java:94)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSource(AbstractImageSessionContext.java:191)
at 
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:123)
at 
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
at 
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
at org.apache.fop.fo.FObj.processNode(FObj.java:126)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:208)
at 
com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:281)
at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:247)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:641)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
at 
org.apache.fop.servlet.FopServletZ.render(FopServletZ.java:293)
at 
org.apache.fop.servlet.FopServletZ.renderFO(FopServletZ.java:232

FOP 1.1 to 2.2 Migration - SEVERE Error with External Graphics

2018-03-13 Thread Graeme Wellington
Hi

I have just migrated to FOP 2.2 - I am using apache-tomcat-8.5.29 / Java 1.8

I am using a FOP servlet to render PDF form XML data source.

I have a basic example that works on FOP 1.1 but not FOP 2.2

http://localhost:8080/fop/fopZ?fo=C:/temp/readme.fo

The readme.fo comes with the FOP distribution.

Without change the servlet works ok and I get a PDF.

When I try and add 1 line to include an image I get SEVERE error as below.

I have tried various permutations if the following lines separately but no luck 
:


OR

OR

...

I have loaded the tomcat.gif at the various locations to match.

However I do not think it is getting that far.

I have a customised configuration file and have set the base as follows:

./


Can anyone help?


Mar 14, 2018 12:06:34 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [FopZ] in context with path [/fop] threw 
exception [javax.xml.transform.TransformerException: 
java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at 
java.io.FilterInputStream.markSupported(FilterInputStream.java:243)
at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.decorateMarkSupported(ImageUtil.java:213)
at 
org.apache.xmlgraphics.image.loader.util.ImageUtil.autoDecorateInputStream(ImageUtil.java:228)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createImageSource(AbstractImageSessionContext.java:373)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.access$100(AbstractImageSessionContext.java:53)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext$UnrestrictedFallbackResolver.createSource(AbstractImageSessionContext.java:364)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.newSource(AbstractImageSessionContext.java:94)
at 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.needSource(AbstractImageSessionContext.java:191)
at 
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:123)
at 
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123)
at 
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
at org.apache.fop.fo.FObj.processNode(FObj.java:126)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:208)
at 
com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:281)
at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:247)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:641)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
at 
org.apache.fop.servlet.FopServletZ.render(FopServletZ.java:293)
at 
org.apache.fop.servlet.FopServletZ.renderFO(FopServletZ.java:232

Re: Error trying to create PDF with accessibility

2017-11-08 Thread Esteban R
I don't think so: the same .fo works fine when accessibility is disabled. 
Anyways I have renamed it and I could open it in Chrome without any errors.


Esteban



De: Szeak (Register Man) <szea...@gmail.com>
Enviado: miércoles, 08 de noviembre de 2017 01:11 p.m.
Para: fop-users@xmlgraphics.apache.org
Asunto: Re: Error trying to create PDF with accessibility

Hi Esteban,

It seems like an XML parsing error. Have you checked your FO file is 
well-formed? (Rename extension to XML and Open it in a browser ie: firefox or 
chrome)

By, Szeak

2017-11-08 00:13 keltezéssel, Esteban R írta:

Hello I'm working in a quite complex java (1.8.0_112) project, using apache-fop 
2.2. Windows 10 OS.


It seems that the  tag is ignored in the xconf file so I had to 
enable it programatically.


After that, I get the following exception when rendering pdf with accessibility 
enabled:

java.lang.NullPointerException
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:422)
at 
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1236)
at 
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)
at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:701)
at 
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)
at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:690)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:572)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
at 
org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)
at 
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)
at 
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
at 
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)
at 
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)
at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
at 
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)
   ... (my classes)
nov 07, 2017 7:54:38 PM org.apache.fop.fo.FOTreeBuilder fatalError
GRAVE: org.xml.sax.SAXParseException; systemId: 
file:///C:/Users/complete_file_name.fo; lineNumber: 160; columnNumber: 82; 
java.lang.NullPointerException

The above-mentioned line 160 is:

  



Maybe I'm missing something? I may try to create a full example if needed.


Esteban


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


Re: Error trying to create PDF with accessibility

2017-11-08 Thread Szeak (Register Man)

  
  
Hi Esteban,
  
  It seems like an XML parsing error. Have you checked your FO file
  is well-formed? (Rename extension to XML and Open it in a browser
  ie: firefox or chrome)
  
  By, Szeak
  
  2017-11-08 00:13 keltezéssel, Esteban R írta:


  
  
  
Hello I'm working in a quite complex java (1.8.0_112) project,
  using apache-fop 2.2. Windows 10 OS.


It seems that the  tag is ignored in the
  xconf file so I had to enable it programatically.



After that, I get the following exception when rendering pdf
  with accessibility enabled:


java.lang.NullPointerException
        at
  org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:422)
        at
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1236)
        at
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)
        at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:701)
        at
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)
        at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:690)
        at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:572)
        at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)
        at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
        at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
        at
org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)
        at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)
        at
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
        at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)
        at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)
        at
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
        at
  org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
        at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)
        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)
        at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
        at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)
        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
        at
  org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
        at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)
       ... (my classes)
nov 07, 2017 7:54:38 PM org.apache.fop.fo.FOTreeBuilder
  fatalError
GRAVE: org.xml.sax.SAXParseException; systemId:
  file:///C:/Users/complete_file_name.fo; lineNumber: 160;
  columnNumber: 82; java.lang.NullPointerException


The above-mentioned line 160 is:
      





Maybe I'm missing something? I may try to create a full
  example if needed.


Esteban
  



  


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

Error trying to create PDF with accessibility

2017-11-08 Thread Esteban R
Hello I'm working in a quite complex java (1.8.0_112) project, using apache-fop 
2.2. Windows 10 OS.


It seems that the  tag is ignored in the xconf file so I had to 
enable it programatically.


After that, I get the following exception when rendering pdf with accessibility 
enabled:

java.lang.NullPointerException
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:422)
at 
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1236)
at 
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)
at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:701)
at 
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)
at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:690)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:572)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
at 
org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)
at 
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)
at 
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
at 
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)
at 
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)
at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
at 
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)
   ... (my classes)
nov 07, 2017 7:54:38 PM org.apache.fop.fo.FOTreeBuilder fatalError
GRAVE: org.xml.sax.SAXParseException; systemId: 
file:///C:/Users/complete_file_name.fo; lineNumber: 160; columnNumber: 82; 
java.lang.NullPointerException

The above-mentioned line 160 is:

  



Maybe I'm missing something? I may try to create a full example if needed.


Esteban


Error trying to create PDF with accessibility

2017-11-07 Thread Esteban R
Hello I'm working in a quite complex java (1.8.0_112) project, using apache-fop 
2.2. Windows 10 OS.


It seems that the  tag is ignored in the xconf file so I had to 
enable it programatically.


After that, I get the following exception when rendering pdf with accessibility 
enabled:

java.lang.NullPointerException
at org.apache.fop.render.pdf.PDFPainter.drawText(PDFPainter.java:422)
at 
org.apache.fop.render.intermediate.IFRenderer$TextUtil.flush(IFRenderer.java:1236)
at 
org.apache.fop.render.intermediate.IFRenderer.renderText(IFRenderer.java:1063)
at 
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:701)
at 
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:926)
at 
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:690)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:572)
at 
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:613)
at 
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
at 
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
at 
org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)
at 
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)
at 
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
at 
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)
at 
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)
at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
at 
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)
   ... (my classes)
nov 07, 2017 7:54:38 PM org.apache.fop.fo.FOTreeBuilder fatalError
GRAVE: org.xml.sax.SAXParseException; systemId: 
file:///C:/Users/complete_file_name.fo; lineNumber: 160; columnNumber: 82; 
java.lang.NullPointerException

The above-mentioned line 160 is:

  



Maybe I'm missing something? I may try to create a full example if needed.


Esteban


Re: Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

2017-06-29 Thread John Brown


On Thursday, June 29, 2017 8:49 AM, Simon Stener wrote:
>
> Hi,
> 
> Maybe you have an old fontbox jar on your classpath?

Yes, that was it. I had fontbox-1.3.1.jar in fop-svn\fop\lib as well as 
fontbox-2.0.4.

Regards,
John Brown.

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



RE: Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

2017-06-29 Thread Simon Steiner
Hi,

Maybe you have an old fontbox jar on your classpath?

Thanks

-Original Message-
From: John Brown [mailto:johnbrown...@hotmail.com] 
Sent: 29 June 2017 13:38
To: fop-users@xmlgraphics.apache.org
Subject: Error when building FOP svn 1800269 - cannot find symbol symbol
getNameForGID(int)

john@john-pc /c/downloads/fop-svn/fop
$ ant
Buildfile: c:\downloads\fop-svn\fop\build.xml
Trying to override old definition of task javac Trying to override old
definition of task junit

init-avail:
 [echo] --- Apache FOP 2.3.0-SNAPSHOT [1999-2017]

 [echo] See build.properties and build-local.properties for additional
build settings
 [echo] Apache Ant(TM) version 1.9.6 compiled on June 29 2015
 [echo] VM: 25.112-b15, Oracle Corporation
 [echo] JAVA_HOME: c:/progra~1/java/jdk1.8.0_112
 [echo] JAI Support NOT Present
 [echo] JCE Support PRESENT
 [echo] JUnit Support NOT Present - Committers are required to have
JUnit working
 [echo] XMLUnit Support NOT Present - you can get it from
http://xmlunit.sourceforge.net

init:

codegen:
 [echo] Generating the java files from xml resources
 [xslt] Transforming into
c:\downloads\fop-svn\fop\build\gensrc\org\apache\fop\fonts\base14

compile-java:
[javac] Compiling 211 source files to
c:\downloads\fop-svn\fop\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.6
[javac]
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1Fo
ntFormatter.java:115: error: cannot find symbol
[javac] String name =
font.getCharset().getNameForGID(gid.getKey());
[javac]^
[javac]   symbol:   method getNameForGID(Integer)
[javac]   location: class CFFCharset
[javac]
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1Fo
ntFormatter.java:160: error: cannot find symbol
[javac] String mapping =
font.getCharset().getNameForGID(gid);
[javac]   ^
[javac]   symbol:   method getNameForGID(int)
[javac]   location: class CFFCharset
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
[javac] 1 warning

BUILD FAILED
c:\downloads\fop-svn\fop\build.xml:351: Compile failed; see the compiler
error output for details.

Total time: 11 seconds

john@john-pc /c/downloads/fop-svn/fop
-
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



Error when building FOP svn 1800269 - cannot find symbol symbol getNameForGID(int)

2017-06-29 Thread John Brown
john@john-pc /c/downloads/fop-svn/fop
$ ant
Buildfile: c:\downloads\fop-svn\fop\build.xml
Trying to override old definition of task javac
Trying to override old definition of task junit

init-avail:
 [echo] --- Apache FOP 2.3.0-SNAPSHOT [1999-2017] 

 [echo] See build.properties and build-local.properties for additional 
build settings
 [echo] Apache Ant(TM) version 1.9.6 compiled on June 29 2015
 [echo] VM: 25.112-b15, Oracle Corporation
 [echo] JAVA_HOME: c:/progra~1/java/jdk1.8.0_112
 [echo] JAI Support NOT Present
 [echo] JCE Support PRESENT
 [echo] JUnit Support NOT Present - Committers are required to have JUnit 
working
 [echo] XMLUnit Support NOT Present - you can get it from 
http://xmlunit.sourceforge.net

init:

codegen:
 [echo] Generating the java files from xml resources
 [xslt] Transforming into 
c:\downloads\fop-svn\fop\build\gensrc\org\apache\fop\fonts\base14

compile-java:
[javac] Compiling 211 source files to c:\downloads\fop-svn\fop\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
[javac] 
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1FontFormatter.java:115:
 error: cannot find symbol
[javac] String name = 
font.getCharset().getNameForGID(gid.getKey());
[javac]^
[javac]   symbol:   method getNameForGID(Integer)
[javac]   location: class CFFCharset
[javac] 
c:\downloads\fop-svn\fop-core\src\main\java\org\apache\fop\render\ps\Type1FontFormatter.java:160:
 error: cannot find symbol
[javac] String mapping = font.getCharset().getNameForGID(gid);
[javac]   ^
[javac]   symbol:   method getNameForGID(int)
[javac]   location: class CFFCharset
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
[javac] 1 warning

BUILD FAILED
c:\downloads\fop-svn\fop\build.xml:351: Compile failed; see the compiler error 
output for details.

Total time: 11 seconds

john@john-pc /c/downloads/fop-svn/fop
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: o.a.f.i.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.

2016-03-08 Thread Andreas Delmelle
Hi

> On 07 Mar 2016, at 12:03, Bram Maes <bram.maes.develo...@gmail.com> wrote:
> 
> Image is not rendering in pdf.  In the logs this is what I see:
> 
> 11:57:24.293 DEBUG o.a.x.i.l.i.AbstractImageSessionContext - Creating new 
> Source for images/logo_nl.png
> 11:57:24.307 DEBUG o.a.f.i.loader.batik.PreloaderSVG - Error while trying to 
> load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.
> 11:57:24.311 DEBUG o.a.x.i.l.i.AbstractImageSessionContext - Returning Source 
> for images/logo_nl.png
> 11:57:24.313 DEBUG org.apache.fop.fo.FONode - Invalid element: 
> fo:external-graphic inside foreign xml markup

Not sure if that is the cause of the error, but seems like you are embedding an 
fo:external-graphic inside an instream SVG element (?) 
That would not be the correct way to approach this. If you want to reference a 
binary (JPG, PNG or GIF) from within an instream SVG element, you should stick 
to using SVG, and not try to reference it via an XSL-FO mechanism. An SVG 
itself can be referenced as a fo:external-graphic, but then in its entirety, 
not partially...


Hope this helps!

KR

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



o.a.f.i.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.

2016-03-08 Thread Bram Maes
Image is not rendering in pdf.  In the logs this is what I see:



11:57:24.293 DEBUG o.a.x.i.l.i.AbstractImageSessionContext - Creating new
Source for images/logo_nl.png
11:57:24.307 DEBUG o.a.f.i.loader.batik.PreloaderSVG - Error while trying
to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence.
11:57:24.311 DEBUG o.a.x.i.l.i.AbstractImageSessionContext - Returning
Source for images/logo_nl.png
11:57:24.313 DEBUG org.apache.fop.fo.FONode - Invalid element:
fo:external-graphic inside foreign xml markup


Seems like ImageLoaderFactory were loaded correctly:

11:57:14.310 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.PreloaderWMF with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.PreloaderSVG with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderTIFF with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderGIF with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderJPEG with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderBMP with priority 1000
11:57:14.311 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderEMF with priority 1000
11:57:14.312 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderEPS with priority 1000
11:57:14.312 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.PreloaderImageIO with
priority 2000
11:57:14.312 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.PreloaderRawPNG with priority 2000
11:57:14.486 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.ImageLoaderFactorySVG: MIME =
image/svg+xml, Flavor = text/xml;DOM;namespace=http://www.w3.org/2000/svg
11:57:14.486 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.fop.image.loader.batik.ImageLoaderFactoryWMF: MIME =
image/x-wmf, Flavor = WMFRecordStore
11:57:14.540 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/vnd.wap.wbmp, Flavor = RenderedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/vnd.wap.wbmp, Flavor = BufferedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/png, Flavor = RenderedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/png, Flavor = BufferedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/x-png, Flavor = RenderedImage
11:57:14.541 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/x-png, Flavor = BufferedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/jpeg, Flavor = RenderedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/jpeg, Flavor = BufferedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/bmp, Flavor = RenderedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/bmp, Flavor = BufferedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/gif, Flavor = RenderedImage
11:57:14.542 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO:
MIME = image/gif, Flavor = BufferedImage
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRaw: MIME =
image/png, Flavor = image/png;Raw
11:57:14.543 DEBUG o.a.x.i.loader.spi.ImageImplRegistry - Registered
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRaw: MIME =
image/jpeg, Flavor = image/jpeg;Raw
11:57

AW: AW: AW: Missing glyph error, but font contains glyph

2015-06-29 Thread mulos
I recreated the metrics files for TimesNewRoman. Now it works.

Thanks.

Von: Luis Bernardo [via Apache FOP] 
[mailto:ml-node+s1065347n4249...@n5.nabble.com]
Gesendet: Montag, 29. Juni 2015 10:18
An: Daniel Strackbein
Betreff: Re: AW: AW: Missing glyph error, but font contains glyph


Do not use metrics files. They are not needed and are not recommended: 
http://xmlgraphics.apache.org/fop/2.0/fonts.html.

As long as you reference the fonts in the FO file the same way you configure 
them in your config file you can name them any way you want. If you get a 
warning about TimesNewRoman even though you don't have that in your config file 
then it is likely you are not referencing the right font in your FO file.

On 6/29/15 9:48 AM, mulos wrote:
I have the font included in the config-file. Here is the part of the fop.xconf:

  fonts
font metrics-url=../../shared/fop/conf/times.xml kerning=yes 
embed-url=../../shared/fop/fonts/times.ttf
  font-triplet name=Times style=normal weight=normal/
/font
font metrics-url=../../shared/fop/conf/timesbd.xml kerning=yes 
embed-url=../../shared/fop/fonts/timesbd.ttf
  font-triplet name=Times style=normal weight=bold/
/font
font metrics-url=../../shared/fop/conf/timesi.xml kerning=yes 
embed-url=../../shared/fop/fonts/timesi.ttf
  font-triplet name=Times style=italic weight=normal/
/font
font metrics-url=../../shared/fop/conf/timesbi.xml kerning=yes 
embed-url=../../shared/fop/fonts/timesbi.ttf
  font-triplet name=Times style=italic weight=bold/
/font
  /fonts

The warning says:

WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman.

The times font in the config file is TimesNewRoman. Is it ok to name the 
TimesNewRoman font „Times“ or is that the problem?

Thanks,

Daniel

Von: Chris Bowditch [via Apache FOP] [[hidden 
email]/user/SendEmail.jtp?type=nodenode=42495i=0[hidden 
email]/user/SendEmail.jtp?type=nodenode=42494i=0]
Gesendet: Freitag, 26. Juni 2015 17:53
An: Daniel Strackbein
Betreff: Re: AW: Missing glyph error, but font contains glyph

Hi Daniel,

The built in Times Font is embedded within the PDF Viewer. You can't
adjust it. All you can do is tell FOP to use a different Font to render
your XSL-FO. This is done via your fop.xconf file. If you believe you've
done that already, then can you post your fop.xconf file here for review?

Thanks,

Chris

On 24/06/2015 08:24, mulos wrote:


 Thanks, but where can I find the built-in Times font? In my fop\fonts
 – folder I have:

 times.ttf

 timesbd.ttf

 timesbi.ttf

 timesi.ttf

 All of them contain this character. Could this be a codepage problem?

 Daniel

 *Von:*Glenn Adams-2 [via Apache FOP] [[hidden 
 email]/user/SendEmail.jtp?type=nodenode=42495i=1[hidden email]
 /user/SendEmail.jtp?type=nodenode=42467i=0]
 *Gesendet:* Dienstag, 23. Juni 2015 18:08
 *An:* Daniel Strackbein
 *Betreff:* Re: Missing glyph error, but font contains glyph

 If you are using the built-in Times font, then it does not include a
 glyph for that character.

 On Tue, Jun 23, 2015 at 9:09 AM, mulos [hidden email]
 /user/SendEmail.jtp?type=nodenode=42466i=0 wrote:

 Hi,

 output format is PDF. Font type is TTF.

 If I embedd another font (cambria), the character is found
 correctly. But why? Times contains this character. The config file
 (times.xml) contains it, too.

 Thanks,

 Daniel

 *Von:*Robert Meyer-5 [via Apache FOP] [mailto:[hidden email]
 /user/SendEmail.jtp?type=nodenode=42466i=1[hidden email]
 http://user/SendEmail.jtp?type=nodenode=42465i=0]
 *Gesendet:* Dienstag, 23. Juni 2015 17:00
 *An:* Daniel Strackbein
 *Betreff:* RE: Missing glyph error, but font contains glyph

 Hi,

 Could you provide extra details such as the output format (PDF,
 Postscript, AFP) and the font type you're using (Type1, TTF,
 OpenType)?

 Thanks,

 Robert

  Date: Tue, 23 Jun 2015 07:34:36 -0700


  From: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=42464i=0
  To: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=42464i=1
  Subject: Missing glyph error, but font contains glyph
 
  Hi, I get the following error:
 
  Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
  processEvent
  WARNING: Glyph ? (0x1e7, gcaron) not available in font
 TimesNewRoman.
  java version 1.7.0_17
  Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
  Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
 
  This character exists in the times new roman font. Why does this
 message
  appear?
 
 
 
  --
  View this message in context:
 
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
  Sent from the FOP - Users mailing list archive at Nabble.com

AW: AW: Missing glyph error, but font contains glyph

2015-06-29 Thread mulos
I have the font included in the config-file. Here is the part of the fop.xconf:

  fonts
font metrics-url=../../shared/fop/conf/times.xml kerning=yes 
embed-url=../../shared/fop/fonts/times.ttf
  font-triplet name=Times style=normal weight=normal/
/font
font metrics-url=../../shared/fop/conf/timesbd.xml kerning=yes 
embed-url=../../shared/fop/fonts/timesbd.ttf
  font-triplet name=Times style=normal weight=bold/
/font
font metrics-url=../../shared/fop/conf/timesi.xml kerning=yes 
embed-url=../../shared/fop/fonts/timesi.ttf
  font-triplet name=Times style=italic weight=normal/
/font
font metrics-url=../../shared/fop/conf/timesbi.xml kerning=yes 
embed-url=../../shared/fop/fonts/timesbi.ttf
  font-triplet name=Times style=italic weight=bold/
/font
  /fonts

The warning says:

WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman.

The times font in the config file is TimesNewRoman. Is it ok to name the 
TimesNewRoman font „Times“ or is that the problem?

Thanks,

Daniel

Von: Chris Bowditch [via Apache FOP] 
[mailto:ml-node+s1065347n42486...@n5.nabble.com]
Gesendet: Freitag, 26. Juni 2015 17:53
An: Daniel Strackbein
Betreff: Re: AW: Missing glyph error, but font contains glyph

Hi Daniel,

The built in Times Font is embedded within the PDF Viewer. You can't
adjust it. All you can do is tell FOP to use a different Font to render
your XSL-FO. This is done via your fop.xconf file. If you believe you've
done that already, then can you post your fop.xconf file here for review?

Thanks,

Chris

On 24/06/2015 08:24, mulos wrote:


 Thanks, but where can I find the built-in Times font? In my fop\fonts
 – folder I have:

 times.ttf

 timesbd.ttf

 timesbi.ttf

 timesi.ttf

 All of them contain this character. Could this be a codepage problem?

 Daniel

 *Von:*Glenn Adams-2 [via Apache FOP] [mailto:ml-node+[hidden email]
 /user/SendEmail.jtp?type=nodenode=42467i=0]
 *Gesendet:* Dienstag, 23. Juni 2015 18:08
 *An:* Daniel Strackbein
 *Betreff:* Re: Missing glyph error, but font contains glyph

 If you are using the built-in Times font, then it does not include a
 glyph for that character.

 On Tue, Jun 23, 2015 at 9:09 AM, mulos [hidden email]
 /user/SendEmail.jtp?type=nodenode=42466i=0 wrote:

 Hi,

 output format is PDF. Font type is TTF.

 If I embedd another font (cambria), the character is found
 correctly. But why? Times contains this character. The config file
 (times.xml) contains it, too.

 Thanks,

 Daniel

 *Von:*Robert Meyer-5 [via Apache FOP] [mailto:[hidden email]
 /user/SendEmail.jtp?type=nodenode=42466i=1[hidden email]
 http://user/SendEmail.jtp?type=nodenode=42465i=0]
 *Gesendet:* Dienstag, 23. Juni 2015 17:00
 *An:* Daniel Strackbein
 *Betreff:* RE: Missing glyph error, but font contains glyph

 Hi,

 Could you provide extra details such as the output format (PDF,
 Postscript, AFP) and the font type you're using (Type1, TTF,
 OpenType)?

 Thanks,

 Robert

  Date: Tue, 23 Jun 2015 07:34:36 -0700


  From: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=42464i=0
  To: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=42464i=1
  Subject: Missing glyph error, but font contains glyph
 
  Hi, I get the following error:
 
  Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
  processEvent
  WARNING: Glyph ? (0x1e7, gcaron) not available in font
 TimesNewRoman.
  java version 1.7.0_17
  Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
  Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
 
  This character exists in the times new roman font. Why does this
 message
  appear?
 
 
 
  --
  View this message in context:
 
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
  Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=42464i=2
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=42464i=3
 

 

 *If you reply to this email, your message will be added to the
 discussion below:*

 
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html


 To unsubscribe from Missing glyph error, but font contains glyph,
 click here.
 NAML
 
 http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace

Re: AW: Missing glyph error, but font contains glyph

2015-06-26 Thread Chris Bowditch

Hi Daniel,

The built in Times Font is embedded within the PDF Viewer. You can't 
adjust it. All you can do is tell FOP to use a different Font to render 
your XSL-FO. This is done via your fop.xconf file. If you believe you've 
done that already, then can you post your fop.xconf file here for review?


Thanks,

Chris

On 24/06/2015 08:24, mulos wrote:


Thanks, but where can I find the built-in Times font? In my fop\fonts 
– folder I have:


times.ttf

timesbd.ttf

timesbi.ttf

timesi.ttf

All of them contain this character. Could this be a codepage problem?

Daniel

*Von:*Glenn Adams-2 [via Apache FOP] [mailto:ml-node+[hidden email] 
/user/SendEmail.jtp?type=nodenode=42467i=0]

*Gesendet:* Dienstag, 23. Juni 2015 18:08
*An:* Daniel Strackbein
*Betreff:* Re: Missing glyph error, but font contains glyph

If you are using the built-in Times font, then it does not include a 
glyph for that character.


On Tue, Jun 23, 2015 at 9:09 AM, mulos [hidden email] 
/user/SendEmail.jtp?type=nodenode=42466i=0 wrote:


Hi,

output format is PDF. Font type is TTF.

If I embedd another font (cambria), the character is found
correctly. But why? Times contains this character. The config file
(times.xml) contains it, too.

Thanks,

Daniel

*Von:*Robert Meyer-5 [via Apache FOP] [mailto:[hidden email]
/user/SendEmail.jtp?type=nodenode=42466i=1[hidden email]
http://user/SendEmail.jtp?type=nodenode=42465i=0]
*Gesendet:* Dienstag, 23. Juni 2015 17:00
*An:* Daniel Strackbein
*Betreff:* RE: Missing glyph error, but font contains glyph

Hi,

Could you provide extra details such as the output format (PDF,
Postscript, AFP) and the font type you're using (Type1, TTF,
OpenType)?

Thanks,

Robert

 Date: Tue, 23 Jun 2015 07:34:36 -0700


 From: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=0
 To: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=1
 Subject: Missing glyph error, but font contains glyph

 Hi, I get the following error:

 Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Glyph ? (0x1e7, gcaron) not available in font
TimesNewRoman.
 java version 1.7.0_17
 Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

 This character exists in the times new roman font. Why does this
message
 appear?



 --
 View this message in context:

http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


-
 To unsubscribe, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=2
 For additional commands, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=42464i=3




*If you reply to this email, your message will be added to the
discussion below:*


http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html


To unsubscribe from Missing glyph error, but font contains glyph,
click here.
NAML

http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




View this message in context: AW: Missing glyph error, but font
contains glyph

http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42465.html


Sent from the FOP - Users mailing list archive
http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html at
Nabble.com.



*If you reply to this email, your message will be added to the 
discussion below:*


http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42466.html 



To unsubscribe from Missing glyph error, but font contains glyph, 
click here.
NAML 
http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml 





View

AW: Missing glyph error, but font contains glyph

2015-06-24 Thread mulos
Thanks, but where can I find the built-in Times font? In my fop\fonts – folder 
I have:

times.ttf
timesbd.ttf
timesbi.ttf
timesi.ttf

All of them contain this character. Could this be a codepage problem?

Daniel

Von: Glenn Adams-2 [via Apache FOP] 
[mailto:ml-node+s1065347n4246...@n5.nabble.com]
Gesendet: Dienstag, 23. Juni 2015 18:08
An: Daniel Strackbein
Betreff: Re: Missing glyph error, but font contains glyph

If you are using the built-in Times font, then it does not include a glyph for 
that character.

On Tue, Jun 23, 2015 at 9:09 AM, mulos [hidden 
email]/user/SendEmail.jtp?type=nodenode=42466i=0 wrote:
Hi,

output format is PDF. Font type is TTF.

If I embedd another font (cambria), the character is found correctly. But why? 
Times contains this character. The config file (times.xml) contains it, too.

Thanks,

Daniel



Von: Robert Meyer-5 [via Apache FOP] [mailto:[hidden 
email]/user/SendEmail.jtp?type=nodenode=42466i=1[hidden 
email]http://user/SendEmail.jtp?type=nodenode=42465i=0]
Gesendet: Dienstag, 23. Juni 2015 17:00
An: Daniel Strackbein
Betreff: RE: Missing glyph error, but font contains glyph

Hi,

Could you provide extra details such as the output format (PDF, Postscript, 
AFP) and the font type you're using (Type1, TTF, OpenType)?

Thanks,

Robert
 Date: Tue, 23 Jun 2015 07:34:36 -0700

 From: [hidden email]http://user/SendEmail.jtp?type=nodenode=42464i=0
 To: [hidden email]http://user/SendEmail.jtp?type=nodenode=42464i=1
 Subject: Missing glyph error, but font contains glyph

 Hi, I get the following error:

 Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman.
 java version 1.7.0_17
 Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

 This character exists in the times new roman font. Why does this message
 appear?



 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=42464i=2
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=42464i=3



If you reply to this email, your message will be added to the discussion below:
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html
To unsubscribe from Missing glyph error, but font contains glyph, click here.
NAMLhttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


View this message in context: AW: Missing glyph error, but font contains 
glyphhttp://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42465.html

Sent from the FOP - Users mailing list 
archivehttp://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html at 
Nabble.com.



If you reply to this email, your message will be added to the discussion below:
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42466.html
To unsubscribe from Missing glyph error, but font contains glyph, click 
herehttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=42463code=ZGFuaWVsLnN0cmFja2JlaW5AbWJpLmRlfDQyNDYzfDUzMTE4ODI3Mg==.
NAMLhttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42467.html
Sent from the FOP - Users mailing list archive at Nabble.com.

RE: Missing glyph error, but font contains glyph

2015-06-23 Thread Robert Meyer
Hi,

Could you provide extra details such as the output format (PDF, Postscript, 
AFP) and the font type you're using (Type1, TTF, OpenType)?

Thanks,

Robert

 Date: Tue, 23 Jun 2015 07:34:36 -0700
 From: daniel.strackb...@mbi.de
 To: fop-users@xmlgraphics.apache.org
 Subject: Missing glyph error, but font contains glyph
 
 Hi, I get the following error:
 
 Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman.
 java version 1.7.0_17
 Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
 
 This character exists in the times new roman font. Why does this message
 appear?
 
 
 
 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.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
 
  

Missing glyph error, but font contains glyph

2015-06-23 Thread mulos
Hi, I get the following error:

Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman.
java version 1.7.0_17
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

This character exists in the times new roman font. Why does this message
appear?



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.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



AW: Missing glyph error, but font contains glyph

2015-06-23 Thread mulos
Hi,

output format is PDF. Font type is TTF.

If I embedd another font (cambria), the character is found correctly. But why? 
Times contains this character. The config file (times.xml) contains it, too.

Thanks,

Daniel



Von: Robert Meyer-5 [via Apache FOP] 
[mailto:ml-node+s1065347n42464...@n5.nabble.com]
Gesendet: Dienstag, 23. Juni 2015 17:00
An: Daniel Strackbein
Betreff: RE: Missing glyph error, but font contains glyph

Hi,

Could you provide extra details such as the output format (PDF, Postscript, 
AFP) and the font type you're using (Type1, TTF, OpenType)?

Thanks,

Robert
 Date: Tue, 23 Jun 2015 07:34:36 -0700

 From: [hidden email]/user/SendEmail.jtp?type=nodenode=42464i=0
 To: [hidden email]/user/SendEmail.jtp?type=nodenode=42464i=1
 Subject: Missing glyph error, but font contains glyph

 Hi, I get the following error:

 Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman.
 java version 1.7.0_17
 Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

 This character exists in the times new roman font. Why does this message
 appear?



 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: [hidden 
 email]/user/SendEmail.jtp?type=nodenode=42464i=2
 For additional commands, e-mail: [hidden 
 email]/user/SendEmail.jtp?type=nodenode=42464i=3



If you reply to this email, your message will be added to the discussion below:
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html
To unsubscribe from Missing glyph error, but font contains glyph, click 
herehttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=42463code=ZGFuaWVsLnN0cmFja2JlaW5AbWJpLmRlfDQyNDYzfDUzMTE4ODI3Mg==.
NAMLhttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42465.html
Sent from the FOP - Users mailing list archive at Nabble.com.

Re: Missing glyph error, but font contains glyph

2015-06-23 Thread Glenn Adams
If you are using the built-in Times font, then it does not include a glyph
for that character.

On Tue, Jun 23, 2015 at 9:09 AM, mulos daniel.strackb...@mbi.de wrote:

  Hi,



 output format is PDF. Font type is TTF.



 If I embedd another font (cambria), the character is found correctly. But
 why? Times contains this character. The config file (times.xml) contains
 it, too.



 Thanks,



 Daniel







 *Von:* Robert Meyer-5 [via Apache FOP] [mailto:ml-node+[hidden email]
 http:///user/SendEmail.jtp?type=nodenode=42465i=0]
 *Gesendet:* Dienstag, 23. Juni 2015 17:00
 *An:* Daniel Strackbein
 *Betreff:* RE: Missing glyph error, but font contains glyph



 Hi,

 Could you provide extra details such as the output format (PDF,
 Postscript, AFP) and the font type you're using (Type1, TTF, OpenType)?

 Thanks,

 Robert

  Date: Tue, 23 Jun 2015 07:34:36 -0700


  From: [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=42464i=0
  To: [hidden email] http:///user/SendEmail.jtp?type=nodenode=42464i=1
  Subject: Missing glyph error, but font contains glyph
 
  Hi, I get the following error:
 
  Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
  processEvent
  WARNING: Glyph ? (0x1e7, gcaron) not available in font TimesNewRoman.
  java version 1.7.0_17
  Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
  Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
 
  This character exists in the times new roman font. Why does this message
  appear?
 
 
 
  --
  View this message in context:
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
  Sent from the FOP - Users mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=42464i=2
  For additional commands, e-mail: [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=42464i=3
 


  --

 *If you reply to this email, your message will be added to the discussion
 below:*


 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html

 To unsubscribe from Missing glyph error, but font contains glyph, click
 here.
 NAML
 http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 --
 View this message in context: AW: Missing glyph error, but font contains
 glyph
 http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42465.html

 Sent from the FOP - Users mailing list archive
 http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html at Nabble.com.



RE: OTF Subsetting Error

2015-04-04 Thread Robert Meyer
I've just had a quick look into this and it appears to be a bad subroutine 
reference in the created subset font. If the output PDF is opened in FontForge 
there are several errors in the log window as well as three of the characters 
missing. My guess would be that for whatever reason one of the subroutines 
(either local or global) wasn't copied correctly and when the referring 
character is attempting to be drawn by the target application, it is unable due 
to this missing or corrupt subroutine.

I'll do some investigating and see which subroutines the three have in common 
and see if this is an easy fix or would be more involved. I'll keep you posted 
anyway.

Regards,

Robert

From: simonsteiner1...@gmail.com
To: fop-users@xmlgraphics.apache.org
Subject: FW: OTF Subsetting Error
Date: Sat, 4 Apr 2015 09:04:11 +0100

 
 
-Original Message-
From: Matthias Reischenbacher [mailto:matthias8...@gmx.at] 
Sent: 04 April 2015 00:37
To: sstei...@apache.org
Subject: OTF Subsetting Error
 
Hi Simon,
 
sorry for writing you directly and not using the FOP mailing list or jira. I 
upgraded my local FOP version in order to test your newly added OTF support and 
I'm getting a subset error with a font provided by one of my clients. If you 
want to have a look at it, I am sending you the font directly, but I can't 
attach it to a Jira ticket. If using embedding-mode full it works fine 
(although the firefox pdf viewer doesn't display the characters correctly, but 
Acrobat does), when using subsetting the PDF file causes an error message when 
opened with Acrobat (see attached screen shot). I also tested with Myriad Pro 
which works fine for full and subset.
 
Best regards,
Matthias Reischenbacher

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

Re: Generating metrics error: Unicode cmap table not present. Aborting

2014-12-15 Thread becofuan
Magdikova wrote
 I would like to generate metrics filebut I get the following 
 error:Unsupported TrueType font: Unicode cmap table not present. Aborting
 
 what is the problem?
 
 XML font metrics file successfully created. but I can not found the xml
 file
 
 TTF Reader for Apache FOP 0.95
 
 Parsing font...
 Reading C:\windows\fonts\Barcode128C.TTf...
 sfnt version: OpenType 1.0
 Reading 14 dir tables
 dir tables: [PCLT, loca, post, glyf, fpgm, hmtx, hhea, prep, cvt , OS/2,
 cmap, n
 ame, head, maxp]
 unit per em: 1000
 Number of glyphs in font: 132
 hhea.Ascender: 1498 1498
 hhea.Descender: -364 -364
 Number of horizontal metrics: 132
 PostScript format: 0x2
 PostScript format 2
 Reading 2 glyphnames, that are not in the standard Macintosh set. Total
 number o
 f glyphs=132
 sTypoAscender: 1498 1498
 sTypoDescender: -364 -364
 sTypoLineGap: 97
 usWinAscent: 1498 1498
 usWinDescent: 364 364
 sxHeight: 0
 sCapHeight: 500
 Font box height: 1862
 Ascender and descender together are larger than the em box. This could
 lead to a
  wrong baseline placement in Apache FOP.
 1 0 0 1 Barcode 128C
 1 0 0 2 Regular
 1 0 0 3 Barcode 128C
 1 0 0 4 Barcode 128C
 1 0 0 6 
 Barcode 128 http://www.barcodelib.com/barcode_software/ean128.html  
 C
 3 0 1033 1 Barcode 128C
 3 0 1033 2 Regular
 3 0 1033 3 Barcode 128C
 3 0 1033 4 Barcode 128C
 3 0 1033 6 Barcode 128C
 xHeight from PCLT: 1498 1498
 capHeight from PCLT: 1498 1498
 3 cmap tables
 Platform ID: 0 Encoding: 0
 Platform ID: 1 Encoding: 0
 Platform ID: 3 Encoding: 0
 Unsupported TrueType font: Unicode cmap table not present. Aborting
 
 XML font metrics file successfully created.
 
 C:\xampp\fop^A

Has you solved the problem?
And can you sharing me with a resolution if you have?
Any help will be appreciated.




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Generating-metrics-error-Unicode-cmap-table-not-present-Aborting-tp17233p41529.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: FOP 0.94 showing Error with opening URL...Connection Reset and fop.fo.FONode - Image Not Available

2014-07-07 Thread Chris Bowditch

Hi Terence,

Sorry for slow reply. Just spotted your e-mail. The issue sounds like 
this one discussed in 2008; http://markmail.org/message/k6mno3jsxmovaz2e


If it is the same issue, then the solution is to add the following 
system property to the JVM:


-Dorg.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.no-source-reuse=true 



Thanks,

Chris

On 23/06/2014 17:08, Terence M. Bandoian wrote:

On 6/20/2014 1:29 PM, Rwui wrote:

Hi there,

So I'm working on some applications, and they're using fop-0.94.jar as
external library to generate the PDF based on certain XSL file.

The problem that I'm having now is the downloaded PDFs from the 
applications
are incomplete (in a high level environment) - there's always random 
missing
page(s) in the PDF file. e.g. I may get page 3 and 6 missing this 
time for a
20 pages PDF and next time it might be page 1, 4 and 13; And if I 
download
only the first page, as you guys can imagine, I will sometimes just 
have a

blank PDF.

The log is showing:

ERROR: FOP  - Error with opening URL 'http://imageURL': Connection reset

ERROR: fop.fo.FONode  - Image not available: url(http://imageURL)

The image is from a image server and the imageURL is always working - 
as if
I copy  paste it to any browser, and as I mentioned the missing 
page(s) are
totally random, I'm thinking the URLs are fine but need to take care 
on the

Connection reset error.

Plus, the application's PDF downloading runs perfectly in other 
environments
like on my local Ubuntu work station (which is also connecting to the 
same

image server). So I'm guessing this might very likely be a configuration
side of thing, but so far haven't got any clue on which might be 
possible to

change to make the fix.

If anyone here have any ideas of what might be causing this kind of 
error or

have seen this before, please let me know. Any help would be very
appreciated.

Thanks!
R



Hi, Rwui-

If you're concerned about connection issues, you might consider 
temporarily copying the images to a drive on the server and 
referencing the local images in FOP.  Doing so would provide the 
opportunity for more robust error handing and eliminate the remote 
connection as a source of errors in FOP.


-Terence Bandoian

-
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



FOP 0.94 showing Error with opening URL...Connection Reset and fop.fo.FONode - Image Not Available

2014-06-23 Thread Rwui
Hi there,

So I'm working on some applications, and they're using fop-0.94.jar as
external library to generate the PDF based on certain XSL file.

The problem that I'm having now is the downloaded PDFs from the applications
are incomplete (in a high level environment) - there's always random missing
page(s) in the PDF file. e.g. I may get page 3 and 6 missing this time for a
20 pages PDF and next time it might be page 1, 4 and 13; And if I download
only the first page, as you guys can imagine, I will sometimes just have a
blank PDF.

The log is showing:

ERROR: FOP  - Error with opening URL 'http://imageURL': Connection reset

ERROR: fop.fo.FONode  - Image not available: url(http://imageURL)

The image is from a image server and the imageURL is always working - as if
I copy  paste it to any browser, and as I mentioned the missing page(s) are
totally random, I'm thinking the URLs are fine but need to take care on the
Connection reset error.

Plus, the application's PDF downloading runs perfectly in other environments
like on my local Ubuntu work station (which is also connecting to the same
image server). So I'm guessing this might very likely be a configuration
side of thing, but so far haven't got any clue on which might be possible to
change to make the fix.

If anyone here have any ideas of what might be causing this kind of error or
have seen this before, please let me know. Any help would be very
appreciated.

Thanks!
R




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOP-0-94-showing-Error-with-opening-URL-Connection-Reset-and-fop-fo-FONode-Image-Not-Available-tp40830.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: FOP 0.94 showing Error with opening URL...Connection Reset and fop.fo.FONode - Image Not Available

2014-06-23 Thread Terence M. Bandoian

On 6/20/2014 1:29 PM, Rwui wrote:

Hi there,

So I'm working on some applications, and they're using fop-0.94.jar as
external library to generate the PDF based on certain XSL file.

The problem that I'm having now is the downloaded PDFs from the applications
are incomplete (in a high level environment) - there's always random missing
page(s) in the PDF file. e.g. I may get page 3 and 6 missing this time for a
20 pages PDF and next time it might be page 1, 4 and 13; And if I download
only the first page, as you guys can imagine, I will sometimes just have a
blank PDF.

The log is showing:

ERROR: FOP  - Error with opening URL 'http://imageURL': Connection reset

ERROR: fop.fo.FONode  - Image not available: url(http://imageURL)

The image is from a image server and the imageURL is always working - as if
I copy  paste it to any browser, and as I mentioned the missing page(s) are
totally random, I'm thinking the URLs are fine but need to take care on the
Connection reset error.

Plus, the application's PDF downloading runs perfectly in other environments
like on my local Ubuntu work station (which is also connecting to the same
image server). So I'm guessing this might very likely be a configuration
side of thing, but so far haven't got any clue on which might be possible to
change to make the fix.

If anyone here have any ideas of what might be causing this kind of error or
have seen this before, please let me know. Any help would be very
appreciated.

Thanks!
R



Hi, Rwui-

If you're concerned about connection issues, you might consider 
temporarily copying the images to a drive on the server and referencing 
the local images in FOP.  Doing so would provide the opportunity for 
more robust error handing and eliminate the remote connection as a 
source of errors in FOP.


-Terence Bandoian

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



Re: Misleading Error Message When Image Exceeds Viewport

2014-06-19 Thread Pascal Sancho
Hi,

to prevent such warning, you should use
*-progression-dimension.maximum properties.

on i-p-d axis, this is trivial (100% is usable), but on b-p-d axis,
you have to compute the maximum size by yourself:

fo:external-graphic src=woman_navy_1918.jpg
inline-progression-dimension.maximum=100%
content-width=scale-down-to-fit
block-progression-dimension.maximum=20cm
content-height=scale-down-to-fit/

2014-06-18 18:58 GMT+02:00 bob swanson bobswans...@gmail.com:

 I was working on a large (530+ pages) PDF creation
 and was receiving an error that the viewport
 was being exceeded. I finally figured out that
 an image was too long, and bled beyond the
 text of the page. That is my issue, and I
 figured out at least one way to get around that.

 The problem is that the error message
 issued gave the wrong page number, and
 I was looking for trouble in the wrong
 part of the output PDF.

 The following ZIP file has a script and
 input files that reproduce the problem
 with the error message. The script would
 need modification to run on another machine,
 as I have quite a configuration mess to
 deal with. However, the fop script invocation
 is pretty simple, and the input .fo file is
 also pretty simple.

 http://swansongrp.com/misc/the_test.zip

 If necessary, I can open a problem report.

 Thanks for all your help,


 Bob Swanson
 bobswans...@gmail.com




-- 
pascal

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



Re: Misleading Error Message When Image Exceeds Viewport

2014-06-19 Thread Pascal Sancho
regarding the warning message, I can't reproduce the wrong page number.

2014-06-18 18:58 GMT+02:00 bob swanson bobswans...@gmail.com:

 I was working on a large (530+ pages) PDF creation
 and was receiving an error that the viewport
 was being exceeded. I finally figured out that
 an image was too long, and bled beyond the
 text of the page. That is my issue, and I
 figured out at least one way to get around that.

 The problem is that the error message
 issued gave the wrong page number, and
 I was looking for trouble in the wrong
 part of the output PDF.

 The following ZIP file has a script and
 input files that reproduce the problem
 with the error message. The script would
 need modification to run on another machine,
 as I have quite a configuration mess to
 deal with. However, the fop script invocation
 is pretty simple, and the input .fo file is
 also pretty simple.

 http://swansongrp.com/misc/the_test.zip

 If necessary, I can open a problem report.

 Thanks for all your help,


 Bob Swanson
 bobswans...@gmail.com




-- 
pascal

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



Misleading Error Message When Image Exceeds Viewport

2014-06-18 Thread bob swanson
I was working on a large (530+ pages) PDF creation
and was receiving an error that the viewport
was being exceeded. I finally figured out that
an image was too long, and bled beyond the
text of the page. That is my issue, and I
figured out at least one way to get around that.

The problem is that the error message
issued gave the wrong page number, and
I was looking for trouble in the wrong
part of the output PDF.

The following ZIP file has a script and
input files that reproduce the problem
with the error message. The script would
need modification to run on another machine,
as I have quite a configuration mess to
deal with. However, the fop script invocation
is pretty simple, and the input .fo file is
also pretty simple.

http://swansongrp.com/misc/the_test.zip

If necessary, I can open a problem report.

Thanks for all your help,


Bob Swanson
bobswans...@gmail.com


Re: Adding image to PDF File : Error

2013-04-19 Thread Chris Bowditch

On 18/04/2013 11:23, javakthar wrote:

HI


Hi,



I get the following error when processing my agent to convert xml to PDF.
THe PDF document gets created but the image does not get created.

pr 18, 2013 3:51:04 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: The file format is not supported. No
ImagePreloader found for
data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==


What version of FOP are you using? That's a data URL and I'm sure 
support was only added for data URLs in more recent versions of FOP.


Thanks,

Chris


Apr 18, 2013 3:51:04 PM org.apache.fop.layoutmgr.table.TableLayoutManager
getNextKnuthElements
INFO: table-layout=fixed and width=auto, but auto-layout not supported
= assuming width=100%
Apr 18, 2013 3:51:04 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'verdanna,normal,400' not found. Substituting with
'any,normal,400'.


Following is the content of my xsl-fo

fo:block
fo:external-graphic
src=url(data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==)
/fo:external-graphic


Kindly let me know how this could be resolved.

Regards
Javed Khan



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Adding-image-to-PDF-File-Error-tp38354.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: Adding image to PDF File : Error

2013-04-19 Thread javakthar
I am currently using fop 0.95.


On Fri, Apr 19, 2013 at 9:23 PM, Chris Bowditch [via Apache FOP] 
ml-node+s1065347n38387...@n5.nabble.com wrote:

 On 18/04/2013 11:23, javakthar wrote:
  HI

 Hi,

 
  I get the following error when processing my agent to convert xml to
 PDF.
  THe PDF document gets created but the image does not get created.
 
  pr 18, 2013 3:51:04 PM org.apache.fop.fo.flow.ExternalGraphic bind
  SEVERE: Image not available: The file format is not supported. No
  ImagePreloader found for
 
 data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==


 What version of FOP are you using? That's a data URL and I'm sure
 support was only added for data URLs in more recent versions of FOP.

 Thanks,

 Chris

  Apr 18, 2013 3:51:04 PM
 org.apache.fop.layoutmgr.table.TableLayoutManager
  getNextKnuthElements
  INFO: table-layout=fixed and width=auto, but auto-layout not
 supported
  = assuming width=100%
  Apr 18, 2013 3:51:04 PM org.apache.fop.fonts.FontInfo
 notifyFontReplacement
  WARNING: Font 'verdanna,normal,400' not found. Substituting with
  'any,normal,400'.
 
 
  Following is the content of my xsl-fo
 
  fo:block
  fo:external-graphic
 
 src=url(data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==)

/fo:external-graphic
 
 
  Kindly let me know how this could be resolved.
 
  Regards
  Javed Khan
 
 
 
  --
  View this message in context:
 http://apache-fop.1065347.n5.nabble.com/Adding-image-to-PDF-File-Error-tp38354.html
  Sent from the FOP - Users mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=38387i=0
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=38387i=1
 
 
 


 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=38387i=2
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=38387i=3



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-fop.1065347.n5.nabble.com/Adding-image-to-PDF-File-Error-tp38354p38387.html
  To unsubscribe from Adding image to PDF File : Error, click 
 herehttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=38354code=amF2YWt0aGFyQGdtYWlsLmNvbXwzODM1NHwtMTkwNDQxMzMxNQ==
 .
 NAMLhttp://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Adding-image-to-PDF-File-Error-tp38354p38390.html
Sent from the FOP - Users mailing list archive at Nabble.com.

Adding image to PDF File : Error

2013-04-18 Thread javakthar
HI

I get the following error when processing my agent to convert xml to PDF.
THe PDF document gets created but the image does not get created. 

pr 18, 2013 3:51:04 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: The file format is not supported. No
ImagePreloader found for
data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==
Apr 18, 2013 3:51:04 PM org.apache.fop.layoutmgr.table.TableLayoutManager
getNextKnuthElements
INFO: table-layout=fixed and width=auto, but auto-layout not supported
= assuming width=100%
Apr 18, 2013 3:51:04 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'verdanna,normal,400' not found. Substituting with
'any,normal,400'.


Following is the content of my xsl-fo 

fo:block
fo:external-graphic
src=url(data:image/jpeg;base64,R0lGODlhDwAPAKECzMzM/wAAACwADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==)
/fo:external-graphic


Kindly let me know how this could be resolved.

Regards
Javed Khan



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Adding-image-to-PDF-File-Error-tp38354.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



Error after updating trunk

2013-04-16 Thread Bonekrusher
Hi,

After update my local copy of trunk this morning and rebuilding FOP I get
the following error while running a FO to PDF transformation.

java.lang.IllegalStateException: Event model isn't consistent with the
EventProducer interface. Please rebuild FOP! Affected method:
org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow

Any ideas? I'll try to put a repo together, but this usually takes be about
a day..

Stack:

java.lang.IllegalStateException: Event model isn't consistent with the
EventProducer interface. Please rebuild FOP! Affected method:
org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow
at
org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:156)
at com.sun.proxy.$Proxy0.staticRegionOverflow(Unknown Source)
at
org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout(StaticContentLayoutManager.java:150)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion(PageSequenceLayoutManager.java:179)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:186)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:114)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:129)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
at
net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)
at
net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)
at
net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:443)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:404)
at net.sf.saxon.event.Sender.send(Sender.java:214)
at 
net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:30)
at com.sdi.apache.Testing.generateDoc(Testing.java:163)
at com.gui.MainForm.GeneratePdf(MainForm.java:159) 



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: Error after updating trunk

2013-04-16 Thread Luis Bernardo
You need to clean and build again on the command line. If using Eclipse, do
a refresh (after the build on the command line) and build again.


On Tue, Apr 16, 2013 at 11:19 AM, Bonekrusher djs...@yahoo.com wrote:

 Hi,

 After update my local copy of trunk this morning and rebuilding FOP I get
 the following error while running a FO to PDF transformation.

 java.lang.IllegalStateException: Event model isn't consistent with the
 EventProducer interface. Please rebuild FOP! Affected method:
 org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow

 Any ideas? I'll try to put a repo together, but this usually takes be about
 a day..

 Stack:

 java.lang.IllegalStateException: Event model isn't consistent with the
 EventProducer interface. Please rebuild FOP! Affected method:
 org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow
 at

 org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:156)
 at com.sun.proxy.$Proxy0.staticRegionOverflow(Unknown Source)
 at

 org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout(StaticContentLayoutManager.java:150)
 at

 org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion(PageSequenceLayoutManager.java:179)
 at

 org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:186)
 at

 org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:114)
 at

 org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
 at
 org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:129)
 at

 org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
 at
 org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
 at

 net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)
 at
 net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)
 at

 net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:443)
 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
 Source)
 at

 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
 at
 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
 at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:404)
 at net.sf.saxon.event.Sender.send(Sender.java:214)
 at
 net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:30)
 at com.sdi.apache.Testing.generateDoc(Testing.java:163)
 at com.gui.MainForm.GeneratePdf(MainForm.java:159)



 --
 View this message in context:
 http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

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




Re: Error after updating trunk

2013-04-16 Thread Bonekrusher
Thanks Luis.

Rebuild and Clean did not solve the issue. I was able to track down the
issue to a missing graphic. It seems after this last update, if the graphic
is missing, the error occurs. Once again, I'll try to come up with a repo.

Thanks for the help.





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326p38330.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: Error after updating trunk

2013-04-16 Thread Luis Bernardo
the error occurs if the graphic is missing or if it s present? is the
graphic in static content? does it fit in the side region? it looks like
you have overflow in the side region, which uses a new event producer
method added to trunk yesterday. I still think the issue can be fixed by a
clean + build (the exception also says so). does it happen from the command
line?


On Tue, Apr 16, 2013 at 1:38 PM, Bonekrusher djs...@yahoo.com wrote:

 Thanks Luis.

 Rebuild and Clean did not solve the issue. I was able to track down the
 issue to a missing graphic. It seems after this last update, if the graphic
 is missing, the error occurs. Once again, I'll try to come up with a repo.

 Thanks for the help.





 --
 View this message in context:
 http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326p38330.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

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




Re: Error after updating trunk

2013-04-16 Thread Bonekrusher
Forgot to mention, this is in the flow region.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326p38334.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: error with FOP1.1 (java.lang.AbstractMethodError: org.apache.batik.dom.AbstractDocument.getDocumentURI())

2013-04-15 Thread Luis Bernardo


Looks like no one replied to your question. Sorry for the delay...

There is an example in the code that shows how to do what you ask: 
embedding.ExampleXML2PDF under examples/embedding/java.



On 4/8/13 5:15 PM, pepgrifell wrote:

Hi,

I have update fop.jar from version 0.95 to 1.1. I have changed as well
related libraries (avalon-framework-4.2.0.jar, batik-all-1.7.jar  were
already in 0.95 and I have only changed xmlgraphics-commons*.jar (from 1.3.1
to 1.5).

In 0.95 I could generate a PDF from and XSL and XML but now I get this
error:

/
...
2013-04-08 15:22:04,148 DEBUG
[org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline] Image
loading using org.apache.fop.image.loader.batik.ImageLoaderSVG@ca1198 took 0
ms.
2013-04-08 15:22:04,148 DEBUG
[org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline] Caching
image: org.apache.xmlgraphics.image.loader.impl.ImageXMLDOM: null
(image/svg+xml)
...
java.lang.AbstractMethodError:
org.apache.batik.dom.AbstractDocument.getDocumentURI()Ljava/lang/String;
at
org.apache.fop.image.loader.batik.BatikUtil.cloneSVGDocument(BatikUtil.java:58)
at
org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:95)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:298)
at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:203)
at
org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1290)
at
org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:820)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785)
at
org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866)
at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678)
at
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913)
at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598)
at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceArea(AbstractPathOrientedRenderer.java:710)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585)
at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598)
at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738)
at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428)
at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352)
at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299)
at
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748)
at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273)
at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238)
at
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:191)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement

error with FOP1.1 (java.lang.AbstractMethodError: org.apache.batik.dom.AbstractDocument.getDocumentURI())

2013-04-08 Thread pepgrifell
Hi,

I have update fop.jar from version 0.95 to 1.1. I have changed as well
related libraries (avalon-framework-4.2.0.jar, batik-all-1.7.jar  were
already in 0.95 and I have only changed xmlgraphics-commons*.jar (from 1.3.1
to 1.5).

In 0.95 I could generate a PDF from and XSL and XML but now I get this
error:

/
...
2013-04-08 15:22:04,148 DEBUG
[org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline] Image
loading using org.apache.fop.image.loader.batik.ImageLoaderSVG@ca1198 took 0
ms.
2013-04-08 15:22:04,148 DEBUG
[org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline] Caching
image: org.apache.xmlgraphics.image.loader.impl.ImageXMLDOM: null
(image/svg+xml)
...
java.lang.AbstractMethodError:
org.apache.batik.dom.AbstractDocument.getDocumentURI()Ljava/lang/String;
at
org.apache.fop.image.loader.batik.BatikUtil.cloneSVGDocument(BatikUtil.java:58)
at
org.apache.fop.render.pdf.PDFImageHandlerSVG.handleImage(PDFImageHandlerSVG.java:95)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:228)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:184)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:149)
at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:298)
at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:203)
at
org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1290)
at
org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:820)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785)
at
org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866)
at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678)
at
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913)
at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598)
at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderReferenceArea(AbstractPathOrientedRenderer.java:710)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:585)
at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598)
at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451)
at
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738)
at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428)
at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352)
at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299)
at
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748)
at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273)
at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238)
at
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:191)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:261

RE: Error with missing glyphs in font.

2013-04-05 Thread Nathan Davis
Glenn,
That was the ticket.  I ended up opening the font with the program 
FontForge, and resaving it to rebuild the Unicode list.  Now it works fine 
inside of FOP.

Thanks,

Nathan Davis| Interface Analyst| vRad



This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. The 
company accepts no liability for any damage caused by any virus transmitted by 
this email. 


From: Glenn Adams [mailto:gl...@skynav.com] 
Sent: Thursday, April 04, 2013 5:36 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error with missing glyphs in font.

Keep in mind that character codes in FOP files always represent Unicode code 
points, not glyph codes. You should check the font's CMAP to see what Unicode 
codepoints it assigns to its glyphs. They will probably be in the PUA [1], 
i.e., from 0xE000 to 0xF8FF. Then you will need to use these codes in your FOP 
source file, e.g., by using numeric character references, like #xE00; etc.

You should not be specifying or using an external font metrics file.

[1] http://en.wikipedia.org/wiki/Private_Use_(Unicode)
On Thu, Apr 4, 2013 at 3:23 PM, Nathan Davis nathan.da...@vrad.com wrote:
Hello all,
        I've been chasing an issue with FOP for a little while and hit a bit of 
a wall.
        I've added a new font to the list of fonts we can use when rendering a 
PDF.  However no matter what character I enter, FOP gives me an error for every 
single letter.  For example, with the letter E it says 'WARNING: Glyph e 
(0x65, e) not available in font Code128.'
        There are lots of posts where people are trying to pass in non-english 
language, but in this case I'm passing in standard roman letters and numbers.  
Nothing fancy.

        In searching this error message I've found the recommendation to add 
the font to fop.xconf as described here: 
http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-collections-metrics 
 but I still get the error.
        The font I'm trying to get working here is a bar code font I downloaded 
from this site: http://www.jtbarton.com/Barcodes/Code128.aspx and I've opened 
up the font with a true type editor.  There's nothing unusual there.  Just a 
pretty standard font and looking at the character map, I can see an entry for 
0x65 that matches correctly and looks just like any other font.  So I'm really 
at a loss.  Any suggestions where to look next?

        Also, just an fyi, I know there's the option to add Barcode4j as an 
extension to FOP.  However since I'm using a system that has FOP embedded into 
it, it's impossible for us to add any extensions to FOP.  I've been down that 
road with the vendor and we're stuck with using a barcode font and manually 
calculating the checksum.


Thank you,

-Nathan Davis

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which
they are addressed. If you have received this email in error
please notify the system manager. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.


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

This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to which 
they are addressed. If you have received this email in error 
please notify the system manager. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for the 
presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.


Error with missing glyphs in font.

2013-04-04 Thread Nathan Davis
Hello all,
I've been chasing an issue with FOP for a little while and hit a bit of 
a wall. 
I've added a new font to the list of fonts we can use when rendering a 
PDF.  However no matter what character I enter, FOP gives me an error for every 
single letter.  For example, with the letter E it says 'WARNING: Glyph e 
(0x65, e) not available in font Code128.'
There are lots of posts where people are trying to pass in non-english 
language, but in this case I'm passing in standard roman letters and numbers.  
Nothing fancy.  

In searching this error message I've found the recommendation to add 
the font to fop.xconf as described here: 
http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-collections-metrics 
 but I still get the error. 
The font I'm trying to get working here is a bar code font I downloaded 
from this site: http://www.jtbarton.com/Barcodes/Code128.aspx and I've opened 
up the font with a true type editor.  There's nothing unusual there.  Just a 
pretty standard font and looking at the character map, I can see an entry for 
0x65 that matches correctly and looks just like any other font.  So I'm really 
at a loss.  Any suggestions where to look next?

Also, just an fyi, I know there's the option to add Barcode4j as an 
extension to FOP.  However since I'm using a system that has FOP embedded into 
it, it's impossible for us to add any extensions to FOP.  I've been down that 
road with the vendor and we're stuck with using a barcode font and manually 
calculating the checksum.  


Thank you,

-Nathan Davis

This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to which 
they are addressed. If you have received this email in error 
please notify the system manager. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for the 
presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.


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



Re: Error with missing glyphs in font.

2013-04-04 Thread Glenn Adams
Keep in mind that character codes in FOP files always represent Unicode
code points, not glyph codes. You should check the font's CMAP to see what
Unicode codepoints it assigns to its glyphs. They will probably be in the
PUA [1], i.e., from 0xE000 to 0xF8FF. Then you will need to use these codes
in your FOP source file, e.g., by using numeric character references, like
#xE00; etc.

You should not be specifying or using an external font metrics file.

[1] http://en.wikipedia.org/wiki/Private_Use_(Unicode)

On Thu, Apr 4, 2013 at 3:23 PM, Nathan Davis nathan.da...@vrad.com wrote:

 Hello all,
 I've been chasing an issue with FOP for a little while and hit a
 bit of a wall.
 I've added a new font to the list of fonts we can use when
 rendering a PDF.  However no matter what character I enter, FOP gives me an
 error for every single letter.  For example, with the letter E it says
 'WARNING: Glyph e (0x65, e) not available in font Code128.'
 There are lots of posts where people are trying to pass in
 non-english language, but in this case I'm passing in standard roman
 letters and numbers.  Nothing fancy.

 In searching this error message I've found the recommendation to
 add the font to fop.xconf as described here:
 http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-collections-metrics
  but I still get the error.
 The font I'm trying to get working here is a bar code font I
 downloaded from this site: http://www.jtbarton.com/Barcodes/Code128.aspxand 
 I've opened up the font with a true type editor.  There's nothing
 unusual there.  Just a pretty standard font and looking at the character
 map, I can see an entry for 0x65 that matches correctly and looks just like
 any other font.  So I'm really at a loss.  Any suggestions where to look
 next?

 Also, just an fyi, I know there's the option to add Barcode4j as
 an extension to FOP.  However since I'm using a system that has FOP
 embedded into it, it's impossible for us to add any extensions to FOP.
  I've been down that road with the vendor and we're stuck with using a
 barcode font and manually calculating the checksum.


 Thank you,

 -Nathan Davis

 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to which
 they are addressed. If you have received this email in error
 please notify the system manager. Please note that any views or
 opinions presented in this email are solely those of the author
 and do not necessarily represent those of the company. Finally,
 the recipient should check this email and any attachments for the
 presence of viruses. The company accepts no liability for any
 damage caused by any virus transmitted by this email.


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




Re: Table in ListItemBody Error

2013-02-20 Thread Pascal Sancho
Hi,

I get an IO error while reading your rtf with LibreOffice 4.
Not tried with Word, I don't get it.

2013/2/19  markus.sticker.e...@zf.com:
 Hi Pascal,

 I tried to produce RTF with POI, OpenOffice and Microsoft Word.
 If got allways valid RTF-Docs with nasted tables in lists, like shown
 in the pdf (made by Word with handmade RTF ). I tried to trace the process:
 The process set the chlidren in the right order ( RtfContainer.setChildren() 
 ).
 But if I trace the method RtfContainer.writeRtfContent() the order is changed 
 (???).
 Maybe you can give me a hint for finding the right code part.

 Best regards

 Markus


 -Ursprüngliche Nachricht-
 Von: Pascal Sancho [mailto:psancho@gmail.com]
 Gesendet: Dienstag, 19. Februar 2013 16:53

 Hi markus,

 I'm not familiar with RTF, but I'm not sure that this format allows table to 
 be nested in list.
 There are some limitation with such output.

 2013/2/19  markus.sticker.e...@zf.com:
 Sorry but it seems that the rtf is empty.

 Von: Sticker Markus EXT FRD EPOS
 Gesendet: Dienstag, 19. Februar 2013 13:54

 Hi,

 tried to have a table in a List but like in the PDF.

 But I’ve got the table under the list. This is cause by the class
 RtfElement maybe. Because if the function getChildren is called the
 table is returned after the ListItems.

 Maybe somebody has an explanation for me why this is done in this way.

 Oh, by the way I fixed the List Numbering Issue.

 Mit freundlichen Grüßen/Kind regards

-- 
pascal

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



AW: Table in ListItemBody Error

2013-02-20 Thread markus.sticker.epos
Hi,

I tried it with OpenOffice 3.4.1.
There was no problem for open it.

I seached for the context the render process uses 
to build the document.
I think the RTFHandler is doing it in the right order, 
depending on the foTree.
Between paring the fo-document and start writing the
RTF the order of the element is changed.
So what is called between these steps?
Thanks for your help

Markus


-Ursprüngliche Nachricht-
Von: Pascal Sancho [mailto:psancho@gmail.com] 
Gesendet: Mittwoch, 20. Februar 2013 11:41
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Table in ListItemBody Error

Hi,

I get an IO error while reading your rtf with LibreOffice 4.
Not tried with Word, I don't get it.

2013/2/19  markus.sticker.e...@zf.com:
 Hi Pascal,

 I tried to produce RTF with POI, OpenOffice and Microsoft Word.
 If got allways valid RTF-Docs with nasted tables in lists, like shown 
 in the pdf (made by Word with handmade RTF ). I tried to trace the process:
 The process set the chlidren in the right order ( RtfContainer.setChildren() 
 ).
 But if I trace the method RtfContainer.writeRtfContent() the order is changed 
 (???).
 Maybe you can give me a hint for finding the right code part.

 Best regards

 Markus


 -Ursprüngliche Nachricht-
 Von: Pascal Sancho [mailto:psancho@gmail.com]
 Gesendet: Dienstag, 19. Februar 2013 16:53

 Hi markus,

 I'm not familiar with RTF, but I'm not sure that this format allows table to 
 be nested in list.
 There are some limitation with such output.

 2013/2/19  markus.sticker.e...@zf.com:
 Sorry but it seems that the rtf is empty.

 Von: Sticker Markus EXT FRD EPOS
 Gesendet: Dienstag, 19. Februar 2013 13:54

 Hi,

 tried to have a table in a List but like in the PDF.

 But I’ve got the table under the list. This is cause by the class 
 RtfElement maybe. Because if the function getChildren is called the 
 table is returned after the ListItems.

 Maybe somebody has an explanation for me why this is done in this way.

 Oh, by the way I fixed the List Numbering Issue.

 Mit freundlichen Grüßen/Kind regards

--
pascal

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



Table in ListItemBody Error

2013-02-19 Thread markus.sticker.epos
Hi,

 

tried to have a table in a List but like in the PDF.

But I've got the table under the list. This is cause by 
the class RtfElement maybe. Because if the function 
getChildren is called the table is returned after the ListItems.

 

Maybe somebody has an explanation for me why this is done in
this way.

 

Oh, by the way I fixed the List Numbering Issue.

Mit freundlichen Grüßen/Kind regards

Markus Sticker
Technik ZF-Konzern/Operations and Technology ZF Group
Infrastruktur/Infrastructure (OTEP4)

ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone  +49 7541 77-7644, Telefax/Fax  +49 7541 77-907644
markus.sticker.e...@zf.com


Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. 
Giorgio Behr 
Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. 
Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, 
Reinhard Buhl, Rolf Lutz, Wilhelm Rehm

Sitz/Headquarters: Friedrichshafen 
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the 
municipal court of Ulm HRB 630206

 



list.pdf
Description: list.pdf


list.rtf
Description: list.rtf


list.fo
Description: list.fo

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

Re: Table in ListItemBody Error

2013-02-19 Thread Pascal Sancho
Hi markus,

I'm not familiar with RTF, but I'm not sure that this format allows
table to be nested in list.
There are some limitation with such output.

2013/2/19  markus.sticker.e...@zf.com:
 Sorry but it seems that the rtf is empty.

 Von: Sticker Markus EXT FRD EPOS
 Gesendet: Dienstag, 19. Februar 2013 13:54

 Hi,

 tried to have a table in a List but like in the PDF.

 But I’ve got the table under the list. This is cause by
 the class RtfElement maybe. Because if the function
 getChildren is called the table is returned after the ListItems.

 Maybe somebody has an explanation for me why this is done in
 this way.

 Oh, by the way I fixed the List Numbering Issue.

 Mit freundlichen Grüßen/Kind regards

-- 
pascal

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



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

2012-11-04 Thread Jeremias Maerki
Hi Reeve,
the reason for the change was to support line styles other than solid,
dashed and dotted and the collapsing border model on tables. 0.20.5
painted simple lines, resulting in rectangles that effectively
overlapped (potentially producing ugly side-effects themselves). During
the redesign this was changed to using clip paths to cut the lines to
the exact shape that we need. Notes at [1] show why the current model
was chosen. Over time, it has come up a number of times (this isn't the
first time) that anti-aliassing features in various PDF viewers cause
suboptimal results (on screen only, NEVER in print because there is no
anti-aliassing there) with FOP's current approach.

To fix the problem and still preserve the current feature-richness,
there will need to be improvements on the way borders are painted, but
they will not be easy to implement:

The painting of the border grid of a table has to be changed to
group the painting of border segments together. The IFRenderer would
have to be extended with an optimizer of some sorts that can try (!) to
combine the various grid segments to larger combined structures, ex.
longer lines of the same color. That may even have an influence on the
structure of the area tree. There's also a relationship to the z-index
feature (grouping, buffering and ordering of painting operations).
Different line thicknesses may effectively get in the way of that
optimization.

Ideally, a table with a simple black grid would be painted with just the
minimal set of lines (without clip paths). That would basically
guarantee no side-effects. But that is only possible for the simple
cases. More complex cases require the tricks we use here to paint the
border segments and that may easily lead to the unwanted visual
artifacts we're seeing today. So, I don't think there is a silver bullet.
There's room for optimization but not without an influence on the code
complexity. And all that just because some PDF viewers produce different
results for two lines with the same thickness. OTOH, it has the
potential to produce slightly smaller output files.

Anti-aliassing's a bitch that's great for text but only produces issues
with vector graphics.

I do remember extensive discussions on border painting during 2003/2004
that effectively showed the complexity of getting border painting right.

[1] http://wiki.apache.org/xmlgraphics-fop/CollapsingBorderModel

Jeremias Maerki


On 04.11.2012 05:16:10 reevev wrote:
 Hi,
 
 Thanks for providing the sample.  I agree that this illustrates that the
 various PDF viewers are not doing the right thing with the line thickness
 and I'm not disagreeing with this point.  However the fact remains that fop
 0.20.5 output the borders in a method that the PDF viewers displayed
 correctly and newer versions of fop don't produce the desired output.
 
 By changing to fop 1.0 (or 1.1) we now are seeing output that isn't rendered
 correctly in the industry standard PDF viewer, as well as other common PDF
 viewers, and this is why I say the bug is with FOP.  It may be technically
 correct output, but if it isn't displayed correctly anywhere it is besides
 the point.
 
 Is there somewhere I can find out more on why the border rendering was
 changed?  I'm guessing there was a reason it was changed.  If I wanted to
 change the source so it rendered the old way it would probably create
 different issues that I'm not aware of.
 
 Thanks,
 
 Reeve.
 
 
 
 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37244.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


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



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

2012-11-03 Thread Luis Bernardo


First, I understand why this issue is annoying. When I open the document 
Adobe defaults in my monitor to a 170% zoom and the problem is clearly 
visible. Incidentally the problem is not visible at 100%.


But I looked at the document and can guarantee that the problem is with 
Adobe Reader. The thickness of the segments are always the same. In FOP 
0.20.5 the cell that spans three columns is drawn with 4 segments. In 
FOP 1.0 the cell is drawn with 8 segments. Maybe due to some rounding 
error Adobe is drawing the middle segments at a different thickness for 
some magnification values, but in the PDF the thickness is always the same.


I suggest you change your table layout. Maybe by nesting tables you can 
achieve the same visual output without needing to use spanning across 
columns...


On 11/2/12 1:55 PM, reevev wrote:

Hi,

Thanks for your reply.  While I can confirm that disabling Enhance thin
lines corrects the display it doesn't solve the issue that the same
templates rendered correctly even with this option enabled when we use
0.20.5 to generate the pdf.

Our issue is that Enhance thin lines is turned on by default and for most
users they will end up seeing a poor looking PDF now that we've started
using Fop 1.0, vs. a correct looking PDF prior to the upgrade, so from the
end user's perspective this is broken.  Is there any way we can have the
same sort of rendering used in 0.20.5 for table borders?

Thanks,

Reeve.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37229.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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




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



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

2012-11-03 Thread reevev
Hi,

The problem exists with other PDF viewers as well. I've tried foxit reader
and it has the same issues.

We are looking at re-writing templates not to use spanned columns where
possible, and for other cases where this is not possible we will have to
fall back to fop 0.20.5 which works as expected.

This is  definitely a fop isuse and not an Adobe Reader issue.  The fact
that we have a template transformed to pdf in fop 0.20.5 which renders
correctly in both Adobe Reader and Foxit Reader, yet when transformed with
fop 1.0 it renders incorrectly in both Adobe Reader and Foxit Reader points
to a fop issue.  The only part of the equation that has changed is replacing
fop 0.20.5 with fop 1.0.

We'll just treat it as a bug and if we get time to look into the source
ourselves we will do so, otherwise will have to be mindful of the issue
going forward.

Thanks,

Reeve.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37241.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



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

2012-11-03 Thread reevev
Hi,

Thanks for providing the sample.  I agree that this illustrates that the
various PDF viewers are not doing the right thing with the line thickness
and I'm not disagreeing with this point.  However the fact remains that fop
0.20.5 output the borders in a method that the PDF viewers displayed
correctly and newer versions of fop don't produce the desired output.

By changing to fop 1.0 (or 1.1) we now are seeing output that isn't rendered
correctly in the industry standard PDF viewer, as well as other common PDF
viewers, and this is why I say the bug is with FOP.  It may be technically
correct output, but if it isn't displayed correctly anywhere it is besides
the point.

Is there somewhere I can find out more on why the border rendering was
changed?  I'm guessing there was a reason it was changed.  If I wanted to
change the source so it rendered the old way it would probably create
different issues that I'm not aware of.

Thanks,

Reeve.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37244.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



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

2012-11-02 Thread reevev
Hi,

This does appear to be a fop bug and not a rendering issue.  We have
templates that render correctly with fop 0.20.5, however in fop 1.0 we are
seeing this exact issue with the middle section of the spanned columns
showing a thicker border.

Has anyone found a solution to this issue?

Note the issue is still present when zooming in to 800%.

Thanks,

Reeve.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37226.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



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

2012-11-02 Thread Pascal Sancho
Hi,
border drawing design is quite different in FOP current Vs FOP 0.2x.
The former was quite imprecise, and could not easily support extended
border features.

I've tried your test case (from archive [1]) against Acrobat Reader X,
and at normal zoom the display depends on Enhance Thin Lines option;
if checked, there is no issue.

When zooming, the issue disappears. So this appears to be related on
how the viewer shows little objects

[1] 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-td17999.html#a37226

2012/11/2 reevev re...@xplosiventerprises.com:
 Hi,

 This does appear to be a fop bug and not a rendering issue.  We have
 templates that render correctly with fop 0.20.5, however in fop 1.0 we are
 seeing this exact issue with the middle section of the spanned columns
 showing a thicker border.
 Has anyone found a solution to this issue?
 Note the issue is still present when zooming in to 800%.


-- 
pascal

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



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

2012-11-02 Thread reevev
Hi,

Thanks for your reply.  While I can confirm that disabling Enhance thin
lines corrects the display it doesn't solve the issue that the same
templates rendered correctly even with this option enabled when we use
0.20.5 to generate the pdf.

Our issue is that Enhance thin lines is turned on by default and for most
users they will end up seeing a poor looking PDF now that we've started
using Fop 1.0, vs. a correct looking PDF prior to the upgrade, so from the
end user's perspective this is broken.  Is there any way we can have the
same sort of rendering used in 0.20.5 for table borders?

Thanks,

Reeve.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37229.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



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

2012-11-02 Thread Chris Bowditch

On 02/11/2012 13:55, reevev wrote:

Hi,


Hi Reeve,



Thanks for your reply.  While I can confirm that disabling Enhance thin
lines corrects the display it doesn't solve the issue that the same
templates rendered correctly even with this option enabled when we use
0.20.5 to generate the pdf.

Our issue is that Enhance thin lines is turned on by default and for most
users they will end up seeing a poor looking PDF now that we've started
using Fop 1.0, vs. a correct looking PDF prior to the upgrade, so from the
end user's perspective this is broken.  Is there any way we can have the
same sort of rendering used in 0.20.5 for table borders?


No such option exists today. However, FOP is an open source project, so 
patches are welcome :)


However, please be warned that the table border drawing code is very 
complicated so altered the way borders are drawn to work around Acrobat 
bugs will not be trivial.


Thanks,

Chris



Thanks,

Reeve.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Cell-border-rendering-error-thicker-with-number-column-spanned-tp17999p37229.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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






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



Re: Small error to the documentation

2012-07-18 Thread Chris Bowditch

On 14/07/2012 22:14, Glenn Adams wrote:

Hi Glenn,

I've moved this discussion to fop-dev as its now more relevant there.

the source for this file is 
under src/documentation/content/xdocs/compliance.ihtml; you can create 
a bug attaching a patch, or if it is a simple change, just send the 
diff or describe it in an email


Actually the changes you made to update the documentation for the 1.1 
release don't appear to have yet been merged back to trunk. This error 
only exists in the 1.1 branch. I have committed a fix to the 1.1 branch 
in revision: 1362810, but this raises the question on when the changes 
for the 1.1 documentation will be merged back to trunk?


Thanks,

Chris



On Sat, Jul 14, 2012 at 12:08 PM, polymorphisme 
webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org wrote:


Hi,

I have see an error to the documentation :
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-script

How can I do a patch to the documentation ?

Regards.

--
View this message in context:

http://apache-fop.1065347.n5.nabble.com/Small-error-to-the-documentation-tp36342.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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






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



Small error to the documentation

2012-07-14 Thread polymorphisme
Hi,

I have see an error to the documentation :
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-script

How can I do a patch to the documentation ?

Regards.

--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Small-error-to-the-documentation-tp36342.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: getting error when use -print

2012-05-17 Thread pr4321

thanks you its working

lmpmbernardo wrote:
 
 
 There is indeed a bug. For now you can do this:
 
 fop xslfo.fo -print 1
 
 note: I don't know if it will print... I can confirm it does send the 
 job to the printer, but in my case the page comes blank. the issue may 
 be with the printer or with FOP...
 
 On 5/16/12 6:16 PM, pr4321 wrote:
 I am getting the following error when using to print an .fo file with
 usig
 fop.

 C:\fop xslfo.fo -print
 May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP
 SEVERE: Exception
 java.lang.ArrayIndexOutOfBoundsException: 2
  at
 org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL
 ineOptions.java:559)
  at
 org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
 .java:325)
  at
 org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
 62)
  at org.apache.fop.cli.Main.startFOP(Main.java:158)
  at org.apache.fop.cli.Main.main(Main.java:205)


 XSLFO.fo file content:

 ?xml version=1.0 encoding=ISO-8859-1?

 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

 fo:layout-master-set
fo:simple-page-master master-name=A4
  fo:region-body /
/fo:simple-page-master
 /fo:layout-master-set

 fo:page-sequence master-reference=A4
fo:flow flow-name=xsl-region-body
  fo:block text-indent=80mm space-before=0mmREPORT
 STATUS/fo:block
  fo:block text-indent=80mm
 space-before=0mm--/fo:block
/fo:flow
 /fo:page-sequence

 /fo:root


 COMMAND IS;C:\fop xslfo.fo -print

 anyone please solve my problem

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

-- 
View this message in context: 
http://old.nabble.com/getting-error-when-use--print-tp33859521p33865382.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: getting error when use -print

2012-05-17 Thread pr4321

actually i installed bullzip free pdf printer as default printer.
when i give the command
fop xslfo.fo -print 1 
it will send to bullzip pdf printer it gives the output in pdf format,but
when i change my default 
printer to epson fx-2175 it prints an empty page but in bullzip pdf printer
it shows the matter..
any reply


lmpmbernardo wrote:
 
 
 There is indeed a bug. For now you can do this:
 
 fop xslfo.fo -print 1
 
 note: I don't know if it will print... I can confirm it does send the 
 job to the printer, but in my case the page comes blank. the issue may 
 be with the printer or with FOP...
 
 On 5/16/12 6:16 PM, pr4321 wrote:
 I am getting the following error when using to print an .fo file with
 usig
 fop.

 C:\fop xslfo.fo -print
 May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP
 SEVERE: Exception
 java.lang.ArrayIndexOutOfBoundsException: 2
  at
 org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL
 ineOptions.java:559)
  at
 org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
 .java:325)
  at
 org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
 62)
  at org.apache.fop.cli.Main.startFOP(Main.java:158)
  at org.apache.fop.cli.Main.main(Main.java:205)


 XSLFO.fo file content:

 ?xml version=1.0 encoding=ISO-8859-1?

 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

 fo:layout-master-set
fo:simple-page-master master-name=A4
  fo:region-body /
/fo:simple-page-master
 /fo:layout-master-set

 fo:page-sequence master-reference=A4
fo:flow flow-name=xsl-region-body
  fo:block text-indent=80mm space-before=0mmREPORT
 STATUS/fo:block
  fo:block text-indent=80mm
 space-before=0mm--/fo:block
/fo:flow
 /fo:page-sequence

 /fo:root


 COMMAND IS;C:\fop xslfo.fo -print

 anyone please solve my problem

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

-- 
View this message in context: 
http://old.nabble.com/getting-error-when-use--print-tp33859521p33868502.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



getting error when use -print

2012-05-16 Thread pr4321

I am getting the following error when using to print an .fo file with usig
fop.

C:\fop xslfo.fo -print
May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.ArrayIndexOutOfBoundsException: 2
at
org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL
ineOptions.java:559)
at
org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
.java:325)
at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
62)
at org.apache.fop.cli.Main.startFOP(Main.java:158)
at org.apache.fop.cli.Main.main(Main.java:205)


XSLFO.fo file content:

?xml version=1.0 encoding=ISO-8859-1?

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

fo:layout-master-set
  fo:simple-page-master master-name=A4
fo:region-body /
  /fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=A4
  fo:flow flow-name=xsl-region-body
fo:block text-indent=80mm space-before=0mmREPORT STATUS/fo:block
fo:block text-indent=80mm 
space-before=0mm--/fo:block
  /fo:flow
/fo:page-sequence

/fo:root 


COMMAND IS;C:\fop xslfo.fo -print

anyone please solve my problem

Regards,
Murali
-- 
View this message in context: 
http://old.nabble.com/getting-error-when-use--print-tp33859521p33859521.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: getting error when use -print

2012-05-16 Thread Luis Bernardo


There is indeed a bug. For now you can do this:

fop xslfo.fo -print 1

note: I don't know if it will print... I can confirm it does send the 
job to the printer, but in my case the page comes blank. the issue may 
be with the printer or with FOP...


On 5/16/12 6:16 PM, pr4321 wrote:

I am getting the following error when using to print an .fo file with usig
fop.

C:\fop xslfo.fo -print
May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.ArrayIndexOutOfBoundsException: 2
 at
org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL
ineOptions.java:559)
 at
org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
.java:325)
 at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
62)
 at org.apache.fop.cli.Main.startFOP(Main.java:158)
 at org.apache.fop.cli.Main.main(Main.java:205)


XSLFO.fo file content:

?xml version=1.0 encoding=ISO-8859-1?

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

fo:layout-master-set
   fo:simple-page-master master-name=A4
 fo:region-body /
   /fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=A4
   fo:flow flow-name=xsl-region-body
 fo:block text-indent=80mm space-before=0mmREPORT STATUS/fo:block
fo:block text-indent=80mm 
space-before=0mm--/fo:block
   /fo:flow
/fo:page-sequence

/fo:root


COMMAND IS;C:\fop xslfo.fo -print

anyone please solve my problem

Regards,
Murali



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



Re: foprc: 1: Syntax error: newline unexpected

2012-04-19 Thread greencoppermine
Thank you for your reply. I have tried using some of the trunk 
versions of FOP, but in all cases I get an exception:

Exception in thread main java.lang.NoSuchMethodError: 
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)
Ljava/util/Iterator;
at 
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(Elemen
tMappingRegistry.java:74)
at 
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegist
ry.java:66)
at 
org.apache.fop.apps.FopFactory.init(FopFactory.java:166)
at 
org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190)
at 
org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java
:124)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:208)

Currently I think I'm going to give up. I have no problems with the 
arabic text in all the other formats and I'm possibly just going to 
convert the HTML into PDF and then settle for that.

On Thu, 19 Apr 2012 06:41:24 +0200 Glenn Adams gl...@skynav.com 
wrote:
firstly, FOP 1.0 does not support Arabic or bidirectional 
languages;
however, the current development trunk, which will lead to a new 
version
FOP 1.1, does support Arabic; to download a nightly build snapshot 
of the
current trunk, see [1]; for preliminary documentation on complex 
scripts
support, see [2]; pay close attention to supported fonts;

secondly, the $HOME/.foprc file is for configuring the fop shell 
script,
e.g., setting shell or environment variables; this is different 
from using
an fop.xconf file with the Fop java application; you need to 
specify a
command line option to use an xconf configuration file, e.g., fop -
c
fop.xconf ..., more about which see [3]


[1] http://ci.apache.org/projects/xmlgraphics/fop/snapshots/
[2] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html
[3] http://xmlgraphics.apache.org/fop/trunk/configuration.html

On Wed, Apr 18, 2012 at 10:14 PM, greencopperm...@hushmail.com 
wrote:

 Hi.

 I'm on Debian Linux trying to change the default font for FOP so
 that the font contains Arabic glyphs.

 When I run FOP I get the error:

 .foprc: 1: Syntax error: newline unexpected

 My .foprc looks like this:

 fop version=1.0
  renderers
renderer mime=application/pdf
  fonts
auto-detect/
  /fonts
/renderer
  /renderers
 /fop

 If I squash that hole section together into a single line, I
 instead get this error:

 .foprc: 1: Syntax error: redirection unexpected

 I'm using FOP Version 1.0.

 Is this a bug in FOP or is there a way around it?

 Best regards

 Martin


 -

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




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



Re: foprc: 1: Syntax error: newline unexpected

2012-04-19 Thread Glenn Adams
don't give up so easily... i took the effort to help you, let's see if we
can get you working; i'm using the arabic formatting regularly, so i know
it is working

i think your problem is that you need to set the FOP_HOME environment
variable to the directory where you installed the nightly build; that way,
it will properly initialize the LOCALCLASSPATH variable in the fop script



On Thu, Apr 19, 2012 at 3:42 PM, greencopperm...@hushmail.com wrote:

 Thank you for your reply. I have tried using some of the trunk
 versions of FOP, but in all cases I get an exception:

 Exception in thread main java.lang.NoSuchMethodError:
 org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)
 Ljava/util/Iterator;
at
 org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(Elemen
 tMappingRegistry.java:74)
at
 org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegist
 ry.java:66)
at
 org.apache.fop.apps.FopFactory.init(FopFactory.java:166)
at
 org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190)
at
 org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java
 :124)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:208)

 Currently I think I'm going to give up. I have no problems with the
 arabic text in all the other formats and I'm possibly just going to
 convert the HTML into PDF and then settle for that.

 On Thu, 19 Apr 2012 06:41:24 +0200 Glenn Adams gl...@skynav.com
 wrote:
 firstly, FOP 1.0 does not support Arabic or bidirectional
 languages;
 however, the current development trunk, which will lead to a new
 version
 FOP 1.1, does support Arabic; to download a nightly build snapshot
 of the
 current trunk, see [1]; for preliminary documentation on complex
 scripts
 support, see [2]; pay close attention to supported fonts;
 
 secondly, the $HOME/.foprc file is for configuring the fop shell
 script,
 e.g., setting shell or environment variables; this is different
 from using
 an fop.xconf file with the Fop java application; you need to
 specify a
 command line option to use an xconf configuration file, e.g., fop -
 c
 fop.xconf ..., more about which see [3]
 
 
 [1] http://ci.apache.org/projects/xmlgraphics/fop/snapshots/
 [2] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html
 [3] http://xmlgraphics.apache.org/fop/trunk/configuration.html
 
 On Wed, Apr 18, 2012 at 10:14 PM, greencopperm...@hushmail.com
 wrote:
 
  Hi.
 
  I'm on Debian Linux trying to change the default font for FOP so
  that the font contains Arabic glyphs.
 
  When I run FOP I get the error:
 
  .foprc: 1: Syntax error: newline unexpected
 
  My .foprc looks like this:
 
  fop version=1.0
   renderers
 renderer mime=application/pdf
   fonts
 auto-detect/
   /fonts
 /renderer
   /renderers
  /fop
 
  If I squash that hole section together into a single line, I
  instead get this error:
 
  .foprc: 1: Syntax error: redirection unexpected
 
  I'm using FOP Version 1.0.
 
  Is this a bug in FOP or is there a way around it?
 
  Best regards
 
  Martin
 
 
  -
 
  To unsubscribe, e-mail: fop-users-
 unsubscr...@xmlgraphics.apache.org
  For additional commands, e-mail: fop-users-
 h...@xmlgraphics.apache.org
 
 


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




Re: foprc: 1: Syntax error: newline unexpected

2012-04-19 Thread Luis Bernardo
I think that's the problem too. I think that exception happens when you 
run FOP trunk with the xmlgraphics-common jar file from FOP 1.0 (note 
that the jar version went from 1.4 to 1.5).


On 4/19/12 11:37 PM, Glenn Adams wrote:
don't give up so easily... i took the effort to help you, let's see if 
we can get you working; i'm using the arabic formatting regularly, so 
i know it is working


i think your problem is that you need to set the FOP_HOME environment 
variable to the directory where you installed the nightly build; that 
way, it will properly initialize the LOCALCLASSPATH variable in the 
fop script




On Thu, Apr 19, 2012 at 3:42 PM, greencopperm...@hushmail.com 
mailto:greencopperm...@hushmail.com wrote:


Thank you for your reply. I have tried using some of the trunk
versions of FOP, but in all cases I get an exception:

Exception in thread main java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)
Ljava/util/Iterator;
   at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(Elemen
tMappingRegistry.java:74)
   at
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegist
ry.java:66)
   at
org.apache.fop.apps.FopFactory.init(FopFactory.java:166)
   at
org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190)
   at
org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java
:124)
   at org.apache.fop.cli.Main.startFOP(Main.java:160)
   at org.apache.fop.cli.Main.main(Main.java:208)

Currently I think I'm going to give up. I have no problems with the
arabic text in all the other formats and I'm possibly just going to
convert the HTML into PDF and then settle for that.

On Thu, 19 Apr 2012 06:41:24 +0200 Glenn Adams gl...@skynav.com
mailto:gl...@skynav.com
wrote:
firstly, FOP 1.0 does not support Arabic or bidirectional
languages;
however, the current development trunk, which will lead to a new
version
FOP 1.1, does support Arabic; to download a nightly build snapshot
of the
current trunk, see [1]; for preliminary documentation on complex
scripts
support, see [2]; pay close attention to supported fonts;

secondly, the $HOME/.foprc file is for configuring the fop shell
script,
e.g., setting shell or environment variables; this is different
from using
an fop.xconf file with the Fop java application; you need to
specify a
command line option to use an xconf configuration file, e.g., fop -
c
fop.xconf ..., more about which see [3]


[1] http://ci.apache.org/projects/xmlgraphics/fop/snapshots/
[2] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html
[3] http://xmlgraphics.apache.org/fop/trunk/configuration.html

On Wed, Apr 18, 2012 at 10:14 PM, greencopperm...@hushmail.com
mailto:greencopperm...@hushmail.com
wrote:

 Hi.

 I'm on Debian Linux trying to change the default font for FOP so
 that the font contains Arabic glyphs.

 When I run FOP I get the error:

 .foprc: 1: Syntax error: newline unexpected

 My .foprc looks like this:

 fop version=1.0
 renderers
 renderer mime=application/pdf
 fonts
 auto-detect/
 /fonts
 /renderer
 /renderers
 /fop

 If I squash that hole section together into a single line, I
 instead get this error:

 .foprc: 1: Syntax error: redirection unexpected

 I'm using FOP Version 1.0.

 Is this a bug in FOP or is there a way around it?

 Best regards

 Martin


 -

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




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






foprc: 1: Syntax error: newline unexpected

2012-04-18 Thread greencoppermine
Hi.

I'm on Debian Linux trying to change the default font for FOP so 
that the font contains Arabic glyphs.

When I run FOP I get the error:

.foprc: 1: Syntax error: newline unexpected

My .foprc looks like this:

fop version=1.0
  renderers
renderer mime=application/pdf
  fonts
auto-detect/
  /fonts
/renderer
  /renderers
/fop

If I squash that hole section together into a single line, I 
instead get this error:

.foprc: 1: Syntax error: redirection unexpected

I'm using FOP Version 1.0.

Is this a bug in FOP or is there a way around it?

Best regards

Martin


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



Re: tablePositions empty assertion error in version 1.0

2012-03-14 Thread Glenn Adams
A little experimentation quickly shows:

(1) removing all but one row doesn't change behavior; however
(2) removing the fo:inline parent that contains the table (and moving the
font size property to the parent fo:block) fixes the problem

Did you really intend to nest the table in an inline?

G.

On Wed, Mar 14, 2012 at 11:17 AM, Thomas Morrison 
thomas.morri...@microfocus.com wrote:

 The attached fo document causes the tablePositions assertion, requesting
 that the fo be sent.

 The full output of the rendering is:

 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font Symbol,normal,700 not found. Substituting with
 Symbol,normal,400.
 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font ZapfDingbats,normal,700 not found. Substituting with
 ZapfDingbats,normal,400.
 Mar 14, 2012 11:40:07 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 The table-header is rendered at the end of the table.

 ---

 The PDF is renedered the same on 0.95, although the output is different,
 not mentioning the two WARNINGs:
 Mar 14, 2012 11:51:29 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 ---

 The table-header is rendered correctly in 0.20.5 with the following
 output:
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [WARNING] Sum of fixed column widths 50 greater than maximum
 specified IPD 0
 [INFO] [2]
 [INFO] Parsing of document complete, stopping renderer

 I have searched for a possible cause, and would like a workaround if not
 a fix.  I have so far been unable to determine what aspect of the table
 header may be triggering this behavior.

 Tom Morrison
 This message has been scanned by MailController -
 portal1.mailcontroller.co.uk

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



RE: tablePositions empty assertion error in version 1.0

2012-03-14 Thread Thomas Morrison
Thanks, Glenn, for the quick response.  I have been experimenting too, but am 
nowhere near an expert on FO.  (I have a customer wanting to use XML 
publishing.)

 

The document was created using Stylus Studio using the WYSIWYG editor.  I will 
retrace my steps to see where I created the fo:inline (which does seem rather 
useless).

 

It is interesting to note, though, that 0.20.5 and RenderX (as delivered in 
Stylus Studio) both render this in the ‘expected’ manner.

 

I will test your work around and get the information to the customer.  Maybe we 
will just have to add ‘remove fo:inline’ as part of the recipe.

 

Tom

 

From: Glenn Adams [mailto:gl...@skynav.com] 
Sent: Wednesday, March 14, 2012 2:12 PM
To: fop-users@xmlgraphics.apache.org
Cc: Thomas Morrison
Subject: Re: tablePositions empty assertion error in version 1.0

 

A little experimentation quickly shows:

 

(1) removing all but one row doesn't change behavior; however

(2) removing the fo:inline parent that contains the table (and moving the font 
size property to the parent fo:block) fixes the problem

 

Did you really intend to nest the table in an inline?

 

G.

 

On Wed, Mar 14, 2012 at 11:17 AM, Thomas Morrison 
thomas.morri...@microfocus.com wrote:

The attached fo document causes the tablePositions assertion, requesting
that the fo be sent.

The full output of the rendering is:

Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Font Symbol,normal,700 not found. Substituting with
Symbol,normal,400.
Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Font ZapfDingbats,normal,700 not found. Substituting with
ZapfDingbats,normal,400.
Mar 14, 2012 11:40:07 AM
org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
SEVERE: tablePositions empty. Please send your FO file to
fop-users@xmlgraphics.apache.org

The table-header is rendered at the end of the table.

---

The PDF is renedered the same on 0.95, although the output is different,
not mentioning the two WARNINGs:
Mar 14, 2012 11:51:29 AM
org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
SEVERE: tablePositions empty. Please send your FO file to
fop-users@xmlgraphics.apache.org

---

The table-header is rendered correctly in 0.20.5 with the following
output:
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[WARNING] Sum of fixed column widths 50 greater than maximum
specified IPD 0
[INFO] [2]
[INFO] Parsing of document complete, stopping renderer

I have searched for a possible cause, and would like a workaround if not
a fix.  I have so far been unable to determine what aspect of the table
header may be triggering this behavior.

Tom Morrison
This message has been scanned by MailController - portal1.mailcontroller.co.uk

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

 

This message has been scanned by MailController 
http://portal1.mailcontroller.co.uk/ .

 



Re: tablePositions empty assertion error in version 1.0

2012-03-14 Thread Glenn Adams
I believe it is a bug, and am getting ready to create one (if not already
there). However, in the mean time, you may be able to work around it by
eliminating the inline.

In the future, it is best to trim down the test file to the minimum
necessary to demonstrate the error. I have done this in the attached.

On Wed, Mar 14, 2012 at 1:20 PM, Thomas Morrison 
thomas.morri...@microfocus.com wrote:

 Thanks, Glenn, for the quick response.  I have been experimenting too, but
 am nowhere near an expert on FO.  (I have a customer wanting to use XML
 publishing.)

 ** **

 The document was created using Stylus Studio using the WYSIWYG editor.  I
 will retrace my steps to see where I created the fo:inline (which does seem
 rather useless).

 ** **

 It is interesting to note, though, that 0.20.5 and RenderX (as delivered
 in Stylus Studio) both render this in the ‘expected’ manner.

 ** **

 I will test your work around and get the information to the customer.
 Maybe we will just have to add ‘remove fo:inline’ as part of the recipe.**
 **

 ** **

 Tom

 ** **

 *From:* Glenn Adams [mailto:gl...@skynav.com]
 *Sent:* Wednesday, March 14, 2012 2:12 PM
 *To:* fop-users@xmlgraphics.apache.org
 *Cc:* Thomas Morrison
 *Subject:* Re: tablePositions empty assertion error in version 1.0

 ** **

 A little experimentation quickly shows:

 ** **

 (1) removing all but one row doesn't change behavior; however

 (2) removing the fo:inline parent that contains the table (and moving the
 font size property to the parent fo:block) fixes the problem

 ** **

 Did you really intend to nest the table in an inline?

 ** **

 G.

 ** **

 On Wed, Mar 14, 2012 at 11:17 AM, Thomas Morrison 
 thomas.morri...@microfocus.com wrote:

 The attached fo document causes the tablePositions assertion, requesting
 that the fo be sent.

 The full output of the rendering is:

 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font Symbol,normal,700 not found. Substituting with
 Symbol,normal,400.
 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font ZapfDingbats,normal,700 not found. Substituting with
 ZapfDingbats,normal,400.
 Mar 14, 2012 11:40:07 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 The table-header is rendered at the end of the table.

 ---

 The PDF is renedered the same on 0.95, although the output is different,
 not mentioning the two WARNINGs:
 Mar 14, 2012 11:51:29 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 ---

 The table-header is rendered correctly in 0.20.5 with the following
 output:
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [WARNING] Sum of fixed column widths 50 greater than maximum
 specified IPD 0
 [INFO] [2]
 [INFO] Parsing of document complete, stopping renderer

 I have searched for a possible cause, and would like a workaround if not
 a fix.  I have so far been unable to determine what aspect of the table
 header may be triggering this behavior.

 Tom Morrison
 This message has been scanned by MailController -
 portal1.mailcontroller.co.uk

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

 ** **

 This message has been scanned by 
 MailControllerhttp://portal1.mailcontroller.co.uk/
 .

  

?xml version='1.0'?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=default-page page-height=11in page-width=8.5in margin-left=0.6in margin-right=0.6in margin-top=0.79in margin-bottom=0.79in
fo:region-body/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=default-page
fo:flow flow-name=xsl-region-body
fo:block
fo:inline
fo:table table-layout=fixed
fo:table-column column-width=50pt/
fo:table-header
fo:table-row
fo:table-cell
fo:blockH/fo:block
/fo:table-cell
/fo:table-row
/fo:table-header
fo:table-body
fo:table-row
fo:table-cell
fo:blockC/fo:block
/fo:table

Re: tablePositions empty assertion error in version 1.0

2012-03-14 Thread Glenn Adams
It looks like this bug was already reported at

https://issues.apache.org/bugzilla/show_bug.cgi?id=47192

I added the trimmed down version of your FO file to this bug report as an
attachment.

2012/3/14 Glenn Adams gl...@skynav.com

 I believe it is a bug, and am getting ready to create one (if not already
 there). However, in the mean time, you may be able to work around it by
 eliminating the inline.

 In the future, it is best to trim down the test file to the minimum
 necessary to demonstrate the error. I have done this in the attached.


 On Wed, Mar 14, 2012 at 1:20 PM, Thomas Morrison 
 thomas.morri...@microfocus.com wrote:

 Thanks, Glenn, for the quick response.  I have been experimenting too,
 but am nowhere near an expert on FO.  (I have a customer wanting to use XML
 publishing.)

 ** **

 The document was created using Stylus Studio using the WYSIWYG editor.  I
 will retrace my steps to see where I created the fo:inline (which does seem
 rather useless).

 ** **

 It is interesting to note, though, that 0.20.5 and RenderX (as delivered
 in Stylus Studio) both render this in the ‘expected’ manner.

 ** **

 I will test your work around and get the information to the customer.
 Maybe we will just have to add ‘remove fo:inline’ as part of the recipe.*
 ***

 ** **

 Tom

 ** **

 *From:* Glenn Adams [mailto:gl...@skynav.com]
 *Sent:* Wednesday, March 14, 2012 2:12 PM
 *To:* fop-users@xmlgraphics.apache.org
 *Cc:* Thomas Morrison
 *Subject:* Re: tablePositions empty assertion error in version 1.0

 ** **

 A little experimentation quickly shows:

 ** **

 (1) removing all but one row doesn't change behavior; however

 (2) removing the fo:inline parent that contains the table (and moving the
 font size property to the parent fo:block) fixes the problem

 ** **

 Did you really intend to nest the table in an inline?

 ** **

 G.

 ** **

 On Wed, Mar 14, 2012 at 11:17 AM, Thomas Morrison 
 thomas.morri...@microfocus.com wrote:

 The attached fo document causes the tablePositions assertion, requesting
 that the fo be sent.

 The full output of the rendering is:

 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font Symbol,normal,700 not found. Substituting with
 Symbol,normal,400.
 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font ZapfDingbats,normal,700 not found. Substituting with
 ZapfDingbats,normal,400.
 Mar 14, 2012 11:40:07 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 The table-header is rendered at the end of the table.

 ---

 The PDF is renedered the same on 0.95, although the output is different,
 not mentioning the two WARNINGs:
 Mar 14, 2012 11:51:29 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 ---

 The table-header is rendered correctly in 0.20.5 with the following
 output:
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [WARNING] Sum of fixed column widths 50 greater than maximum
 specified IPD 0
 [INFO] [2]
 [INFO] Parsing of document complete, stopping renderer

 I have searched for a possible cause, and would like a workaround if not
 a fix.  I have so far been unable to determine what aspect of the table
 header may be triggering this behavior.

 Tom Morrison
 This message has been scanned by MailController -
 portal1.mailcontroller.co.uk

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

 ** **

 This message has been scanned by 
 MailControllerhttp://portal1.mailcontroller.co.uk/
 .

  





Re: tablePositions empty assertion error in version 1.0

2012-03-14 Thread Glenn Adams
I also notice the following listed at [1]:

*inline_block_nested_3.xml* (NPE for table inside an inline):
Placing a table as a child of an fo:inline produces a NullPointerException.

[1] http://xmlgraphics.apache.org/fop/1.0/knownissues_overview.html


On Wed, Mar 14, 2012 at 1:45 PM, Glenn Adams gl...@skynav.com wrote:

 It looks like this bug was already reported at

 https://issues.apache.org/bugzilla/show_bug.cgi?id=47192

 I added the trimmed down version of your FO file to this bug report as an
 attachment.


 2012/3/14 Glenn Adams gl...@skynav.com

 I believe it is a bug, and am getting ready to create one (if not already
 there). However, in the mean time, you may be able to work around it by
 eliminating the inline.

 In the future, it is best to trim down the test file to the minimum
 necessary to demonstrate the error. I have done this in the attached.


 On Wed, Mar 14, 2012 at 1:20 PM, Thomas Morrison 
 thomas.morri...@microfocus.com wrote:

 Thanks, Glenn, for the quick response.  I have been experimenting too,
 but am nowhere near an expert on FO.  (I have a customer wanting to use XML
 publishing.)

 ** **

 The document was created using Stylus Studio using the WYSIWYG editor.
 I will retrace my steps to see where I created the fo:inline (which does
 seem rather useless).

 ** **

 It is interesting to note, though, that 0.20.5 and RenderX (as delivered
 in Stylus Studio) both render this in the ‘expected’ manner.

 ** **

 I will test your work around and get the information to the customer.
 Maybe we will just have to add ‘remove fo:inline’ as part of the recipe.
 

 ** **

 Tom

 ** **

 *From:* Glenn Adams [mailto:gl...@skynav.com]
 *Sent:* Wednesday, March 14, 2012 2:12 PM
 *To:* fop-users@xmlgraphics.apache.org
 *Cc:* Thomas Morrison
 *Subject:* Re: tablePositions empty assertion error in version 1.0

 ** **

 A little experimentation quickly shows:

 ** **

 (1) removing all but one row doesn't change behavior; however

 (2) removing the fo:inline parent that contains the table (and moving
 the font size property to the parent fo:block) fixes the problem

 ** **

 Did you really intend to nest the table in an inline?

 ** **

 G.

 ** **

 On Wed, Mar 14, 2012 at 11:17 AM, Thomas Morrison 
 thomas.morri...@microfocus.com wrote:

 The attached fo document causes the tablePositions assertion, requesting
 that the fo be sent.

 The full output of the rendering is:

 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font Symbol,normal,700 not found. Substituting with
 Symbol,normal,400.
 Mar 14, 2012 11:40:07 AM org.apache.fop.events.LoggingEventListener
 processEvent
 WARNING: Font ZapfDingbats,normal,700 not found. Substituting with
 ZapfDingbats,normal,400.
 Mar 14, 2012 11:40:07 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 The table-header is rendered at the end of the table.

 ---

 The PDF is renedered the same on 0.95, although the output is different,
 not mentioning the two WARNINGs:
 Mar 14, 2012 11:51:29 AM
 org.apache.fop.layoutmgr.table.TableContentLayoutManager addAreas
 SEVERE: tablePositions empty. Please send your FO file to
 fop-users@xmlgraphics.apache.org

 ---

 The table-header is rendered correctly in 0.20.5 with the following
 output:
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [WARNING] Sum of fixed column widths 50 greater than maximum
 specified IPD 0
 [INFO] [2]
 [INFO] Parsing of document complete, stopping renderer

 I have searched for a possible cause, and would like a workaround if not
 a fix.  I have so far been unable to determine what aspect of the table
 header may be triggering this behavior.

 Tom Morrison
 This message has been scanned by MailController -
 portal1.mailcontroller.co.uk

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

 ** **

 This message has been scanned by 
 MailControllerhttp://portal1.mailcontroller.co.uk/
 .

  






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

2012-02-10 Thread zhangwei

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



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: Cell border rendering error (thicker) with number-column-spanned

2012-02-10 Thread Chris Bowditch

On 10/02/2012 09:14, zhangwei wrote:

Hi,

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.


What about when you zoom to 800% or higher? Also, does the problem 
appear when you print the PDF?





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


It's not a bug of FOP, but down to the use of thin lines on low 
resolution devices and how different PDF Viewers handles this.


1px is a very thin line. 1pt should be the minimum really to ensure you 
don't see strange affects like this on screen.


Adobe Reader does have some options that you can disable to improve the 
way thin lines are drawn at 100% zoom. Ensure the option Enhance Thin 
Lines is disabled


Chris



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



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



Re: ERROR: endElement() for fo:root where there is no current element

2012-01-25 Thread Chris Bowditch

On 23/01/2012 17:27, Nathan Schoenroth wrote:
I am getting the following error when trying to run fop on an xsl-fo 
template



Full Trace:



[xmlserver] [INFO] [XMLConnectionHandler] Processed XML document.
[xmlserver] [INFO] [XMLConnectionHandler] Sending preview.
[xmlserver] [INFO] [XMLConnectionHandler] Sent preview.
[xmlserver] [INFO] [XMLConnectionHandler] Job completed.
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: table-body 
(http://www.w3.org/1999/

XSL/Format) vs. table (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: table 
(http://www.w3.org/1999/XSL/F

ormat) vs. table-body (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: block 
(http://www.w3.org/1999/XSL/F

ormat) vs. table (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: flow 
(http://www.w3.org/1999/XSL/Fo

rmat) vs. block (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: page-sequence 
(http://www.w3.org/19

99/XSL/Format) vs. flow (http://www.w3.org/1999/XSL/Format)
[xmlserver] [WARN] [BreakingAlgorithm] Line 1 of a paragraph overflows 
the avail

able area. (fo:block, ?)
[xmlserver] [WARN] [FOTreeBuilder] Mismatch: root 
(http://www.w3.org/1999/XSL/Fo

rmat) vs. page-sequence (http://www.w3.org/1999/XSL/Format)


Have you seen this FAQ on the website?

http://xmlgraphics.apache.org/fop/faq.html#saxexception-mismatch

The error means that something went wrong during the XSLT stage. Run 
your XML+XSLT using xalan directly instead of FOP to diagnose what goes 
wrong in your XSLT.


Thanks,

Chris


[xmlserver] [ERROR] [FOTreeBuilder] javax.xml.transform.
TransformerException: ja
va.lang.IllegalStateException: endElement() called for fo:root where 
there is no

 current element.
[xmlserver] [INFO] [XMLConnectionHandler] Processed XML document.
[xmlserver] [INFO] [XMLConnectionHandler] Job completed.
[xmlserver] SystemId Unknown; Line #0; Column #0; 
java.lang.IllegalStateExceptio

n: endElement() called for fo:root where there is no current element.


--
*Nathan*




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



  1   2   3   4   5   6   >