[jira] [Commented] (FOP-2618) Table breaks PDF/A-1 compat when accessibility requested

2016-06-29 Thread Stefan Hegny (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15355284#comment-15355284
 ] 

Stefan Hegny commented on FOP-2618:
---

Excellent, thanks a lot simon for pointing that out. I thought it would 
automatically choose 1.4 if PDF/A is requested.

> Table breaks PDF/A-1 compat when accessibility requested
> 
>
> Key: FOP-2618
> URL: https://issues.apache.org/jira/browse/FOP-2618
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.1
> Environment: java version "1.7.0_95"
> Linux: OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb7u1)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
>  as well as Linux:
> java version "1.8.0_73"
> Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
>Reporter: Stefan Hegny
>Priority: Minor
> Fix For: 1.1
>
>
> When running fop 2.1 with {{-a -pdfprofile 'PDF/A-1a'}} then the pdf output 
> of the following file will not validate on various engines (e.g. pdfbox 
> preflight) with an  error {{1.4 : Trailer Syntax error, /XRef cross reference 
> streams are not allowed}}
> If the fo:table is taken out of the fo then it gives (more) valid output 
> (i.e. not the xref error). It also avoids the xref error when specifying 
> {{-pdfprofile 'PDF/A-1b'}} and no {{-a}} flag with fop 2.1.  Using fop 1.1 
> with {{-a -pdfprofile 'PDF/A-1a'}}  will give other issues (that can be fixed 
> e.g. with exiftool) but will NOT produce the XRef Trailer syntax error. 
> {{
> http://www.w3.org/1999/XSL/Format; 
> xmlns:h="http://xmlns.dummycompany.com/letters; 
> xmlns:hx="http://xmlns.dummycompany.com/letters/intern; 
> xmlns:l="http://www.w3.org/1999/xhtml; 
> xmlns:xalan="http://xml.apache.org/xalan; xml:lang="de">
> 
>  margin-left="10mm" margin-bottom="20mm" margin-top="32mm" page-width="21cm" 
> page-height="29.6984848098cm">
> 
> 
> 
> 
> 
>  master-reference="first"/>
> 
> 
> 
> 
> 
>  border-width="0pt" padding="0mm">
>  font-family="serif" font-size="11pt" space-before="28pt" font-weight="bold">
> Rechnung Nr. 2016-413
> 
>  font-family="serif" font-size="11pt">
> 
> 
> 
> 
> 
> 
> 
>  font-weight="bold">Leistung
> 
> 
>  font-weight="bold">Anzahl
> 
> 
>  text-align="end">Betrag
> 
> 
> 
> 
> 
> 
> Spaxschrauben 2,5x5mm
> 
> 
>  text-align="center">100
> 
> 
> 
> 33,75 €
> 
> 
> 
>  border-top-style="solid" position="relative" margin-top="10pt">
> 
> Nettosumme
> 
> 
>  
>   
> 
> 
> 33,75 €
> 
> 
> 
> 
> 
> 
> 
> 
> 
> }}



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


[jira] [Commented] (FOP-2618) Table breaks PDF/A-1 compat when accessibility requested

2016-06-29 Thread simon steiner (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15355236#comment-15355236
 ] 

simon steiner commented on FOP-2618:


Validate:
java -cp 
pdf-box-svn/preflight/target/preflight-2.1.0-SNAPSHOT.jar:pdf-box-svn/app/target/pdfbox-app-2.1.0-SNAPSHOT.jar:lib/commons-io-1.3.1.jar:pdf-box-svn/xmpbox/target/xmpbox-2.1.0-SNAPSHOT.jar
 org.apache.pdfbox.preflight.Validator_A1b out.pdf

> Table breaks PDF/A-1 compat when accessibility requested
> 
>
> Key: FOP-2618
> URL: https://issues.apache.org/jira/browse/FOP-2618
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.1
> Environment: java version "1.7.0_95"
> Linux: OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb7u1)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
>  as well as Linux:
> java version "1.8.0_73"
> Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
>Reporter: Stefan Hegny
>Priority: Minor
> Fix For: 1.1
>
>
> When running fop 2.1 with {{-a -pdfprofile 'PDF/A-1a'}} then the pdf output 
> of the following file will not validate on various engines (e.g. pdfbox 
> preflight) with an  error {{1.4 : Trailer Syntax error, /XRef cross reference 
> streams are not allowed}}
> If the fo:table is taken out of the fo then it gives (more) valid output 
> (i.e. not the xref error). It also avoids the xref error when specifying 
> {{-pdfprofile 'PDF/A-1b'}} and no {{-a}} flag with fop 2.1.  Using fop 1.1 
> with {{-a -pdfprofile 'PDF/A-1a'}}  will give other issues (that can be fixed 
> e.g. with exiftool) but will NOT produce the XRef Trailer syntax error. 
> {{
> http://www.w3.org/1999/XSL/Format; 
> xmlns:h="http://xmlns.dummycompany.com/letters; 
> xmlns:hx="http://xmlns.dummycompany.com/letters/intern; 
> xmlns:l="http://www.w3.org/1999/xhtml; 
> xmlns:xalan="http://xml.apache.org/xalan; xml:lang="de">
> 
>  margin-left="10mm" margin-bottom="20mm" margin-top="32mm" page-width="21cm" 
> page-height="29.6984848098cm">
> 
> 
> 
> 
> 
>  master-reference="first"/>
> 
> 
> 
> 
> 
>  border-width="0pt" padding="0mm">
>  font-family="serif" font-size="11pt" space-before="28pt" font-weight="bold">
> Rechnung Nr. 2016-413
> 
>  font-family="serif" font-size="11pt">
> 
> 
> 
> 
> 
> 
> 
>  font-weight="bold">Leistung
> 
> 
>  font-weight="bold">Anzahl
> 
> 
>  text-align="end">Betrag
> 
> 
> 
> 
> 
> 
> Spaxschrauben 2,5x5mm
> 
> 
>  text-align="center">100
> 
> 
> 
> 33,75 €
> 
> 
> 
>  border-top-style="solid" position="relative" margin-top="10pt">
> 
> Nettosumme
> 
> 
>  
>   
> 
> 
> 33,75 €
> 
> 
> 
> 
> 
> 
> 
> 
> 
> }}



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


[jira] [Commented] (FOP-2618) Table breaks PDF/A-1 compat when accessibility requested

2016-06-29 Thread simon steiner (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15355234#comment-15355234
 ] 

simon steiner commented on FOP-2618:


You need to set pdf version to 1.4

eg fop.xconf


  .
  .
  true
  


  PDF/A-1a 
  1.4

  

  

  



  


> Table breaks PDF/A-1 compat when accessibility requested
> 
>
> Key: FOP-2618
> URL: https://issues.apache.org/jira/browse/FOP-2618
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.1
> Environment: java version "1.7.0_95"
> Linux: OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb7u1)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
>  as well as Linux:
> java version "1.8.0_73"
> Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
>Reporter: Stefan Hegny
>Priority: Minor
> Fix For: 1.1
>
>
> When running fop 2.1 with {{-a -pdfprofile 'PDF/A-1a'}} then the pdf output 
> of the following file will not validate on various engines (e.g. pdfbox 
> preflight) with an  error {{1.4 : Trailer Syntax error, /XRef cross reference 
> streams are not allowed}}
> If the fo:table is taken out of the fo then it gives (more) valid output 
> (i.e. not the xref error). It also avoids the xref error when specifying 
> {{-pdfprofile 'PDF/A-1b'}} and no {{-a}} flag with fop 2.1.  Using fop 1.1 
> with {{-a -pdfprofile 'PDF/A-1a'}}  will give other issues (that can be fixed 
> e.g. with exiftool) but will NOT produce the XRef Trailer syntax error. 
> {{
> http://www.w3.org/1999/XSL/Format; 
> xmlns:h="http://xmlns.dummycompany.com/letters; 
> xmlns:hx="http://xmlns.dummycompany.com/letters/intern; 
> xmlns:l="http://www.w3.org/1999/xhtml; 
> xmlns:xalan="http://xml.apache.org/xalan; xml:lang="de">
> 
>  margin-left="10mm" margin-bottom="20mm" margin-top="32mm" page-width="21cm" 
> page-height="29.6984848098cm">
> 
> 
> 
> 
> 
>  master-reference="first"/>
> 
> 
> 
> 
> 
>  border-width="0pt" padding="0mm">
>  font-family="serif" font-size="11pt" space-before="28pt" font-weight="bold">
> Rechnung Nr. 2016-413
> 
>  font-family="serif" font-size="11pt">
> 
> 
> 
> 
> 
> 
> 
>  font-weight="bold">Leistung
> 
> 
>  font-weight="bold">Anzahl
> 
> 
>  text-align="end">Betrag
> 
> 
> 
> 
> 
> 
> Spaxschrauben 2,5x5mm
> 
> 
>  text-align="center">100
> 
> 
> 
> 33,75 €
> 
> 
> 
>  border-top-style="solid" position="relative" margin-top="10pt">
> 
> Nettosumme
> 
> 
>  
>   
> 
> 
> 33,75 €
> 
> 
> 
> 
> 
> 
> 
> 
> 
> }}



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


[jira] [Commented] (FOP-2618) Table breaks PDF/A-1 compat when accessibility requested

2016-06-29 Thread simon steiner (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15355233#comment-15355233
 ] 

simon steiner commented on FOP-2618:


You need to set pdf version to 1.4

eg fop.xconf


  .
  .
  true
  


  PDF/A-1a 
  1.4

  

  

  



  


> Table breaks PDF/A-1 compat when accessibility requested
> 
>
> Key: FOP-2618
> URL: https://issues.apache.org/jira/browse/FOP-2618
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.1
> Environment: java version "1.7.0_95"
> Linux: OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb7u1)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
>  as well as Linux:
> java version "1.8.0_73"
> Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
>Reporter: Stefan Hegny
>Priority: Minor
> Fix For: 1.1
>
>
> When running fop 2.1 with {{-a -pdfprofile 'PDF/A-1a'}} then the pdf output 
> of the following file will not validate on various engines (e.g. pdfbox 
> preflight) with an  error {{1.4 : Trailer Syntax error, /XRef cross reference 
> streams are not allowed}}
> If the fo:table is taken out of the fo then it gives (more) valid output 
> (i.e. not the xref error). It also avoids the xref error when specifying 
> {{-pdfprofile 'PDF/A-1b'}} and no {{-a}} flag with fop 2.1.  Using fop 1.1 
> with {{-a -pdfprofile 'PDF/A-1a'}}  will give other issues (that can be fixed 
> e.g. with exiftool) but will NOT produce the XRef Trailer syntax error. 
> {{
> http://www.w3.org/1999/XSL/Format; 
> xmlns:h="http://xmlns.dummycompany.com/letters; 
> xmlns:hx="http://xmlns.dummycompany.com/letters/intern; 
> xmlns:l="http://www.w3.org/1999/xhtml; 
> xmlns:xalan="http://xml.apache.org/xalan; xml:lang="de">
> 
>  margin-left="10mm" margin-bottom="20mm" margin-top="32mm" page-width="21cm" 
> page-height="29.6984848098cm">
> 
> 
> 
> 
> 
>  master-reference="first"/>
> 
> 
> 
> 
> 
>  border-width="0pt" padding="0mm">
>  font-family="serif" font-size="11pt" space-before="28pt" font-weight="bold">
> Rechnung Nr. 2016-413
> 
>  font-family="serif" font-size="11pt">
> 
> 
> 
> 
> 
> 
> 
>  font-weight="bold">Leistung
> 
> 
>  font-weight="bold">Anzahl
> 
> 
>  text-align="end">Betrag
> 
> 
> 
> 
> 
> 
> Spaxschrauben 2,5x5mm
> 
> 
>  text-align="center">100
> 
> 
> 
> 33,75 €
> 
> 
> 
>  border-top-style="solid" position="relative" margin-top="10pt">
> 
> Nettosumme
> 
> 
>  
>   
> 
> 
> 33,75 €
> 
> 
> 
> 
> 
> 
> 
> 
> 
> }}



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


[jira] [Commented] (FOP-2618) Table breaks PDF/A-1 compat when accessibility requested

2016-06-29 Thread Stefan Hegny (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15355209#comment-15355209
 ] 

Stefan Hegny commented on FOP-2618:
---

It seems to avoid the xref error when i remove the {{role="TH"}} from the if 
intermediate format and use {{-ifin}} with that modified file.

> Table breaks PDF/A-1 compat when accessibility requested
> 
>
> Key: FOP-2618
> URL: https://issues.apache.org/jira/browse/FOP-2618
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.1
> Environment: java version "1.7.0_95"
> Linux: OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb7u1)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
>  as well as Linux:
> java version "1.8.0_73"
> Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
>Reporter: Stefan Hegny
>Priority: Minor
> Fix For: 1.1
>
>
> When running fop 2.1 with {{-a -pdfprofile 'PDF/A-1a'}} then the pdf output 
> of the following file will not validate on various engines (e.g. pdfbox 
> preflight) with an  error {{1.4 : Trailer Syntax error, /XRef cross reference 
> streams are not allowed}}
> If the fo:table is taken out of the fo then it gives (more) valid output 
> (i.e. not the xref error). It also avoids the xref error when specifying 
> {{-pdfprofile 'PDF/A-1b'}} and no {{-a}} flag with fop 2.1.  Using fop 1.1 
> with {{-a -pdfprofile 'PDF/A-1a'}}  will give other issues (that can be fixed 
> e.g. with exiftool) but will NOT produce the XRef Trailer syntax error. 
> {{
> http://www.w3.org/1999/XSL/Format; 
> xmlns:h="http://xmlns.dummycompany.com/letters; 
> xmlns:hx="http://xmlns.dummycompany.com/letters/intern; 
> xmlns:l="http://www.w3.org/1999/xhtml; 
> xmlns:xalan="http://xml.apache.org/xalan; xml:lang="de">
> 
>  margin-left="10mm" margin-bottom="20mm" margin-top="32mm" page-width="21cm" 
> page-height="29.6984848098cm">
> 
> 
> 
> 
> 
>  master-reference="first"/>
> 
> 
> 
> 
> 
>  border-width="0pt" padding="0mm">
>  font-family="serif" font-size="11pt" space-before="28pt" font-weight="bold">
> Rechnung Nr. 2016-413
> 
>  font-family="serif" font-size="11pt">
> 
> 
> 
> 
> 
> 
> 
>  font-weight="bold">Leistung
> 
> 
>  font-weight="bold">Anzahl
> 
> 
>  text-align="end">Betrag
> 
> 
> 
> 
> 
> 
> Spaxschrauben 2,5x5mm
> 
> 
>  text-align="center">100
> 
> 
> 
> 33,75 €
> 
> 
> 
>  border-top-style="solid" position="relative" margin-top="10pt">
> 
> Nettosumme
> 
> 
>  
>   
> 
> 
> 33,75 €
> 
> 
> 
> 
> 
> 
> 
> 
> 
> }}



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