[jira] [Resolved] (FOP-3207) Add warning when different pdf languages are used

2024-09-18 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3207.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/7fcf3ca57185dac5fbf30874a64e5a047340d402

> Add warning when different pdf languages are used
> -
>
> Key: FOP-3207
> URL: https://issues.apache.org/jira/browse/FOP-3207
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: simple.fo, simple2.fo
>
>
> fop simple.fo -if out.if
> fop simple2.fo -if out2.if
> Merge IF files
> fop -ifin out.if out.pdf
> A warning should occur



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3207) Add warning when different pdf languages are used

2024-09-18 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3207:
---
Description: 
fop simple.fo -if out.if
fop simple2.fo -if out2.if
Merge IF files
fop -ifin out.if out.pdf
A warning should occur

> Add warning when different pdf languages are used
> -
>
> Key: FOP-3207
> URL: https://issues.apache.org/jira/browse/FOP-3207
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo, simple2.fo
>
>
> fop simple.fo -if out.if
> fop simple2.fo -if out2.if
> Merge IF files
> fop -ifin out.if out.pdf
> A warning should occur



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3207) Add warning when different xml:lang's are used

2024-09-18 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3207:
--

 Summary: Add warning when different xml:lang's are used
 Key: FOP-3207
 URL: https://issues.apache.org/jira/browse/FOP-3207
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: simple.fo, simple2.fo





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3207) Add warning when different pdf languages are used

2024-09-18 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3207:
---
Summary: Add warning when different pdf languages are used  (was: Add 
warning when different xml:lang's are used)

> Add warning when different pdf languages are used
> -
>
> Key: FOP-3207
> URL: https://issues.apache.org/jira/browse/FOP-3207
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo, simple2.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3207) Add warning when different pdf languages are used

2024-09-18 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3207:
---
Attachment: simple.fo
simple2.fo

> Add warning when different pdf languages are used
> -
>
> Key: FOP-3207
> URL: https://issues.apache.org/jira/browse/FOP-3207
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo, simple2.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3191) [PATCH] AFP File missing MODCA Mandatory Triplet

2024-09-16 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3191.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/deb2c2cbc18790ed8ad17303f841a178441e1a6a

> [PATCH] AFP File missing MODCA Mandatory Triplet
> 
>
> Key: FOP-3191
> URL: https://issues.apache.org/jira/browse/FOP-3191
> Project: FOP
>  Issue Type: Bug
>Reporter: João André Gonçalves
>Assignee: Simon Steiner
>Priority: Minor
> Fix For: main
>
> Attachments: fop-1.patch
>
>
> We are generating afp files that are not compliant with the MO:DCA 
> requirements



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (FOP-3191) [PATCH] AFP File missing MODCA Mandatory Triplet

2024-09-16 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3191:
--

Assignee: Simon Steiner

> [PATCH] AFP File missing MODCA Mandatory Triplet
> 
>
> Key: FOP-3191
> URL: https://issues.apache.org/jira/browse/FOP-3191
> Project: FOP
>  Issue Type: Bug
>Reporter: João André Gonçalves
>Assignee: Simon Steiner
>Priority: Minor
> Attachments: fop-1.patch
>
>
> We are generating afp files that are not compliant with the MO:DCA 
> requirements



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3204) Missing content for last page with change ipd

2024-09-04 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3204.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/6ef241f67c4bd27a698c56cdb8edbfade5d8aea4

> Missing content for last page with change ipd
> -
>
> Key: FOP-3204
> URL: https://issues.apache.org/jira/browse/FOP-3204
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: test.fo
>
>
> fop test.fo out.pdf
> All text should be drawn in the output



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3204) Missing content for last page with change ipd

2024-09-04 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3204:
---
Attachment: test.fo

> Missing content for last page with change ipd
> -
>
> Key: FOP-3204
> URL: https://issues.apache.org/jira/browse/FOP-3204
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3204) Missing content for last page with change ipd

2024-09-04 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3204:
--

 Summary: Missing content for last page with change ipd
 Key: FOP-3204
 URL: https://issues.apache.org/jira/browse/FOP-3204
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: test.fo





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3204) Missing content for last page with change ipd

2024-09-04 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3204:
---
Description: 
fop test.fo out.pdf
All text should be drawn in the output

> Missing content for last page with change ipd
> -
>
> Key: FOP-3204
> URL: https://issues.apache.org/jira/browse/FOP-3204
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo
>
>
> fop test.fo out.pdf
> All text should be drawn in the output



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3201) FOP PDF Images - Colors wrong when displaying area chart exported from Excel

2024-08-20 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3201:


what about trying in the fop.xconf:
  
  true



> FOP PDF Images - Colors wrong when displaying area chart exported from Excel
> 
>
> Key: FOP-3201
> URL: https://issues.apache.org/jira/browse/FOP-3201
> Project: FOP
>  Issue Type: Bug
>Reporter: Mark Gibson 
>Priority: Major
> Attachments: area-chart-image.pdf, area-chart.fo, out.pdf
>
>
> Hi.
> When exporting an Area chart from excel as a PDF - where there are two 
> different colors depending upon whether the line is under or over the x-axis 
> - the image when displayed in the final rendered PDF has incorrect color 
> placement/change boundary.
> Attached three files:
> *area-chart.fo* - simple test FO file using external-graphic to import the 
> image
> *area-chart-image.pdf* - the pdf image of the area chart
> *out.pdf* - Example rendered PDF using FOP 2.9
>  
> Command used to test
> {{    fop area-chart.fo -pdf out.pdf}}
> Tested against both FOP 2.8 and 2.9.  Both are broken, but the image in the 
> rendered PDF can be different between 2.8 and 2.9.
>  
> _Please note, when opening the PDFs by clicking the attachment links, they 
> show large gradients that are not displayed when opening the same files on 
> Windows in either Chrome or Acrobat Pro DC_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3199) website: broken Link on fo.html

2024-08-14 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3199.

Resolution: Fixed

https://github.com/apache/xmlgraphics-website/commit/82ab5c1a8f6f293944857c9064d7c26423aa3aa6

> website: broken Link on fo.html 
> 
>
> Key: FOP-3199
> URL: https://issues.apache.org/jira/browse/FOP-3199
> Project: FOP
>  Issue Type: Bug
>  Components: documentation
>Reporter: stj-fr
>Assignee: Simon Steiner
>Priority: Minor
>
> I found a broken link on the following page 
> [https://xmlgraphics.apache.org/fop/fo.html]
> this Text with embedded Link:
> "One possibility is to use the exslt date and time extension"
> broken: [http://exslt.org/date/index.html]
> new: [https://exslt.github.io/date/index.html]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (FOP-3199) website: broken Link on fo.html

2024-08-14 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3199:
--

Assignee: Simon Steiner

> website: broken Link on fo.html 
> 
>
> Key: FOP-3199
> URL: https://issues.apache.org/jira/browse/FOP-3199
> Project: FOP
>  Issue Type: Bug
>  Components: documentation
>Reporter: stj-fr
>Assignee: Simon Steiner
>Priority: Minor
>
> I found a broken link on the following page 
> [https://xmlgraphics.apache.org/fop/fo.html]
> this Text with embedded Link:
> "One possibility is to use the exslt date and time extension"
> broken: [http://exslt.org/date/index.html]
> new: [https://exslt.github.io/date/index.html]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3200) Correct end of start code for merging ttf cmap

2024-08-13 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3200.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop-pdf-images/commit/f20a011a99fcb31de7e78dfc30dafee823ace4be

> Correct end of start code for merging ttf cmap
> --
>
> Key: FOP-3200
> URL: https://issues.apache.org/jira/browse/FOP-3200
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
>
> When merging ttf fonts we should correct cmap so it can be printed in Adobe 
> Reader



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3200) Correct end of start code for merging ttf cmap

2024-08-13 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3200:
---
Description: When merging ttf fonts we should correct cmap so it can be 
printed in Adobe Reader  (was: When merging ttf fonts we should correct cmap so 
it can be printed)

> Correct end of start code for merging ttf cmap
> --
>
> Key: FOP-3200
> URL: https://issues.apache.org/jira/browse/FOP-3200
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
>
> When merging ttf fonts we should correct cmap so it can be printed in Adobe 
> Reader



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3200) Correct end of start code for merging ttf cmap

2024-08-13 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3200:
---
Description: When merging ttf fonts we should correct cmap so it can be 
printed

> Correct end of start code for merging ttf cmap
> --
>
> Key: FOP-3200
> URL: https://issues.apache.org/jira/browse/FOP-3200
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
>
> When merging ttf fonts we should correct cmap so it can be printed



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3200) Correct end of start code for merging ttf cmap

2024-08-13 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3200:
--

 Summary: Correct end of start code for merging ttf cmap
 Key: FOP-3200
 URL: https://issues.apache.org/jira/browse/FOP-3200
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3198) Allow curly braces for src url

2024-08-07 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3198.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/c11f43c9dbf529b87820d77ef501aa10699fc9d8

> Allow curly braces for src url
> --
>
> Key: FOP-3198
> URL: https://issues.apache.org/jira/browse/FOP-3198
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: test.fo, {test}.jpg
>
>
> fop test.fo out.pdf
> No error should occur



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3198) Allow curly braces for src url

2024-08-07 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3198:
--

 Summary: Allow curly braces for src url
 Key: FOP-3198
 URL: https://issues.apache.org/jira/browse/FOP-3198
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: test.fo, {test}.jpg





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3198) Allow curly braces for src url

2024-08-07 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3198:
---
Attachment: test.fo
{test}.jpg

> Allow curly braces for src url
> --
>
> Key: FOP-3198
> URL: https://issues.apache.org/jira/browse/FOP-3198
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo, {test}.jpg
>
>
> fop test.fo out.pdf
> No error should occur



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3198) Allow curly braces for src url

2024-08-07 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3198:
---
Description: 
fop test.fo out.pdf

No error should occur

> Allow curly braces for src url
> --
>
> Key: FOP-3198
> URL: https://issues.apache.org/jira/browse/FOP-3198
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo, {test}.jpg
>
>
> fop test.fo out.pdf
> No error should occur



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3197) Website links to missing image

2024-08-05 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3197.

Resolution: Fixed

https://github.com/apache/xmlgraphics-website/commit/86522e9dce03b8d07309428ba9ec1afba7760626

> Website links to missing image
> --
>
> Key: FOP-3197
> URL: https://issues.apache.org/jira/browse/FOP-3197
> Project: FOP
>  Issue Type: Bug
>  Components: documentation
>Reporter: Sebb
>Assignee: Simon Steiner
>Priority: Major
> Attachments: Apache(tm) XML Graphics Project - for the creation and 
> maintenance of software for the conversion of XML formats to graphical ou.pdf
>
>
> There are 3 references to blogs.apache.org in the website repo [1]
> These generally don't work, but take a long time doing so, which slows down 
> page loading.
> [1] 
> https://github.com/search?q=repo%3Aapache%2Fxmlgraphics-website+blogs.apache.org&type=code



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3197) Website links to missing image

2024-08-04 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3197.

Resolution: Fixed

https://github.com/apache/xmlgraphics-website/commit/ea819483a35fa3bb4d76d10241a70908d710d68e

> Website links to missing image
> --
>
> Key: FOP-3197
> URL: https://issues.apache.org/jira/browse/FOP-3197
> Project: FOP
>  Issue Type: Bug
>  Components: documentation
>Reporter: Sebb
>Assignee: Simon Steiner
>Priority: Major
>
> There are 3 references to blogs.apache.org in the website repo [1]
> These generally don't work, but take a long time doing so, which slows down 
> page loading.
> [1] 
> https://github.com/search?q=repo%3Aapache%2Fxmlgraphics-website+blogs.apache.org&type=code



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (FOP-3197) Website links to missing image

2024-08-04 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3197:
--

Assignee: Simon Steiner

> Website links to missing image
> --
>
> Key: FOP-3197
> URL: https://issues.apache.org/jira/browse/FOP-3197
> Project: FOP
>  Issue Type: Bug
>  Components: documentation
>Reporter: Sebb
>Assignee: Simon Steiner
>Priority: Major
>
> There are 3 references to blogs.apache.org in the website repo [1]
> These generally don't work, but take a long time doing so, which slows down 
> page loading.
> [1] 
> https://github.com/search?q=repo%3Aapache%2Fxmlgraphics-website+blogs.apache.org&type=code



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3195) Skip written block ipds inside float

2024-07-30 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3195.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/f9e031ace069602f5a67222b32e2f1ce3fdc54fc

> Skip written block ipds inside float
> 
>
> Key: FOP-3195
> URL: https://issues.apache.org/jira/browse/FOP-3195
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: test.fo
>
>
> fop test.fo out.pdf
> Text should be on right side



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3195) Skip written block ipds inside float

2024-07-30 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3195:
---
Description: 
fop test.fo out.pdf
Text should be on right side

> Skip written block ipds inside float
> 
>
> Key: FOP-3195
> URL: https://issues.apache.org/jira/browse/FOP-3195
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo
>
>
> fop test.fo out.pdf
> Text should be on right side



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3195) Skip written block ipds inside float

2024-07-30 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3195:
---
Attachment: test.fo

> Skip written block ipds inside float
> 
>
> Key: FOP-3195
> URL: https://issues.apache.org/jira/browse/FOP-3195
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3195) Skip written block ipds inside float

2024-07-30 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3195:
--

 Summary: Skip written block ipds inside float
 Key: FOP-3195
 URL: https://issues.apache.org/jira/browse/FOP-3195
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: test.fo





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3194) Add image mask option for AFP

2024-07-24 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3194:
---
Description: 
fop test.fo -afp out.afp -c fop.xconf

You should see background colour instead of white for part of the image

> Add image mask option for AFP
> -
>
> Key: FOP-3194
> URL: https://issues.apache.org/jira/browse/FOP-3194
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, test.fo, trans2.png
>
>
> fop test.fo -afp out.afp -c fop.xconf
> You should see background colour instead of white for part of the image



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3194) Add image mask option for AFP

2024-07-24 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3194.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/1ce1125e8560afa59b629ba1e9217ceac13f2792

> Add image mask option for AFP
> -
>
> Key: FOP-3194
> URL: https://issues.apache.org/jira/browse/FOP-3194
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.xconf, test.fo, trans2.png
>
>
> fop test.fo -afp out.afp -c fop.xconf
> You should see background colour instead of white for part of the image



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3194) Add image mask option for AFP

2024-07-24 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3194:
---
Attachment: test.fo

> Add image mask option for AFP
> -
>
> Key: FOP-3194
> URL: https://issues.apache.org/jira/browse/FOP-3194
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, test.fo, trans2.png
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3194) Add image mask option for AFP

2024-07-24 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3194:
---
Attachment: trans2.png

> Add image mask option for AFP
> -
>
> Key: FOP-3194
> URL: https://issues.apache.org/jira/browse/FOP-3194
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, test.fo, trans2.png
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3194) Add image mask option for AFP

2024-07-24 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3194:
--

 Summary: Add image mask option for AFP
 Key: FOP-3194
 URL: https://issues.apache.org/jira/browse/FOP-3194
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: fop.xconf, test.fo, trans2.png





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3194) Add image mask option for AFP

2024-07-24 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3194:
---
Attachment: fop.xconf

> Add image mask option for AFP
> -
>
> Key: FOP-3194
> URL: https://issues.apache.org/jira/browse/FOP-3194
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, test.fo, trans2.png
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3137) PDF Images - external-document layout broken

2024-07-19 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3137:


You did which is wrong:
final FopFactory fopFactory = FopFactory.newInstance(configfile.toURI());
Can you do instead:
final FopFactory fopFactory = FopFactory.newInstance(configfile);

> PDF Images - external-document layout broken
> 
>
> Key: FOP-3137
> URL: https://issues.apache.org/jira/browse/FOP-3137
> Project: FOP
>  Issue Type: Bug
> Environment: Windows 10.0.19045 Build 19045
> Java 17
> FOP 2.8
> PDF Images 2.8
>Reporter: Rafael Witak
>Priority: Major
> Attachments: image-2023-07-13-16-46-26-626.png, 
> image-2023-07-13-16-47-09-093.png, older.pdf, original.pdf, output.pdf
>
>
> When including the PDFs of one of our customers, the layout gets messed up, 
> turning this: 
> !image-2023-07-13-16-47-09-093.png|width=349,height=265!
> into this:
> !image-2023-07-13-16-46-26-626.png|width=350,height=284!
>  
> The customer recently switched to PDF 1.7, all of their PDFs get messed up 
> ever since. 
> There are no FOP events in the log, checking the resulting PDF with _pdfcpu_ 
> validates perfectly, even with strict mode on. 
> Setting strict-validation in the renderer also doesn't produce any errors. 
> The problem happens regardless of the version of FOP and fop-pdf-images used. 
> The FO input for reproduction can be reduced to 
> {{http://www.w3.org/1999/XSL/Format"}}
> {{xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";>}}
> {{  }}
> {{    }}
> {{      }}
> {{    }}
> {{  }}
> {{  }}
> {{{}{}}}{{{}{}}}
>  
> Various problems regarding layouts are mentioned in the "Known Issues". 
> There is also the general statement _"Apache FOP currently generates PDF 1.4. 
> If you include a PDF with a higher PDF version, the results may be 
> unpredictable."_ to be found (That said, setting different versions in the 
> renderer did not solve the problem).
> Please let me know, if this is out of scope for the project - and if it is, 
> please provide me with any workarounds you might know of!
>  
> (Included are one of the originals together with its output, as well as an 
> older PDF of the same customer which works as expected. )



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3137) PDF Images - external-document layout broken

2024-07-18 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3137:


how are you including the fop.xconf, its passed using the fop api, not thru the 
fo file

> PDF Images - external-document layout broken
> 
>
> Key: FOP-3137
> URL: https://issues.apache.org/jira/browse/FOP-3137
> Project: FOP
>  Issue Type: Bug
> Environment: Windows 10.0.19045 Build 19045
> Java 17
> FOP 2.8
> PDF Images 2.8
>Reporter: Rafael Witak
>Priority: Major
> Attachments: image-2023-07-13-16-46-26-626.png, 
> image-2023-07-13-16-47-09-093.png, older.pdf, original.pdf, output.pdf
>
>
> When including the PDFs of one of our customers, the layout gets messed up, 
> turning this: 
> !image-2023-07-13-16-47-09-093.png|width=349,height=265!
> into this:
> !image-2023-07-13-16-46-26-626.png|width=350,height=284!
>  
> The customer recently switched to PDF 1.7, all of their PDFs get messed up 
> ever since. 
> There are no FOP events in the log, checking the resulting PDF with _pdfcpu_ 
> validates perfectly, even with strict mode on. 
> Setting strict-validation in the renderer also doesn't produce any errors. 
> The problem happens regardless of the version of FOP and fop-pdf-images used. 
> The FO input for reproduction can be reduced to 
> {{http://www.w3.org/1999/XSL/Format"}}
> {{xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";>}}
> {{  }}
> {{    }}
> {{      }}
> {{    }}
> {{  }}
> {{  }}
> {{{}{}}}{{{}{}}}
>  
> Various problems regarding layouts are mentioned in the "Known Issues". 
> There is also the general statement _"Apache FOP currently generates PDF 1.4. 
> If you include a PDF with a higher PDF version, the results may be 
> unpredictable."_ to be found (That said, setting different versions in the 
> renderer did not solve the problem).
> Please let me know, if this is out of scope for the project - and if it is, 
> please provide me with any workarounds you might know of!
>  
> (Included are one of the originals together with its output, as well as an 
> older PDF of the same customer which works as expected. )



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3137) PDF Images - external-document layout broken

2024-07-16 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3137:


If you add true to pdf section in fop.xconf, does 
that help?

> PDF Images - external-document layout broken
> 
>
> Key: FOP-3137
> URL: https://issues.apache.org/jira/browse/FOP-3137
> Project: FOP
>  Issue Type: Bug
> Environment: Windows 10.0.19045 Build 19045
> Java 17
> FOP 2.8
> PDF Images 2.8
>Reporter: Rafael Witak
>Priority: Major
> Attachments: image-2023-07-13-16-46-26-626.png, 
> image-2023-07-13-16-47-09-093.png, older.pdf, original.pdf, output.pdf
>
>
> When including the PDFs of one of our customers, the layout gets messed up, 
> turning this: 
> !image-2023-07-13-16-47-09-093.png|width=349,height=265!
> into this:
> !image-2023-07-13-16-46-26-626.png|width=350,height=284!
>  
> The customer recently switched to PDF 1.7, all of their PDFs get messed up 
> ever since. 
> There are no FOP events in the log, checking the resulting PDF with _pdfcpu_ 
> validates perfectly, even with strict mode on. 
> Setting strict-validation in the renderer also doesn't produce any errors. 
> The problem happens regardless of the version of FOP and fop-pdf-images used. 
> The FO input for reproduction can be reduced to 
> {{http://www.w3.org/1999/XSL/Format"}}
> {{xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";>}}
> {{  }}
> {{    }}
> {{      }}
> {{    }}
> {{  }}
> {{  }}
> {{{}{}}}{{{}{}}}
>  
> Various problems regarding layouts are mentioned in the "Known Issues". 
> There is also the general statement _"Apache FOP currently generates PDF 1.4. 
> If you include a PDF with a higher PDF version, the results may be 
> unpredictable."_ to be found (That said, setting different versions in the 
> renderer did not solve the problem).
> Please let me know, if this is out of scope for the project - and if it is, 
> please provide me with any workarounds you might know of!
>  
> (Included are one of the originals together with its output, as well as an 
> older PDF of the same customer which works as expected. )



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3192) Skip page position only for multicolumn layout

2024-07-16 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3192.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/eb335e3f4be1670ef58a608f492f97f6c566c824

> Skip page position only for multicolumn layout
> --
>
> Key: FOP-3192
> URL: https://issues.apache.org/jira/browse/FOP-3192
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: simple.fo
>
>
> fop simple.fo out.pdf
> Output should be in blue



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3192) Skip page position only for multicolumn layout

2024-07-16 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3192:
---
Description: 
fop simple.fo out.pdf
Output should be in blue

> Skip page position only for multicolumn layout
> --
>
> Key: FOP-3192
> URL: https://issues.apache.org/jira/browse/FOP-3192
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo
>
>
> fop simple.fo out.pdf
> Output should be in blue



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3192) Skip page position only for multicolumn layout

2024-07-16 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3192:
---
Attachment: simple.fo

> Skip page position only for multicolumn layout
> --
>
> Key: FOP-3192
> URL: https://issues.apache.org/jira/browse/FOP-3192
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3192) Skip page position only for multicolumn layout

2024-07-16 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3192:
--

 Summary: Skip page position only for multicolumn layout
 Key: FOP-3192
 URL: https://issues.apache.org/jira/browse/FOP-3192
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3135) [PATCH] SVG tspan content is displayed out of place

2024-07-15 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3135.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-batik/commit/ccfb34fb8e430dc9fb38d44612e60f6588051990
https://github.com/apache/xmlgraphics-commons/commit/ec49c29700d3380d7b382bcde634d38203c9c2b0
https://github.com/apache/xmlgraphics-fop/commit/ef173cf4b2da33f2b84df3d17ecb71c1273c6e20

> [PATCH] SVG tspan content is displayed out of place
> ---
>
> Key: FOP-3135
> URL: https://issues.apache.org/jira/browse/FOP-3135
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg
>Reporter: Julien Lacour
>Assignee: Simon Steiner
>Priority: Minor
> Fix For: main
>
> Attachments: MI-Calibri-test.pdf, MI-out-patch.pdf, MI-out.pdf, 
> MI-test.fo, MI-tspan.svg, MI.patch, WIP-out.pdf, WIP.patch, batik.patch, 
> commons.patch, fop.patch, tspan.svg
>
>
> We have found an issue in FOP when transforming PDFs with SVGs containing 
>  with multiple @x and/or @y attributes values.
> The problem is located in 
> org.apache.fop.svg.PDFTextPainter.writeGlyphs(FOPGVTGlyphVector, 
> GeneralPath), the positions given by x and y are never used when set.
> A possible fix for this issue is the following:
> {code:java}
> for (int i = 0, n = gv.getNumGlyphs(); i < n; i++) {
> int gc  = gv.getGlyphCode(i);
> int[]   pa  = ((i > dp.length) || (dp[i] == null)) ? 
> paZero : dp[i];
> if (gv.getGlyphPosition(i) != null) {
> Point2D gp  = gv.getGlyphPosition(i);
> double x= gp.getX() - initialPos.getX();
> double y= -(gp.getY() - initialPos.getY());
> double xd   = x - xoLast;
> double yd   = y - yoLast;
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc = x + pa[2];
> yc = y + pa[3];
> xoLast = x;
> yoLast = y;
> } else {
> double  xo  = xc + pa[0];
> double  yo  = yc + pa[1];
> double  xa  = f.getWidth(gc);
> double  ya  = 0;
> double  xd  = (xo - xoLast) / 1000f;
> double  yd  = (yo - yoLast) / 1000f;
>
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc += xa + pa[2];
> yc += ya + pa[3];
> xoLast = xo;
> yoLast = yo;
> }
> }
> {code}
> I also attached an example for testing, it can be opened in Batik for 
> comparison.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3190) NPE when list item is split alongside an ipd change

2024-07-15 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3190.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/c04cbfb5cf645a4b81fd107a4b300c2d9202b016

> NPE when list item is split alongside an ipd change
> ---
>
> Key: FOP-3190
> URL: https://issues.apache.org/jira/browse/FOP-3190
> Project: FOP
>  Issue Type: Bug
>Reporter: João André Gonçalves
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.patch
>
>
> When using a list that spans multiple pages with different margins, a NPE is 
> thrown



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3190) NPE when list item is split alongside an ipd change

2024-07-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3190:
---
Summary: NPE when list item is split alongside an ipd change  (was: 
Document generation may fail when there is a change of widths between pages)

> NPE when list item is split alongside an ipd change
> ---
>
> Key: FOP-3190
> URL: https://issues.apache.org/jira/browse/FOP-3190
> Project: FOP
>  Issue Type: Bug
>Reporter: João André Gonçalves
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.patch
>
>
> When using a list that spans multiple pages with different margins, a NPE is 
> thrown



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (FOP-3190) Document generation may fail when there is a change of widths between pages

2024-07-15 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3190:
--

Assignee: Simon Steiner

> Document generation may fail when there is a change of widths between pages
> ---
>
> Key: FOP-3190
> URL: https://issues.apache.org/jira/browse/FOP-3190
> Project: FOP
>  Issue Type: Bug
>Reporter: João André Gonçalves
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.patch
>
>
> When using a list that spans multiple pages with different margins, a NPE is 
> thrown



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3188) Support jakarta EE API

2024-07-11 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3188.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/639d5b608224d566443a21efd85432a1dddb734a

> Support  jakarta EE API
> ---
>
> Key: FOP-3188
> URL: https://issues.apache.org/jira/browse/FOP-3188
> Project: FOP
>  Issue Type: Improvement
>Reporter: Packiaraj Sakkanan
>Assignee: Simon Steiner
>Priority: Major
>  Labels: EE, Jakarta
> Fix For: main
>
>
> Fop core does not support Jakarta EE APIs. 
> Here is the code reference : 
> [https://github.com/apache/xmlgraphics-fop/blob/main/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java#L29-L32]
> I am not seeing any issues open to support JakartaEE. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (FOP-3188) Support jakarta EE API

2024-07-11 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3188:
--

Assignee: Simon Steiner

> Support  jakarta EE API
> ---
>
> Key: FOP-3188
> URL: https://issues.apache.org/jira/browse/FOP-3188
> Project: FOP
>  Issue Type: Improvement
>Reporter: Packiaraj Sakkanan
>Assignee: Simon Steiner
>Priority: Major
>  Labels: EE, Jakarta
>
> Fop core does not support Jakarta EE APIs. 
> Here is the code reference : 
> [https://github.com/apache/xmlgraphics-fop/blob/main/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java#L29-L32]
> I am not seeing any issues open to support JakartaEE. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3188) Support jakarta EE API

2024-07-09 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3188:


tomcat 10 has a option to rewrite javax namespace to jarkarta at runtime

adding the single line "  " after the  in the main
conf/context.xml file


> Support  jakarta EE API
> ---
>
> Key: FOP-3188
> URL: https://issues.apache.org/jira/browse/FOP-3188
> Project: FOP
>  Issue Type: Improvement
>Reporter: Packiaraj Sakkanan
>Priority: Major
>  Labels: EE, Jakarta
>
> Fop core does not support Jakarta EE APIs. 
> Here is the code reference : 
> [https://github.com/apache/xmlgraphics-fop/blob/main/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java#L29-L32]
> I am not seeing any issues open to support JakartaEE. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3186) Only support 1 column for redo of layout without page pos only

2024-06-21 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3186.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/12e2889f4e86bd99cb2bc5e5a183e275e22c91de

> Only support 1 column for redo of layout without page pos only
> --
>
> Key: FOP-3186
> URL: https://issues.apache.org/jira/browse/FOP-3186
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: test.fo
>
>
> fop test.fo out.pdf
> Output should be red



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3186) Only support 1 column for redo of layout without page pos only

2024-06-21 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3186:
---
Description: 
fop test.fo out.pdf
Output should be red

> Only support 1 column for redo of layout without page pos only
> --
>
> Key: FOP-3186
> URL: https://issues.apache.org/jira/browse/FOP-3186
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo
>
>
> fop test.fo out.pdf
> Output should be red



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3186) Only support 1 column for redo of layout without page pos only

2024-06-21 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3186:
--

 Summary: Only support 1 column for redo of layout without page pos 
only
 Key: FOP-3186
 URL: https://issues.apache.org/jira/browse/FOP-3186
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: test.fo





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3186) Only support 1 column for redo of layout without page pos only

2024-06-21 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3186:
---
Attachment: test.fo

> Only support 1 column for redo of layout without page pos only
> --
>
> Key: FOP-3186
> URL: https://issues.apache.org/jira/browse/FOP-3186
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3185) Exclude shape not in clipping path for AFP

2024-06-13 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3185:
---
Attachment: test.fo

> Exclude shape not in clipping path for AFP
> --
>
> Key: FOP-3185
> URL: https://issues.apache.org/jira/browse/FOP-3185
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: adobe.pdf, test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3185) Exclude shape not in clipping path for AFP

2024-06-13 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3185.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/b8a6ee005de66e26ba4418c611985f68f323e230

> Exclude shape not in clipping path for AFP
> --
>
> Key: FOP-3185
> URL: https://issues.apache.org/jira/browse/FOP-3185
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: adobe.pdf, test.fo
>
>
> fop test.fo -afp out5.afp
> Output should match input pdf



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3185) Exclude shape not in clipping path for AFP

2024-06-13 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3185:
---
Description: 
fop test.fo -afp out5.afp

Output should match input pdf

> Exclude shape not in clipping path for AFP
> --
>
> Key: FOP-3185
> URL: https://issues.apache.org/jira/browse/FOP-3185
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: adobe.pdf, test.fo
>
>
> fop test.fo -afp out5.afp
> Output should match input pdf



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3185) Exclude shape not in clipping path for AFP

2024-06-13 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3185:
---
Attachment: adobe.pdf

> Exclude shape not in clipping path for AFP
> --
>
> Key: FOP-3185
> URL: https://issues.apache.org/jira/browse/FOP-3185
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: adobe.pdf, test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3185) Exclude shape not in clipping path for AFP

2024-06-13 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3185:
--

 Summary: Exclude shape not in clipping path for AFP
 Key: FOP-3185
 URL: https://issues.apache.org/jira/browse/FOP-3185
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3184) Allow change of resource level for SVG in AFP

2024-06-06 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3184.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/742784c4a90d18174682aa871b8d4b35a2ea2d1d

> Allow change of resource level for SVG in AFP
> -
>
> Key: FOP-3184
> URL: https://issues.apache.org/jira/browse/FOP-3184
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: 691675404.svg, fop.xconf, test.fo
>
>
> fop test.fo -c fop.xconf -afp out.afp
> Open in AFP Lookup
> IPS is used in the page to refer to the SVG, in the resource group



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3184) Allow change of resource level for SVG in AFP

2024-06-06 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3184:
---
Description: 
fop test.fo -c fop.xconf -afp out.afp

Open in AFP Lookup
IPS is used in the page to refer to the SVG, in the resource group


  was:
fop test.fo -c fop.xconf -afp out.afp




> Allow change of resource level for SVG in AFP
> -
>
> Key: FOP-3184
> URL: https://issues.apache.org/jira/browse/FOP-3184
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: 691675404.svg, fop.xconf, test.fo
>
>
> fop test.fo -c fop.xconf -afp out.afp
> Open in AFP Lookup
> IPS is used in the page to refer to the SVG, in the resource group



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3184) Allow change of resource level for SVG in AFP

2024-06-06 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3184:
---
Description: 
fop test.fo -c fop.xconf -afp out.afp



> Allow change of resource level for SVG in AFP
> -
>
> Key: FOP-3184
> URL: https://issues.apache.org/jira/browse/FOP-3184
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: 691675404.svg, fop.xconf, test.fo
>
>
> fop test.fo -c fop.xconf -afp out.afp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3184) Allow change of resource level for SVG in AFP

2024-06-06 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3184:
---
Attachment: 691675404.svg

> Allow change of resource level for SVG in AFP
> -
>
> Key: FOP-3184
> URL: https://issues.apache.org/jira/browse/FOP-3184
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: 691675404.svg, fop.xconf, test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3184) Allow change of resource level for SVG in AFP

2024-06-06 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3184:
---
Attachment: fop.xconf

> Allow change of resource level for SVG in AFP
> -
>
> Key: FOP-3184
> URL: https://issues.apache.org/jira/browse/FOP-3184
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: 691675404.svg, fop.xconf, test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3184) Allow change of resource level for SVG in AFP

2024-06-06 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3184:
---
Attachment: test.fo

> Allow change of resource level for SVG in AFP
> -
>
> Key: FOP-3184
> URL: https://issues.apache.org/jira/browse/FOP-3184
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: 691675404.svg, fop.xconf, test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3184) Allow change of resource level for SVG in AFP

2024-06-06 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3184:
--

 Summary: Allow change of resource level for SVG in AFP
 Key: FOP-3184
 URL: https://issues.apache.org/jira/browse/FOP-3184
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3183) Disable pattern modification using xobjforms

2024-06-05 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3183.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop-pdf-images/commit/a74500f89f323fdb69381b75d9941682c6f94cd6

> Disable pattern modification using xobjforms
> 
>
> Key: FOP-3183
> URL: https://issues.apache.org/jira/browse/FOP-3183
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.xconf, shading.pdf, test.fo
>
>
> fop test.fo -c fop.xconf out.pdf
> Pattern should display in pdf



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3183) Disable pattern modification using xobjforms

2024-06-05 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3183:
---
Description: 
fop test.fo -c fop.xconf out.pdf

Pattern should display in pdf

> Disable pattern modification using xobjforms
> 
>
> Key: FOP-3183
> URL: https://issues.apache.org/jira/browse/FOP-3183
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, shading.pdf, test.fo
>
>
> fop test.fo -c fop.xconf out.pdf
> Pattern should display in pdf



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3183) Disable pattern modification using xobjforms

2024-06-05 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3183:
---
Attachment: fop.xconf
shading.pdf
test.fo

> Disable pattern modification using xobjforms
> 
>
> Key: FOP-3183
> URL: https://issues.apache.org/jira/browse/FOP-3183
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, shading.pdf, test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3183) Disable pattern modification using xobjforms

2024-06-05 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3183:
--

 Summary: Disable pattern modification using xobjforms
 Key: FOP-3183
 URL: https://issues.apache.org/jira/browse/FOP-3183
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: fop.xconf, shading.pdf, test.fo





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3182) Add alt text to PDF signature

2024-06-04 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3182.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/d8645e1dc5a9c379f00b1786f397d5dcb8b57265

> Add alt text to PDF signature
> -
>
> Key: FOP-3182
> URL: https://issues.apache.org/jira/browse/FOP-3182
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.xconf, test.fo
>
>
> fop test.fo -c fop.xconf out.pdf
> Open pdf with https://pdfua.foundation/en/pac-download/ no warnings should be 
> shown



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3182) Add alt text to PDF signature

2024-06-04 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3182:
---
Description: 
fop test.fo -c fop.xconf out.pdf

Open pdf with https://pdfua.foundation/en/pac-download/ no warnings should be 
shown

> Add alt text to PDF signature
> -
>
> Key: FOP-3182
> URL: https://issues.apache.org/jira/browse/FOP-3182
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, test.fo
>
>
> fop test.fo -c fop.xconf out.pdf
> Open pdf with https://pdfua.foundation/en/pac-download/ no warnings should be 
> shown



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3182) Add alt text to PDF signature

2024-06-04 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3182:
---
Attachment: fop.xconf
test.fo

> Add alt text to PDF signature
> -
>
> Key: FOP-3182
> URL: https://issues.apache.org/jira/browse/FOP-3182
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, test.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3182) Add alt text to PDF signature

2024-06-04 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3182:
--

 Summary: Add alt text to PDF signature
 Key: FOP-3182
 URL: https://issues.apache.org/jira/browse/FOP-3182
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3135) [PATCH] SVG tspan content is displayed out of place

2024-05-22 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3135:


https://github.com/apache/xmlgraphics-batik/commit/7bd42913d559211622690cd9179c10b08feb4a5e

> [PATCH] SVG tspan content is displayed out of place
> ---
>
> Key: FOP-3135
> URL: https://issues.apache.org/jira/browse/FOP-3135
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg
>Reporter: Julien Lacour
>Assignee: Simon Steiner
>Priority: Minor
> Attachments: MI-Calibri-test.pdf, MI-out-patch.pdf, MI-out.pdf, 
> MI-test.fo, MI-tspan.svg, MI.patch, WIP-out.pdf, WIP.patch, fop.patch, 
> svgBatik.patch, svgCommon.patch, tspan.svg
>
>
> We have found an issue in FOP when transforming PDFs with SVGs containing 
>  with multiple @x and/or @y attributes values.
> The problem is located in 
> org.apache.fop.svg.PDFTextPainter.writeGlyphs(FOPGVTGlyphVector, 
> GeneralPath), the positions given by x and y are never used when set.
> A possible fix for this issue is the following:
> {code:java}
> for (int i = 0, n = gv.getNumGlyphs(); i < n; i++) {
> int gc  = gv.getGlyphCode(i);
> int[]   pa  = ((i > dp.length) || (dp[i] == null)) ? 
> paZero : dp[i];
> if (gv.getGlyphPosition(i) != null) {
> Point2D gp  = gv.getGlyphPosition(i);
> double x= gp.getX() - initialPos.getX();
> double y= -(gp.getY() - initialPos.getY());
> double xd   = x - xoLast;
> double yd   = y - yoLast;
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc = x + pa[2];
> yc = y + pa[3];
> xoLast = x;
> yoLast = y;
> } else {
> double  xo  = xc + pa[0];
> double  yo  = yc + pa[1];
> double  xa  = f.getWidth(gc);
> double  ya  = 0;
> double  xd  = (xo - xoLast) / 1000f;
> double  yd  = (yo - yoLast) / 1000f;
>
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc += xa + pa[2];
> yc += ya + pa[3];
> xoLast = xo;
> yoLast = yo;
> }
> }
> {code}
> I also attached an example for testing, it can be opened in Batik for 
> comparison.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3135) [PATCH] SVG tspan content is displayed out of place

2024-05-22 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3135:
---
Summary: [PATCH] SVG tspan content is displayed out of place  (was: [PATCH] 
SVG  content is displayed out of place)

> [PATCH] SVG tspan content is displayed out of place
> ---
>
> Key: FOP-3135
> URL: https://issues.apache.org/jira/browse/FOP-3135
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg
>Reporter: Julien Lacour
>Assignee: Simon Steiner
>Priority: Minor
> Attachments: MI-Calibri-test.pdf, MI-out-patch.pdf, MI-out.pdf, 
> MI-test.fo, MI-tspan.svg, MI.patch, WIP-out.pdf, WIP.patch, fop.patch, 
> svgBatik.patch, svgCommon.patch, tspan.svg
>
>
> We have found an issue in FOP when transforming PDFs with SVGs containing 
>  with multiple @x and/or @y attributes values.
> The problem is located in 
> org.apache.fop.svg.PDFTextPainter.writeGlyphs(FOPGVTGlyphVector, 
> GeneralPath), the positions given by x and y are never used when set.
> A possible fix for this issue is the following:
> {code:java}
> for (int i = 0, n = gv.getNumGlyphs(); i < n; i++) {
> int gc  = gv.getGlyphCode(i);
> int[]   pa  = ((i > dp.length) || (dp[i] == null)) ? 
> paZero : dp[i];
> if (gv.getGlyphPosition(i) != null) {
> Point2D gp  = gv.getGlyphPosition(i);
> double x= gp.getX() - initialPos.getX();
> double y= -(gp.getY() - initialPos.getY());
> double xd   = x - xoLast;
> double yd   = y - yoLast;
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc = x + pa[2];
> yc = y + pa[3];
> xoLast = x;
> yoLast = y;
> } else {
> double  xo  = xc + pa[0];
> double  yo  = yc + pa[1];
> double  xa  = f.getWidth(gc);
> double  ya  = 0;
> double  xd  = (xo - xoLast) / 1000f;
> double  yd  = (yo - yoLast) / 1000f;
>
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc += xa + pa[2];
> yc += ya + pa[3];
> xoLast = xo;
> yoLast = yo;
> }
> }
> {code}
> I also attached an example for testing, it can be opened in Batik for 
> comparison.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3178) [PATCH] On-Demand Table Layout issue when there are pages of different widths

2024-04-23 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3178.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/c7660fe84c7eabdb41c3aa88970f45401df72991

> [PATCH] On-Demand Table Layout issue when there are pages of different widths
> -
>
> Key: FOP-3178
> URL: https://issues.apache.org/jira/browse/FOP-3178
> Project: FOP
>  Issue Type: Bug
>Reporter: João André Gonçalves
>Assignee: Simon Steiner
>Priority: Minor
> Fix For: main
>
> Attachments: fop.patch
>
>
> The tables don’t always seem to be rendered correctly when there's an IPD 
> change between pages



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (FOP-3178) [PATCH] On-Demand Table Layout issue when there are pages of different widths

2024-04-23 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3178:
--

Assignee: Simon Steiner

> [PATCH] On-Demand Table Layout issue when there are pages of different widths
> -
>
> Key: FOP-3178
> URL: https://issues.apache.org/jira/browse/FOP-3178
> Project: FOP
>  Issue Type: Bug
>Reporter: João André Gonçalves
>Assignee: Simon Steiner
>Priority: Minor
> Attachments: fop.patch
>
>
> The tables don’t always seem to be rendered correctly when there's an IPD 
> change between pages



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3177) FO wrapper should not add space to a document

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3177.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/7b29d1d1354f07a5e2914c0f2711d50f7c2ff967

> FO wrapper should not add space to a document
> -
>
> Key: FOP-3177
> URL: https://issues.apache.org/jira/browse/FOP-3177
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: simple.fo
>
>
> fop simple.fo out.pdf
> black box should be touching the top of yellow area



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3177) FO wrapper should not add space to a document

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3177:
---
Attachment: simple.fo

> FO wrapper should not add space to a document
> -
>
> Key: FOP-3177
> URL: https://issues.apache.org/jira/browse/FOP-3177
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo
>
>
> black box should be touching the top of yellow area



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3177) FO wrapper should not add space to a document

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3177:
---
Description: 
fop simple.fo out.pdf

black box should be touching the top of yellow area

  was:black box should be touching the top of yellow area


> FO wrapper should not add space to a document
> -
>
> Key: FOP-3177
> URL: https://issues.apache.org/jira/browse/FOP-3177
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo
>
>
> fop simple.fo out.pdf
> black box should be touching the top of yellow area



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3177) FO wrapper should not add space to a document

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3177:
---
Description: black box should be touching the top of yellow area

> FO wrapper should not add space to a document
> -
>
> Key: FOP-3177
> URL: https://issues.apache.org/jira/browse/FOP-3177
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: simple.fo
>
>
> black box should be touching the top of yellow area



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3177) FO wrapper should not add space to a document

2024-04-15 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3177:
--

 Summary: FO wrapper should not add space to a document
 Key: FOP-3177
 URL: https://issues.apache.org/jira/browse/FOP-3177
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3176) Remove unused PDFStructElem

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3176:
---
Description: 
fop simple.fo -c fop.xconf out.pdf

Open PDF in acrobat, no error is displayed after running accessibility check

  was:
fop test.fo -c fop.xconf out.pdf

Open PDF in acrobat, no error is displayed after running accessibility check


> Remove unused PDFStructElem
> ---
>
> Key: FOP-3176
> URL: https://issues.apache.org/jira/browse/FOP-3176
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.xconf, simple.fo
>
>
> fop simple.fo -c fop.xconf out.pdf
> Open PDF in acrobat, no error is displayed after running accessibility check



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3176) Remove unused PDFStructElem

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3176:
---
Description: 
fop test.fo -c fop.xconf out.pdf

Open PDF in acrobat, no error is displayed after running accessibility check

  was:
test.fo -c fop.xconf out.pdf

Open PDF in acrobat, no error is displayed after running accessibility check


> Remove unused PDFStructElem
> ---
>
> Key: FOP-3176
> URL: https://issues.apache.org/jira/browse/FOP-3176
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.xconf, simple.fo
>
>
> fop test.fo -c fop.xconf out.pdf
> Open PDF in acrobat, no error is displayed after running accessibility check



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3176) Remove unused PDFStructElem

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3176.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/1484cf87fea058f6908d57491dfde439cb9bec4b

> Remove unused PDFStructElem
> ---
>
> Key: FOP-3176
> URL: https://issues.apache.org/jira/browse/FOP-3176
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.xconf, simple.fo
>
>
> test.fo -c fop.xconf out.pdf
> Open PDF in acrobat, no error is displayed after running accessibility check



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3176) Remove unused PDFStructElem

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3176:
---
Attachment: fop.xconf

> Remove unused PDFStructElem
> ---
>
> Key: FOP-3176
> URL: https://issues.apache.org/jira/browse/FOP-3176
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, simple.fo
>
>
> test.fo -c fop.xconf out.pdf
> Open PDF in acrobat, no error is displayed after running accessibility check



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3176) Remove unused PDFStructElem

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3176:
---
Attachment: simple.fo

> Remove unused PDFStructElem
> ---
>
> Key: FOP-3176
> URL: https://issues.apache.org/jira/browse/FOP-3176
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, simple.fo
>
>
> test.fo -c fop.xconf out.pdf
> Open PDF in acrobat, no error is displayed after running accessibility check



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3176) Remove unused PDFStructElem

2024-04-15 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3176:
---
Description: 
test.fo -c fop.xconf out.pdf

Open PDF in acrobat, no error is displayed after running accessibility check

> Remove unused PDFStructElem
> ---
>
> Key: FOP-3176
> URL: https://issues.apache.org/jira/browse/FOP-3176
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
>
> test.fo -c fop.xconf out.pdf
> Open PDF in acrobat, no error is displayed after running accessibility check



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3176) Remove unused PDFStructElem

2024-04-15 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3176:
--

 Summary: Remove unused PDFStructElem
 Key: FOP-3176
 URL: https://issues.apache.org/jira/browse/FOP-3176
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-2983) [PATCH] Font auto-detection doesn't work

2024-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-2983:


assembly.xml changes are here
https://github.com/apache/xmlgraphics-fop/commit/cb26fed42b675c576d8f4b69827a32a25e36c5bb

> [PATCH] Font auto-detection doesn't work
> 
>
> Key: FOP-2983
> URL: https://issues.apache.org/jira/browse/FOP-2983
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.5, 2.6
> Environment: Apache Maven 3.6.0
> Java version: 1.8.0_181, vendor: Oracle Corporation
> Default locale: ru_RU, platform encoding: Cp1251
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>Reporter: Sergey Gorbunov
>Priority: Critical
> Attachments: fonts-auto-detect.patch, image-2024-2-13_11-55-53.png, 
> image-2024-2-13_11-57-21.png, image-2024-2-13_13-2-57.png, 
> image-2024-2-13_13-4-5.png
>
>
> When constructing a tree with a configuration, the node for auto-detection is 
> added to the wrong parent node. As a result, the flag remains with a false.
> Detected when trying to convert SVG to PDF with Cyrillic characters. Since 
> the correct font was not detected automatically, incorrect characters were 
> displayed after conversion.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-2983) [PATCH] Font auto-detection doesn't work

2024-04-12 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-2983:


Can you add a unit test

> [PATCH] Font auto-detection doesn't work
> 
>
> Key: FOP-2983
> URL: https://issues.apache.org/jira/browse/FOP-2983
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.5, 2.6
> Environment: Apache Maven 3.6.0
> Java version: 1.8.0_181, vendor: Oracle Corporation
> Default locale: ru_RU, platform encoding: Cp1251
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>Reporter: Sergey Gorbunov
>Priority: Critical
> Attachments: fonts-auto-detect.patch, image-2024-2-13_11-55-53.png, 
> image-2024-2-13_11-57-21.png, image-2024-2-13_13-2-57.png, 
> image-2024-2-13_13-4-5.png
>
>
> When constructing a tree with a configuration, the node for auto-detection is 
> added to the wrong parent node. As a result, the flag remains with a false.
> Detected when trying to convert SVG to PDF with Cyrillic characters. Since 
> the correct font was not detected automatically, incorrect characters were 
> displayed after conversion.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (FOP-3172) image-loading configuration settings are not thread-safe

2024-04-03 Thread Simon Steiner (Jira)


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

Simon Steiner reassigned FOP-3172:
--

Assignee: Simon Steiner

> image-loading configuration settings are not thread-safe
> 
>
> Key: FOP-3172
> URL: https://issues.apache.org/jira/browse/FOP-3172
> Project: FOP
>  Issue Type: Bug
>  Components: image/unqualified
>Affects Versions: 2.9
>Reporter: Martin Leitner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop_3172.zip
>
>
> As a workaround for FOP-3171 I added an  section to the config 
> and noticed that the settings will take effect on all subsequent renderings 
> in the same VM, even when they use a different config or none at all. When 
> running two or more rendering processes with different configs in parallel, 
> the result will basically be random.
> At the very least, this behaviour should be documented and warned about.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3174) Allow sections which need security permissions to be run when AllPermission denied in caller code

2024-04-02 Thread Simon Steiner (Jira)


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

Simon Steiner resolved FOP-3174.

Fix Version/s: main
   Resolution: Fixed

https://github.com/apache/xmlgraphics-fop/commit/64846a5c4ccdf0d900058fef60c2232926dbd6ad

> Allow sections which need security permissions to be run when AllPermission 
> denied in caller code
> -
>
> Key: FOP-3174
> URL: https://issues.apache.org/jira/browse/FOP-3174
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
>
> See FOP-3038



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3174) Allow sections which need security permissions to be run when AllPermission denied in caller code

2024-04-02 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3174:
--

 Summary: Allow sections which need security permissions to be run 
when AllPermission denied in caller code
 Key: FOP-3174
 URL: https://issues.apache.org/jira/browse/FOP-3174
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3174) Allow sections which need security permissions to be run when AllPermission denied in caller code

2024-04-02 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3174:
---
Description: See FOP-3038

> Allow sections which need security permissions to be run when AllPermission 
> denied in caller code
> -
>
> Key: FOP-3174
> URL: https://issues.apache.org/jira/browse/FOP-3174
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
>
> See FOP-3038



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3172) image-loading configuration settings are not thread-safe

2024-03-28 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3172:


what if you create a fopfactory and pass in your fop.xconf as the 2nd param:
FopFactory newInstance(URI baseURI, InputStream confStream)

> image-loading configuration settings are not thread-safe
> 
>
> Key: FOP-3172
> URL: https://issues.apache.org/jira/browse/FOP-3172
> Project: FOP
>  Issue Type: Bug
>  Components: image/unqualified
>Affects Versions: 2.9
>Reporter: Martin Leitner
>Priority: Major
>
> As a workaround for FOP-3171 I added an  section to the config 
> and noticed that the settings will take effect on all subsequent renderings 
> in the same VM, even when they use a different config or none at all. When 
> running two or more rendering processes with different configs in parallel, 
> the result will basically be random.
> At the very least, this behaviour should be documented and warned about.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3172) image-loading configuration settings are not thread-safe

2024-03-28 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3172:


Are you running a different fopfactory per thread, which is required

> image-loading configuration settings are not thread-safe
> 
>
> Key: FOP-3172
> URL: https://issues.apache.org/jira/browse/FOP-3172
> Project: FOP
>  Issue Type: Bug
>  Components: image/unqualified
>Affects Versions: 2.9
>Reporter: Martin Leitner
>Priority: Major
>
> As a workaround for FOP-3171 I added an  section to the config 
> and noticed that the settings will take effect on all subsequent renderings 
> in the same VM, even when they use a different config or none at all. When 
> running two or more rendering processes with different configs in parallel, 
> the result will basically be random.
> At the very least, this behaviour should be documented and warned about.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (FOP-3171) Certain PNG images (grayscale, transparent) produce broken PDF

2024-03-22 Thread Simon Steiner (Jira)


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

Simon Steiner edited comment on FOP-3171 at 3/22/24 12:11 PM:
--

What about adding into the fop.xconf:


   

 


was (Author: ssteiner1):
What about adding into the fop.xconf:


   


  
 

> Certain PNG images (grayscale, transparent) produce broken PDF
> --
>
> Key: FOP-3171
> URL: https://issues.apache.org/jira/browse/FOP-3171
> Project: FOP
>  Issue Type: Bug
>  Components: image/png
>Affects Versions: 2.8
>Reporter: Martin Leitner
>Priority: Major
> Attachments: document.fo, fop_2.6_ok.pdf, fop_2.7_ok.pdf, 
> fop_2.8_nok.pdf, fop_2.9_nok.pdf, number.png
>
>
> Rendering the attached document, which references the also attached image, 
> produces a broken PDF in version 2.8 and 2.9. Depending on the PDF viewer, 
> the image is distorted, or is shown with a large black bar at the bottom, or 
> is shown three times, or is not shown at all. In some viewers, the content 
> following the image is not shown.
> Up until version 2.7 the resulting PDF was fine. Generated PDFs are attached.
> The image in question was auto-generated by a customer. If this cannot be 
> fixed easily, it may help to know what property of the image causes the 
> problem for finding a workaround.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FOP-3171) Certain PNG images (grayscale, transparent) produce broken PDF

2024-03-22 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-3171:


What about adding into the fop.xconf:


   


  
 

> Certain PNG images (grayscale, transparent) produce broken PDF
> --
>
> Key: FOP-3171
> URL: https://issues.apache.org/jira/browse/FOP-3171
> Project: FOP
>  Issue Type: Bug
>  Components: image/png
>Affects Versions: 2.8
>Reporter: Martin Leitner
>Priority: Major
> Attachments: document.fo, fop_2.6_ok.pdf, fop_2.7_ok.pdf, 
> fop_2.8_nok.pdf, fop_2.9_nok.pdf, number.png
>
>
> Rendering the attached document, which references the also attached image, 
> produces a broken PDF in version 2.8 and 2.9. Depending on the PDF viewer, 
> the image is distorted, or is shown with a large black bar at the bottom, or 
> is shown three times, or is not shown at all. In some viewers, the content 
> following the image is not shown.
> Up until version 2.7 the resulting PDF was fine. Generated PDFs are attached.
> The image in question was auto-generated by a customer. If this cannot be 
> fixed easily, it may help to know what property of the image causes the 
> problem for finding a workaround.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3135) [PATCH] SVG content is displayed on a single line without spaces

2024-03-13 Thread Simon Steiner (Jira)


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

Simon Steiner updated FOP-3135:
---
Summary: [PATCH] SVG  content is displayed on a single line without 
spaces  (was: SVG  content is displayed on a single line without spaces)

> [PATCH] SVG  content is displayed on a single line without spaces
> 
>
> Key: FOP-3135
> URL: https://issues.apache.org/jira/browse/FOP-3135
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg
>Reporter: Julien Lacour
>Assignee: Simon Steiner
>Priority: Minor
> Attachments: MI-Calibri-test.pdf, MI-out-patch.pdf, MI-out.pdf, 
> MI-test.fo, MI-tspan.svg, MI.patch, WIP-out.pdf, WIP.patch, svg.patch, 
> svgBatik.patch, svgCommons.patch, svgFop.patch, tspan.svg
>
>
> We have found an issue in FOP when transforming PDFs with SVGs containing 
>  with multiple @x and/or @y attributes values.
> The problem is located in 
> org.apache.fop.svg.PDFTextPainter.writeGlyphs(FOPGVTGlyphVector, 
> GeneralPath), the positions given by x and y are never used when set.
> A possible fix for this issue is the following:
> {code:java}
> for (int i = 0, n = gv.getNumGlyphs(); i < n; i++) {
> int gc  = gv.getGlyphCode(i);
> int[]   pa  = ((i > dp.length) || (dp[i] == null)) ? 
> paZero : dp[i];
> if (gv.getGlyphPosition(i) != null) {
> Point2D gp  = gv.getGlyphPosition(i);
> double x= gp.getX() - initialPos.getX();
> double y= -(gp.getY() - initialPos.getY());
> double xd   = x - xoLast;
> double yd   = y - yoLast;
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc = x + pa[2];
> yc = y + pa[3];
> xoLast = x;
> yoLast = y;
> } else {
> double  xo  = xc + pa[0];
> double  yo  = yc + pa[1];
> double  xa  = f.getWidth(gc);
> double  ya  = 0;
> double  xd  = (xo - xoLast) / 1000f;
> double  yd  = (yo - yoLast) / 1000f;
>
> textUtil.writeTd(xd, yd);
> textUtil.writeTj((char) gc, true, false);
> xc += xa + pa[2];
> yc += ya + pa[3];
> xoLast = xo;
> yoLast = yo;
> }
> }
> {code}
> I also attached an example for testing, it can be opened in Batik for 
> comparison.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


  1   2   3   4   5   6   7   8   9   10   >