[jira] [Commented] (FOP-3006) [PATCH] XMP Metadata in created PDF/A-2 documents is not valid

2021-10-13 Thread Stefan Berger (Jira)


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

Stefan Berger commented on FOP-3006:


I personally would have changed the check to
{code:java}
dc.setCompact(pdfaMode.getPart() < 2)
{code}
in case PDF/A-4 is introduced


> [PATCH] XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Assignee: J Frank
>Priority: Major
> Fix For: trunk
>
> Attachments: fop.xconf, fop1.xconf, fop_invalid_metadata.pdf, 
> patch-FOP-3006.diff, test.fo, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-20 Thread Stefan Berger (Jira)


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

Stefan Berger commented on FOP-3006:


I just noticed that in my code above, I forgot to create a FOUserAgent with 
PDF/A-2a, which is the whole point of this bug.

I corrected the code to include that.

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-20 Thread Stefan Berger (Jira)


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

Stefan Berger edited comment on FOP-3006 at 9/20/21, 7:55 AM:
--

I've added the xconf and test.fo file, fonts have to be specified in the 
fop.xconf in order to to use PDF/A.

Here is some code triggering the bug:
{code:java}
FopFactory fopFactory = FopFactory.newInstance(new File("C:/Temp/fop.xconf"));

FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
foUserAgent.setAccessibility(true);
foUserAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-2a");

try (OutputStream out = new BufferedOutputStream(new FileOutputStream(new 
File("C:/Temp/test.pdf" {
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);

TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

Source src = new StreamSource(new File("C:/Temp/test.fo"));
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
}
{code}


was (Author: bergers):
I've added the xconf and test.fo file, fonts have to be specified in the 
fop.xconf in order to to use PDF/A.

Here is some code triggering the bug:
{code:java}
FopFactory fopFactory = FopFactory.newInstance(new File("C:/Temp/fop.xconf"));

try (OutputStream out = new BufferedOutputStream(new FileOutputStream(new 
File("C:/Temp/test.pdf" {
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);

TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

Source src = new StreamSource(new File("C:/Temp/test.fo"));
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
}
{code}

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-15 Thread Stefan Berger (Jira)


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

Stefan Berger edited comment on FOP-3006 at 9/15/21, 4:31 PM:
--

I've added the xconf and test.fo file, fonts have to be specified in the 
fop.xconf in order to to use PDF/A.

Here is some code triggering the bug:
{code:java}
FopFactory fopFactory = FopFactory.newInstance(new File("C:/Temp/fop.xconf"));

try (OutputStream out = new BufferedOutputStream(new FileOutputStream(new 
File("C:/Temp/test.pdf" {
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);

TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

Source src = new StreamSource(new File("C:/Temp/test.fo"));
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
}
{code}


was (Author: bergers):
I've added the xconf and test.fo file, fonts have to be specified in the 
fop.xconf in order to to use PDF/A.

Here is some code triggering the bug:
{code:java}
FopFactory fopFactory = 
FopFactory.newInstance(ResourceUtils.getFile("C:/Temp/fop.xconf"));

try (OutputStream out = new BufferedOutputStream(new FileOutputStream(new 
File("C:/Temp/test.pdf" {
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);

TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

Source src = new StreamSource(new File("C:/Temp/test.fo"));
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
}
{code}

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-15 Thread Stefan Berger (Jira)


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

Stefan Berger commented on FOP-3006:


I've added the xconf and test.fo file, fonts have to be specified in the 
fop.xconf in order to to use PDF/A.

Here is some code triggering the bug:
{code:java}
FopFactory fopFactory = 
FopFactory.newInstance(ResourceUtils.getFile("C:/Temp/fop.xconf"));

try (OutputStream out = new BufferedOutputStream(new FileOutputStream(new 
File("C:/Temp/test.pdf" {
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);

TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

Source src = new StreamSource(new File("C:/Temp/test.fo"));
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
}
{code}

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-15 Thread Stefan Berger (Jira)


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

Stefan Berger updated FOP-3006:
---
Attachment: test.fo

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-15 Thread Stefan Berger (Jira)


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

Stefan Berger updated FOP-3006:
---
Attachment: (was: test.fo)

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-15 Thread Stefan Berger (Jira)


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

Stefan Berger updated FOP-3006:
---
Attachment: test.fo

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, test.fo, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-15 Thread Stefan Berger (Jira)


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

Stefan Berger updated FOP-3006:
---
Attachment: fop.xconf

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop.xconf, fop_invalid_metadata.pdf, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-09-15 Thread Stefan Berger (Jira)


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

Stefan Berger commented on FOP-3006:


You can use any FO file, doesn't matter what's in it.

The error happens when you try to transform the FO to PDF with the PDF/A mode 
setting mentioned above.

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop_invalid_metadata.pdf, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-04-01 Thread Stefan Berger (Jira)


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

Stefan Berger updated FOP-3006:
---
Description: 
When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
pass the validation because  and  are not valid.

In the case of , it should contain a , and  
should contain a .

The offending code is this one: 
[https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]

By setting compact to true, Bags and Sequences are not created.

Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
validation results. Other validators also report the same error.

  was:
When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
pass the validation because `` and `` are not valid.

In the case of ``, it should contain a ``, and 
`` should contain a ``.

The offending code is this one: 
[https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]

By setting `compact` to `true`, Bags and Sequences are not created.

Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
validation results. Other validators also report the same error.


> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop_invalid_metadata.pdf, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because  and  are not valid.
> In the case of , it should contain a , and  
> should contain a .
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-04-01 Thread Stefan Berger (Jira)


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

Stefan Berger updated FOP-3006:
---
Attachment: veraPDF-tempHTMLReport4387586169468085905.html

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop_invalid_metadata.pdf, 
> veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because `` and `` are not valid.
> In the case of ``, it should contain a ``, and 
> `` should contain a ``.
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting `compact` to `true`, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-04-01 Thread Stefan Berger (Jira)
Stefan Berger created FOP-3006:
--

 Summary: XMP Metadata in created PDF/A-2 documents is not valid
 Key: FOP-3006
 URL: https://issues.apache.org/jira/browse/FOP-3006
 Project: FOP
  Issue Type: Bug
Affects Versions: 2.6, trunk
Reporter: Stefan Berger
 Attachments: fop_invalid_metadata.pdf

When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
pass the validation because `` and `` are not valid.

In the case of ``, it should contain a ``, and 
`` should contain a ``.

The offending code is this one: 
[https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]

By setting `compact` to `true`, Bags and Sequences are not created.

Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-3006) XMP Metadata in created PDF/A-2 documents is not valid

2021-04-01 Thread Stefan Berger (Jira)


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

Stefan Berger updated FOP-3006:
---
Attachment: fop_invalid_metadata.pdf

> XMP Metadata in created PDF/A-2 documents is not valid
> --
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6, trunk
>Reporter: Stefan Berger
>Priority: Major
> Attachments: fop_invalid_metadata.pdf
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not 
> pass the validation because `` and `` are not valid.
> In the case of ``, it should contain a ``, and 
> `` should contain a ``.
> The offending code is this one: 
> [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting `compact` to `true`, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's 
> validation results. Other validators also report the same error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)