Build failed in Jenkins: xmlgraphics-fop #161

2015-08-11 Thread Apache Jenkins Server
See https://builds.apache.org/job/xmlgraphics-fop/161/changes

Changes:

[rmeyer] FOP-2486: Soft font support for TrueType fonts in PCL

--
[...truncated 7618 lines...]
[junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.06 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.extensions.prepress.PageBoundariesTestCase
[junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.003 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.extensions.prepress.PageScaleTestCase
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.002 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.gradient.GradientTestCase
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.01 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.intermediate.AbstractIFPainterTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.02 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.intermediate.ArcToBezierCurveTransformerTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.004 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.intermediate.BorderPainterTestCase
[junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.113 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.intermediate.IFSerializerTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.005 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.intermediate.IFStructureTreeBuilderTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.014 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.intermediate.SAXEventRecorderTestCase
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.005 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pcl.PCLRendererConfigParserTestCase
[junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.019 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pcl.PCLRendererConfiguratorTestCase
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.038 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pcl.fonts.PCLByteWriterUtilTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.002 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.pcl.fonts.PCLFontReaderFactoryTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.034 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pcl.fonts.PCLTTFFontReaderTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.022 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.pcl.fonts.truetype.PCLTTFCharacterWriterTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.013 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.ImageRawPNGAdapterTestCase
[junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.108 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.PDFAConformanceTestCase
[junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.107 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.PDFAMetadataTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.012 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.PDFBorderPainterTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.002 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.PDFCMapTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.001 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.PDFEncodingTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 
0.031 sec
[junit] 
[junit] Testcase: 
testPDFEncodingWithCustomFont(org.apache.fop.render.pdf.PDFEncodingTestCase):SKIPPED:
 This should be tested using PDFBox. If PDFBox can extract the text 
correctly,everything is fine. The tests here are too unstable.
[junit] Testsuite: org.apache.fop.render.pdf.PDFGraphicsPainterTestCase
[junit] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.022 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.PDFPainterTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.022 sec
[junit] 
[junit] Testsuite: org.apache.fop.render.pdf.PDFRendererConfigParserTestCase
[junit] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.362 sec
[junit] 
[junit] Testsuite: 
org.apache.fop.render.pdf.PDFRendererOptionsConfigTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, 

RE: Build failed in Jenkins: xmlgraphics-fop #161

2015-08-11 Thread Robert Meyer
I am going to be resolving this shortly.

I'll also use this as an opportunity to resolve currently ignored findbugs 
issue as well.

I'll update this once done and the fix has been committed.

 Date: Mon, 10 Aug 2015 14:32:21 +
 From: jenk...@builds.apache.org
 To: fop-dev@xmlgraphics.apache.org
 Subject: Build failed in Jenkins: xmlgraphics-fop #161
 
 See https://builds.apache.org/job/xmlgraphics-fop/161/changes
 
 Changes:
 
 [rmeyer] FOP-2486: Soft font support for TrueType fonts in PCL
 
 --
 [...truncated 7618 lines...]
 [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.06 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.extensions.prepress.PageBoundariesTestCase
 [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.003 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.extensions.prepress.PageScaleTestCase
 [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.002 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.gradient.GradientTestCase
 [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.01 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.AbstractIFPainterTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.02 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.ArcToBezierCurveTransformerTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.004 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.BorderPainterTestCase
 [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.113 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.intermediate.IFSerializerTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.005 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.IFStructureTreeBuilderTestCase
 [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.014 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.SAXEventRecorderTestCase
 [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.005 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.PCLRendererConfigParserTestCase
 [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.019 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.PCLRendererConfiguratorTestCase
 [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.038 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.PCLByteWriterUtilTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.002 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.PCLFontReaderFactoryTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.034 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.PCLTTFFontReaderTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.022 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.truetype.PCLTTFCharacterWriterTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.013 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.ImageRawPNGAdapterTestCase
 [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.108 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFAConformanceTestCase
 [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.107 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFAMetadataTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.012 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFBorderPainterTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.002 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFCMapTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.001 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFEncodingTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 
 0.031 sec
 [junit] 
 [junit] Testcase: 
 testPDFEncodingWithCustomFont(org.apache.fop.render.pdf.PDFEncodingTestCase):SKIPPED:
  This should be tested using PDFBox. If PDFBox can extract the text 
 correctly,everything is fine. The tests here are too unstable.
 [junit] Testsuite: org.apache.fop.render.pdf.PDFGraphicsPainterTestCase
 [junit] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.022 sec
 [junit] 
 

RE: Build failed in Jenkins: xmlgraphics-fop #161

2015-08-11 Thread Robert Meyer
Fix has now been applied:

http://svn.apache.org/viewvc?view=revisionrevision=1695225

From: rme...@hotmail.co.uk
To: fop-dev@xmlgraphics.apache.org
Subject: RE: Build failed in Jenkins: xmlgraphics-fop #161
Date: Tue, 11 Aug 2015 08:03:19 +




I am going to be resolving this shortly.

I'll also use this as an opportunity to resolve currently ignored findbugs 
issue as well.

I'll update this once done and the fix has been committed.

 Date: Mon, 10 Aug 2015 14:32:21 +
 From: jenk...@builds.apache.org
 To: fop-dev@xmlgraphics.apache.org
 Subject: Build failed in Jenkins: xmlgraphics-fop #161
 
 See https://builds.apache.org/job/xmlgraphics-fop/161/changes
 
 Changes:
 
 [rmeyer] FOP-2486: Soft font support for TrueType fonts in PCL
 
 --
 [...truncated 7618 lines...]
 [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.06 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.extensions.prepress.PageBoundariesTestCase
 [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.003 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.extensions.prepress.PageScaleTestCase
 [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.002 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.gradient.GradientTestCase
 [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.01 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.AbstractIFPainterTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.02 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.ArcToBezierCurveTransformerTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.004 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.BorderPainterTestCase
 [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.113 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.intermediate.IFSerializerTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.005 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.IFStructureTreeBuilderTestCase
 [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.014 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.intermediate.SAXEventRecorderTestCase
 [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.005 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.PCLRendererConfigParserTestCase
 [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.019 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.PCLRendererConfiguratorTestCase
 [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.038 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.PCLByteWriterUtilTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.002 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.PCLFontReaderFactoryTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.034 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.PCLTTFFontReaderTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.022 sec
 [junit] 
 [junit] Testsuite: 
 org.apache.fop.render.pcl.fonts.truetype.PCLTTFCharacterWriterTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.013 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.ImageRawPNGAdapterTestCase
 [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.108 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFAConformanceTestCase
 [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.107 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFAMetadataTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.012 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFBorderPainterTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.002 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFCMapTestCase
 [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
 0.001 sec
 [junit] 
 [junit] Testsuite: org.apache.fop.render.pdf.PDFEncodingTestCase
 [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 
 0.031 sec
 [junit] 
 [junit] Testcase: 
 testPDFEncodingWithCustomFont(org.apache.fop.render.pdf.PDFEncodingTestCase):SKIPPED:
  This should be tested using PDFBox. If PDFBox can extract the text 
 

Jenkins build is back to normal : xmlgraphics-fop #162

2015-08-11 Thread Apache Jenkins Server
See https://builds.apache.org/job/xmlgraphics-fop/162/changes



[jira] [Updated] (FOP-2495) Embedding: missing migration documentation from FOP 1.x

2015-08-11 Thread simon steiner (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

simon steiner updated FOP-2495:
---
Assignee: (was: Robert Meyer)

 Embedding: missing migration documentation from FOP 1.x
 ---

 Key: FOP-2495
 URL: https://issues.apache.org/jira/browse/FOP-2495
 Project: FOP
  Issue Type: Bug
  Components: documentation
Affects Versions: 2.0
 Environment: WIndows, Java 8, FOP 1.0
Reporter: MH
Priority: Blocker
  Labels: documentation

 Because of bug FOP-2177 we couldn't upgrade form FOP 1.0 to FOP 1.1. FOP 2.0 
 has solved this bug (tested with standalone FOP scripts).
 Now we would like to upgrade our Java code from FOP 1.0 to FOP 2.0. The 
 Upgrading page (https://xmlgraphics.apache.org/fop/2.0/upgrading.html) says 
 You should encounter very few issues in upgrading from FOP 1.0, except as 
 noted in the following:  The truth is completely different: starting by 
 replacing fop.jar, our code gets dozens of compiler errors! Many methods are 
 simply gone:
 FopFactory.newInstance()
 FoUserAgent.setBaseURL(String);
 FopFactory.getFontManager().setFontBaseURL(String)
 FopFactory.setURIResolver(URIResolver);
 etc.
 The javadocs from 1.1 to 2.0 simple changed - no deprecated methods, no hints 
 how to replace old methods.
 The FOP 2.0 embedding page 
 (https://xmlgraphics.apache.org/fop/2.0/embedding.html) just shows simple 
 examples to start from the ground. I can't find any migration help how to 
 replace old code. 
 E.g. how can I set the font base? 
 FopFactory.getFontManager().setFontBaseURL(String) is gone and I can't find 
 any equivalent code for FOP 2.0!
 This is a major bug in FOP 2.0 as API changes are not documented to upgrade 
 from FOP 1.x Java API to FOP 2.0!
 Now I just can search and try and experiment if I get our old code somehow 
 running with all those undocumented API changes. Can you please state a 
 migration documentation for all methods (method signatures) that don't exist 
 anymore? We can't start coding all over again from scratch. Thank you very 
 much!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2491) FOP 2.0 cannot support open-type font

2015-08-11 Thread Thanasis Giannimaras (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thanasis Giannimaras updated FOP-2491:
--
Attachment: fop.xconf
otfSubset.patch
test.fo
before.pdf
after.pdf

 FOP 2.0 cannot support open-type font
 -

 Key: FOP-2491
 URL: https://issues.apache.org/jira/browse/FOP-2491
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.0
 Environment: FOP: 2.0
 Open Font: Noto-Sans Cjk 
 (https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip)
Reporter: Leo Yang
 Attachments: after.pdf, before.pdf, fop.xconf, otfSubset.patch, 
 test.fo


 Symptom: Based on FOP 2.0 release, the open-type font can be embedded into 
 PDF document, however, based on the testing with FOP 2.0, the 
 google-noto-sans-Cjk font cannot be embedded into PDF document.
 How to repeat:
  1. Get FOP 2.0 library.
  2. Get Google-Noto-Sans from 
 https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip.
  3. Set the fop.xconf as following:
  font embed-url=file:///C:/Font/NotoSans.otf embedding-mode=subset
  font-triplet name=Noto Sans CJK TC Regular style=normal 
 weight=normal/
  /font
  4. Set the FOP as following:
  ?xml version=1.0 encoding=UTF-8?
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
  fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm 
 master-name=A4-portrait
  fo:region-body/
  /fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=A4-portrait
  fo:flow flow-name=xsl-region-body
  fo:block font-family=Noto Sans CJK TC RegularHello Noto-OTF!/fo:block
  /fo:flow
  /fo:page-sequence
  /fo:root
  5. Generate the PDF, there is no error reported.
  6. Open the PDF file in Acro-Reader, it will report the cannot extract the 
 embedded font error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2510) Infinite Loop

2015-08-11 Thread Thanasis Giannimaras (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thanasis Giannimaras updated FOP-2510:
--
Attachment: svnLoop.patch
test.fo

 Infinite Loop
 -

 Key: FOP-2510
 URL: https://issues.apache.org/jira/browse/FOP-2510
 Project: FOP
  Issue Type: Bug
Reporter: Thanasis Giannimaras
 Attachments: svnLoop.patch, test.fo


 If the flow-name in the fo:flow element maps to a region body  belonging to a 
 simple-page-master not referenced by the fo:page-sequence element , then fop 
 enters an infinite loop. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2509) Add support for PDF/A-3

2015-08-11 Thread simon steiner (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14681887#comment-14681887
 ] 

simon steiner commented on FOP-2509:


Added
http://svn.apache.org/viewvc?view=revisionrevision=1695310
http://svn.apache.org/viewvc?view=revisionrevision=1695313

 Add support for PDF/A-3
 ---

 Key: FOP-2509
 URL: https://issues.apache.org/jira/browse/FOP-2509
 Project: FOP
  Issue Type: Bug
Reporter: simon steiner
Assignee: simon steiner

 {code}
 ?xml version=1.0 ?
 fop version=1.0  
   accessibilitytrue/accessibility 
   
   renderers
 renderer mime=application/pdf
 
  fonts
 font kerning=yes embed-url=Arial.ttf embedding-mode=full
   font-triplet name=Helvetica style=normal weight=normal/
   font-triplet name=Helvetica style=normal weight=bold/
 /font
   /fonts 
   pdf-a-modePDF/A-3a/pdf-a-mode
 /renderer
   /renderers
 /fop
 {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2510) Infinite Loop

2015-08-11 Thread Thanasis Giannimaras (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thanasis Giannimaras updated FOP-2510:
--
Description: If the flow-name in the fo:flow element maps to a region body  
belonging to a simple-page-master not referenced by the fo:page-sequence 
element , then fop enters an infinite loop.  Submitted patch that throws a 
ValidationException when this happens.  (was: If the flow-name in the fo:flow 
element maps to a region body  belonging to a simple-page-master not referenced 
by the fo:page-sequence element , then fop enters an infinite loop. )

 Infinite Loop
 -

 Key: FOP-2510
 URL: https://issues.apache.org/jira/browse/FOP-2510
 Project: FOP
  Issue Type: Bug
Reporter: Thanasis Giannimaras
 Attachments: svnLoop.patch, test.fo


 If the flow-name in the fo:flow element maps to a region body  belonging to a 
 simple-page-master not referenced by the fo:page-sequence element , then fop 
 enters an infinite loop.  Submitted patch that throws a ValidationException 
 when this happens.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (FOP-2509) Add support for PDF/A-3

2015-08-11 Thread simon steiner (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

simon steiner closed FOP-2509.
--
Resolution: Fixed

 Add support for PDF/A-3
 ---

 Key: FOP-2509
 URL: https://issues.apache.org/jira/browse/FOP-2509
 Project: FOP
  Issue Type: Bug
Reporter: simon steiner
Assignee: simon steiner

 {code}
 ?xml version=1.0 ?
 fop version=1.0  
   accessibilitytrue/accessibility 
   
   renderers
 renderer mime=application/pdf
 
  fonts
 font kerning=yes embed-url=Arial.ttf embedding-mode=full
   font-triplet name=Helvetica style=normal weight=normal/
   font-triplet name=Helvetica style=normal weight=bold/
 /font
   /fonts 
   pdf-a-modePDF/A-3a/pdf-a-mode
 /renderer
   /renderers
 /fop
 {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2491) FOP 2.0 cannot support open-type font

2015-08-11 Thread Thanasis Giannimaras (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thanasis Giannimaras updated FOP-2491:
--
Attachment: svnSubset.patch

 FOP 2.0 cannot support open-type font
 -

 Key: FOP-2491
 URL: https://issues.apache.org/jira/browse/FOP-2491
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.0
 Environment: FOP: 2.0
 Open Font: Noto-Sans Cjk 
 (https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip)
Reporter: Leo Yang
 Attachments: after.pdf, before.pdf, fop.xconf, svnSubset.patch, 
 test.fo


 Symptom: Based on FOP 2.0 release, the open-type font can be embedded into 
 PDF document, however, based on the testing with FOP 2.0, the 
 google-noto-sans-Cjk font cannot be embedded into PDF document.
 How to repeat:
  1. Get FOP 2.0 library.
  2. Get Google-Noto-Sans from 
 https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip.
  3. Set the fop.xconf as following:
  font embed-url=file:///C:/Font/NotoSans.otf embedding-mode=subset
  font-triplet name=Noto Sans CJK TC Regular style=normal 
 weight=normal/
  /font
  4. Set the FOP as following:
  ?xml version=1.0 encoding=UTF-8?
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
  fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm 
 master-name=A4-portrait
  fo:region-body/
  /fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=A4-portrait
  fo:flow flow-name=xsl-region-body
  fo:block font-family=Noto Sans CJK TC RegularHello Noto-OTF!/fo:block
  /fo:flow
  /fo:page-sequence
  /fo:root
  5. Generate the PDF, there is no error reported.
  6. Open the PDF file in Acro-Reader, it will report the cannot extract the 
 embedded font error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2491) FOP 2.0 cannot support open-type font

2015-08-11 Thread Thanasis Giannimaras (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14681876#comment-14681876
 ] 

Thanasis Giannimaras commented on FOP-2491:
---

The issue was fixed by using the correct encoding values when updating the 
offsets  for the private font dictionary

 FOP 2.0 cannot support open-type font
 -

 Key: FOP-2491
 URL: https://issues.apache.org/jira/browse/FOP-2491
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.0
 Environment: FOP: 2.0
 Open Font: Noto-Sans Cjk 
 (https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip)
Reporter: Leo Yang
 Attachments: after.pdf, before.pdf, fop.xconf, otfSubset.patch, 
 test.fo


 Symptom: Based on FOP 2.0 release, the open-type font can be embedded into 
 PDF document, however, based on the testing with FOP 2.0, the 
 google-noto-sans-Cjk font cannot be embedded into PDF document.
 How to repeat:
  1. Get FOP 2.0 library.
  2. Get Google-Noto-Sans from 
 https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip.
  3. Set the fop.xconf as following:
  font embed-url=file:///C:/Font/NotoSans.otf embedding-mode=subset
  font-triplet name=Noto Sans CJK TC Regular style=normal 
 weight=normal/
  /font
  4. Set the FOP as following:
  ?xml version=1.0 encoding=UTF-8?
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
  fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm 
 master-name=A4-portrait
  fo:region-body/
  /fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=A4-portrait
  fo:flow flow-name=xsl-region-body
  fo:block font-family=Noto Sans CJK TC RegularHello Noto-OTF!/fo:block
  /fo:flow
  /fo:page-sequence
  /fo:root
  5. Generate the PDF, there is no error reported.
  6. Open the PDF file in Acro-Reader, it will report the cannot extract the 
 embedded font error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2509) Add support for PDF/A-3

2015-08-11 Thread simon steiner (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

simon steiner updated FOP-2509:
---
Description: 
{code}
?xml version=1.0 ?
fop version=1.0  
  accessibilitytrue/accessibility 
  
  renderers
renderer mime=application/pdf

 fonts
font kerning=yes embed-url=Arial.ttf embedding-mode=full
  font-triplet name=Helvetica style=normal weight=normal/
  font-triplet name=Helvetica style=normal weight=bold/
/font
  /fonts 
  pdf-a-modePDF/A-3a/pdf-a-mode
/renderer
  /renderers
/fop

{code}

 Add support for PDF/A-3
 ---

 Key: FOP-2509
 URL: https://issues.apache.org/jira/browse/FOP-2509
 Project: FOP
  Issue Type: Bug
Reporter: simon steiner
Assignee: simon steiner

 {code}
 ?xml version=1.0 ?
 fop version=1.0  
   accessibilitytrue/accessibility 
   
   renderers
 renderer mime=application/pdf
 
  fonts
 font kerning=yes embed-url=Arial.ttf embedding-mode=full
   font-triplet name=Helvetica style=normal weight=normal/
   font-triplet name=Helvetica style=normal weight=bold/
 /font
   /fonts 
   pdf-a-modePDF/A-3a/pdf-a-mode
 /renderer
   /renderers
 /fop
 {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (FOP-2509) Add support for PDF/A-3

2015-08-11 Thread simon steiner (JIRA)
simon steiner created FOP-2509:
--

 Summary: Add support for PDF/A-3
 Key: FOP-2509
 URL: https://issues.apache.org/jira/browse/FOP-2509
 Project: FOP
  Issue Type: Bug
Reporter: simon steiner
Assignee: simon steiner






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2491) FOP 2.0 cannot support open-type font

2015-08-11 Thread Thanasis Giannimaras (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thanasis Giannimaras updated FOP-2491:
--
Attachment: (was: otfSubset.patch)

 FOP 2.0 cannot support open-type font
 -

 Key: FOP-2491
 URL: https://issues.apache.org/jira/browse/FOP-2491
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.0
 Environment: FOP: 2.0
 Open Font: Noto-Sans Cjk 
 (https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip)
Reporter: Leo Yang
 Attachments: after.pdf, before.pdf, fop.xconf, test.fo


 Symptom: Based on FOP 2.0 release, the open-type font can be embedded into 
 PDF document, however, based on the testing with FOP 2.0, the 
 google-noto-sans-Cjk font cannot be embedded into PDF document.
 How to repeat:
  1. Get FOP 2.0 library.
  2. Get Google-Noto-Sans from 
 https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip.
  3. Set the fop.xconf as following:
  font embed-url=file:///C:/Font/NotoSans.otf embedding-mode=subset
  font-triplet name=Noto Sans CJK TC Regular style=normal 
 weight=normal/
  /font
  4. Set the FOP as following:
  ?xml version=1.0 encoding=UTF-8?
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
  fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm 
 master-name=A4-portrait
  fo:region-body/
  /fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=A4-portrait
  fo:flow flow-name=xsl-region-body
  fo:block font-family=Noto Sans CJK TC RegularHello Noto-OTF!/fo:block
  /fo:flow
  /fo:page-sequence
  /fo:root
  5. Generate the PDF, there is no error reported.
  6. Open the PDF file in Acro-Reader, it will report the cannot extract the 
 embedded font error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (FOP-2510) Infinite Loop

2015-08-11 Thread Thanasis Giannimaras (JIRA)
Thanasis Giannimaras created FOP-2510:
-

 Summary: Infinite Loop
 Key: FOP-2510
 URL: https://issues.apache.org/jira/browse/FOP-2510
 Project: FOP
  Issue Type: Bug
Reporter: Thanasis Giannimaras
 Attachments: svnLoop.patch, test.fo

If the flow-name in the fo:flow element maps to a region body  belonging to a 
simple-page-master not referenced by the fo:page-sequence element , then fop 
enters an infinite loop. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2491) [PATCH] FOP 2.0 cannot support open-type font

2015-08-11 Thread simon steiner (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

simon steiner updated FOP-2491:
---
Summary: [PATCH] FOP 2.0 cannot support open-type font  (was: FOP 2.0 
cannot support open-type font)

 [PATCH] FOP 2.0 cannot support open-type font
 -

 Key: FOP-2491
 URL: https://issues.apache.org/jira/browse/FOP-2491
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.0
 Environment: FOP: 2.0
 Open Font: Noto-Sans Cjk 
 (https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip)
Reporter: Leo Yang
 Attachments: after.pdf, before.pdf, fop.xconf, svnSubset.patch, 
 test.fo


 Symptom: Based on FOP 2.0 release, the open-type font can be embedded into 
 PDF document, however, based on the testing with FOP 2.0, the 
 google-noto-sans-Cjk font cannot be embedded into PDF document.
 How to repeat:
  1. Get FOP 2.0 library.
  2. Get Google-Noto-Sans from 
 https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKTC-hinted.zip.
  3. Set the fop.xconf as following:
  font embed-url=file:///C:/Font/NotoSans.otf embedding-mode=subset
  font-triplet name=Noto Sans CJK TC Regular style=normal 
 weight=normal/
  /font
  4. Set the FOP as following:
  ?xml version=1.0 encoding=UTF-8?
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
  fo:simple-page-master margin=2cm page-width=21.0cm page-height=29.7cm 
 master-name=A4-portrait
  fo:region-body/
  /fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=A4-portrait
  fo:flow flow-name=xsl-region-body
  fo:block font-family=Noto Sans CJK TC RegularHello Noto-OTF!/fo:block
  /fo:flow
  /fo:page-sequence
  /fo:root
  5. Generate the PDF, there is no error reported.
  6. Open the PDF file in Acro-Reader, it will report the cannot extract the 
 embedded font error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2510) [PATCH] Infinite Loop

2015-08-11 Thread simon steiner (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

simon steiner updated FOP-2510:
---
Summary: [PATCH] Infinite Loop  (was: Infinite Loop)

 [PATCH] Infinite Loop
 -

 Key: FOP-2510
 URL: https://issues.apache.org/jira/browse/FOP-2510
 Project: FOP
  Issue Type: Bug
Reporter: Thanasis Giannimaras
 Attachments: svnLoop.patch, test.fo


 If the flow-name in the fo:flow element maps to a region body  belonging to a 
 simple-page-master not referenced by the fo:page-sequence element , then fop 
 enters an infinite loop.  Submitted patch that throws a ValidationException 
 when this happens.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (FOP-2511) Null pointer exception when transforming to PDF with FOP 2.0

2015-08-11 Thread Johan Persson (JIRA)
Johan Persson created FOP-2511:
--

 Summary: Null pointer exception when transforming to PDF with FOP 
2.0
 Key: FOP-2511
 URL: https://issues.apache.org/jira/browse/FOP-2511
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.0
 Environment: OS X 10.9.5 . Tested both with JDK 1.7.0_45 and JDK 1.6.0
Reporter: Johan Persson
Priority: Critical


When trying to transform to PDF I'm experiencing a NULL pointer exception. See 
below. The same fo-file used as source works without problem with FOP 1.1

The source for the fo-file is a set of DocBook 5 sources transformed using 
XSLTproc. The fo-file that produces the crash can be found at my Google-Drive 
at:
https://drive.google.com/folderview?id=0BypRwfn2A3s6fnN6NW1PU1BEd3JiTzdyYlg0NjZxRTNFbFhUM21UMmw1ZUNjRGlYb1c2T28usp=sharing

{{java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:288)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:217)
Caused by: java.lang.NullPointerException
at 
org.apache.fop.layoutmgr.list.ListItemLayoutManager.getCombinedKnuthElementsForListItem(ListItemLayoutManager.java:405)
at 
org.apache.fop.layoutmgr.list.ListItemLayoutManager.getNextKnuthElements(ListItemLayoutManager.java:326)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:239)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:498)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at 
org.apache.fop.layoutmgr.list.ListBlockLayoutManager.getNextKnuthElements(ListBlockLayoutManager.java:103)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:239)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:147)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:252)
at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:643)
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:384)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:138)
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.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
at