[jira] [Reopened] (FOP-1798) Empty fo:inline objects with id attribute generate blank line

2021-10-13 Thread Simon Steiner (Jira)


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

Simon Steiner reopened FOP-1798:


> Empty fo:inline objects with id attribute generate blank line
> -
>
> Key: FOP-1798
> URL: https://issues.apache.org/jira/browse/FOP-1798
> Project: FOP
>  Issue Type: Bug
>  Components: unqualified
>Affects Versions: 0.95
> Environment: Operating System: All
> Platform: PC
>Reporter: Dwayne B.
> Attachments: h13-623-Exam-Dumps-2019.pdf, inline-test-cases.zip
>
>
> As per the summary, fo:inline objects with no content and an id attribute 
> (e.g. ) will render a blank space; this should not 
> occur. Please see the example test cases and the PDFs generated by Apache FOP 
> 0.95 that are in the attached zip file.
> I am fairly certain this is related to the resolution of this bug: 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=42748 and this revision: 
> http://svn.apache.org/viewvc?view=revision&revision=591437
> Thanks.



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


[jira] [Commented] (FOP-3005) Hyphenation: Any non-English language prevents inherited hyphenate="true" from being overridden

2021-10-13 Thread J Frank (Jira)


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

J Frank commented on FOP-3005:
--

This is not a bug but enhancement, fo:inline to support hypenation

> Hyphenation: Any non-English language prevents inherited hyphenate="true" 
> from being overridden
> ---
>
> Key: FOP-3005
> URL: https://issues.apache.org/jira/browse/FOP-3005
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6
>Reporter: Jay
>Priority: Major
> Attachments: Pdf properties to cross check.png, input.fo, out_de.pdf, 
> out_en.pdf, screenshot-1.png, screenshot-2.png
>
>
> Overriding an inherited {{hyphenate="true"}} (e. g. to prevent words from 
> being hyphenated) is not possible if the language is any other than English. 
> Consider this example:
> {code:xml}
> 
> http://www.w3.org/1999/XSL/Format";>
> 
>  page-width="21.0cm" margin-top="1.21cm"
> margin-bottom=".8cm" margin-left="2.4cm"
> margin-right="1.5cm">
> 
> 
> 
> 
> 
> 
> Whereas recognition of the inherent dignity and of the equal 
> and
> inalienable rights of all members of the human family is the
> foundation of freedom, justice and peace in the world, Whereas
> disregard and contempt for human rights have resulted in
> barbarous acts which have outraged the conscience of mankind,
> and the advent of a
> 
> http://www.some-link-that-must-not-be-hyphenated.com
> 
> world in which human beings shall enjoy freedom of speech and
> belief and freedom from fear and want has been proclaimed as 
> the
> highest aspiration of the common people
> 
> 
> 
> 
> {code}
> The link 
> {{[http://www.some-link-that-must-not-be-hyphenated.com|http://www.some-link-that-must-not-be-hyphenated.com/]}}
>  as expected is not getting hyphenated. However, once I set 
> {{xml:lang="de"}}, both the attributes {{hyphenate="false"}} and 
> {{keep-together="always"}} inside the {{inline}} tag will be ignored. The 
> link will be hyphenated, _not_ as expected.



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


[jira] [Commented] (FOP-3005) Hyphenation: Any non-English language prevents inherited hyphenate="true" from being overridden

2021-10-13 Thread J Frank (Jira)


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

J Frank commented on FOP-3005:
--

Any update on this Jay? did  you try block for language de ( without inline)?

> Hyphenation: Any non-English language prevents inherited hyphenate="true" 
> from being overridden
> ---
>
> Key: FOP-3005
> URL: https://issues.apache.org/jira/browse/FOP-3005
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.6
>Reporter: Jay
>Priority: Major
> Attachments: Pdf properties to cross check.png, input.fo, out_de.pdf, 
> out_en.pdf, screenshot-1.png, screenshot-2.png
>
>
> Overriding an inherited {{hyphenate="true"}} (e. g. to prevent words from 
> being hyphenated) is not possible if the language is any other than English. 
> Consider this example:
> {code:xml}
> 
> http://www.w3.org/1999/XSL/Format";>
> 
>  page-width="21.0cm" margin-top="1.21cm"
> margin-bottom=".8cm" margin-left="2.4cm"
> margin-right="1.5cm">
> 
> 
> 
> 
> 
> 
> Whereas recognition of the inherent dignity and of the equal 
> and
> inalienable rights of all members of the human family is the
> foundation of freedom, justice and peace in the world, Whereas
> disregard and contempt for human rights have resulted in
> barbarous acts which have outraged the conscience of mankind,
> and the advent of a
> 
> http://www.some-link-that-must-not-be-hyphenated.com
> 
> world in which human beings shall enjoy freedom of speech and
> belief and freedom from fear and want has been proclaimed as 
> the
> highest aspiration of the common people
> 
> 
> 
> 
> {code}
> The link 
> {{[http://www.some-link-that-must-not-be-hyphenated.com|http://www.some-link-that-must-not-be-hyphenated.com/]}}
>  as expected is not getting hyphenated. However, once I set 
> {{xml:lang="de"}}, both the attributes {{hyphenate="false"}} and 
> {{keep-together="always"}} inside the {{inline}} tag will be ignored. The 
> link will be hyphenated, _not_ as expected.



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


[jira] [Closed] (FOP-1798) Empty fo:inline objects with id attribute generate blank line

2021-10-13 Thread Simon Steiner (Jira)


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

Simon Steiner closed FOP-1798.
--
Resolution: Not A Bug

> Empty fo:inline objects with id attribute generate blank line
> -
>
> Key: FOP-1798
> URL: https://issues.apache.org/jira/browse/FOP-1798
> Project: FOP
>  Issue Type: Bug
>  Components: unqualified
>Affects Versions: 0.95
> Environment: Operating System: All
> Platform: PC
>Reporter: Dwayne B.
> Attachments: h13-623-Exam-Dumps-2019.pdf, inline-test-cases.zip
>
>
> As per the summary, fo:inline objects with no content and an id attribute 
> (e.g. ) will render a blank space; this should not 
> occur. Please see the example test cases and the PDFs generated by Apache FOP 
> 0.95 that are in the attached zip file.
> I am fairly certain this is related to the resolution of this bug: 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=42748 and this revision: 
> http://svn.apache.org/viewvc?view=revision&revision=591437
> Thanks.



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


[jira] [Commented] (FOP-1798) Empty fo:inline objects with id attribute generate blank line

2021-10-13 Thread J Frank (Jira)


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

J Frank commented on FOP-1798:
--

This can be closed as its not a bug, but other scenario is reported by Andreas 
can be treated as new bug.
Empty inlines are in fact supposed to generate an area (= content/allocation 
rectangle), regardless of whether an id or marker is present
Below block doesnt not generate blank line

 

Block with id generates blank line as expected

 


> Empty fo:inline objects with id attribute generate blank line
> -
>
> Key: FOP-1798
> URL: https://issues.apache.org/jira/browse/FOP-1798
> Project: FOP
>  Issue Type: Bug
>  Components: unqualified
>Affects Versions: 0.95
> Environment: Operating System: All
> Platform: PC
>Reporter: Dwayne B.
> Attachments: h13-623-Exam-Dumps-2019.pdf, inline-test-cases.zip
>
>
> As per the summary, fo:inline objects with no content and an id attribute 
> (e.g. ) will render a blank space; this should not 
> occur. Please see the example test cases and the PDFs generated by Apache FOP 
> 0.95 that are in the attached zip file.
> I am fairly certain this is related to the resolution of this bug: 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=42748 and this revision: 
> http://svn.apache.org/viewvc?view=revision&revision=591437
> Thanks.



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


[jira] [Closed] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread Chris Bowditch (Jira)


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

Chris Bowditch closed FOP-2899.
---
Resolution: Not A Bug

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Assignee: J Frank
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Assigned] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-2899:
--

Assignee: J Frank

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Assignee: J Frank
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Comment Edited] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank edited comment on FOP-2899 at 10/13/21, 11:59 AM:
--

Border  is not visible as it is same as that of background-color,
I have tried with different combination, find the attached fo and output 
[^test.fo]   [^output Border color black.pdf]  [^output- border color same 
color as that of background.pdf]  [^output_Border color Red.pdf] 


was (Author: jagruti.fr...@gmail.com):
Border  is not visible as it is same as that of background-color,
I have tried with different combination, find the attached fo and output 
[^test.fo]  [^output Border color black.pdf]  [^output- border color same color 
as that of background.pdf]  [^output_Border color Red.pdf] 

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Updated] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank updated FOP-2899:
-
Attachment: test.fo

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Updated] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank updated FOP-2899:
-
Attachment: (was: test.fo)

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Commented] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank commented on FOP-2899:
--

Border  is not visible as it is same as that of background-color,
I have tried with different combination, find the attached fo and output 
[^test.fo]  [^output Border color black.pdf]  [^output- border color same color 
as that of background.pdf]  [^output_Border color Red.pdf] 

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Updated] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank updated FOP-2899:
-
Attachment: output_Border color Red.pdf

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Updated] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank updated FOP-2899:
-
Attachment: output- border color same color as that of background.pdf

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Updated] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank updated FOP-2899:
-
Attachment: output Border color black.pdf

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[jira] [Updated] (FOP-2899) Setting a background-color let border vanish

2021-10-13 Thread J Frank (Jira)


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

J Frank updated FOP-2899:
-
Attachment: test.fo

> Setting a background-color let border vanish
> 
>
> Key: FOP-2899
> URL: https://issues.apache.org/jira/browse/FOP-2899
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: 2.4
>Reporter: Svante Schubert
>Priority: Major
> Attachments: UBL-Invoice-2.0-Example_backgroundColor.fo, 
> UBL-Invoice-2.0-Example_backgroundColor.pdf, 
> UBL-Invoice-2.0-Example_backgroundColor_indent.fo, 
> UBL-Invoice-2.0-Example_noBackground.fo, 
> UBL-Invoice-2.0-Example_noBackground.pdf, 
> UBL-Invoice-2.0-Example_noBackground_indent.fo, output Border color 
> black.pdf, output- border color same color as that of background.pdf, 
> output_Border color Red.pdf, test.fo
>
>
> As soon a background-color is being added to cells the cell border is 
> vanishing as it seems to use the same color as the background.
> I have attached two versions of a document, one with and the other without 
> background colour as PDF and FO (indent and without indent).
>  



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


[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&focusedCommentId=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)