Re: Apache PDFBox Board Report January 2024 due

2024-01-07 Thread sahy...@fileaffairs.de
+1 

Maruan

Am Montag, dem 08.01.2024 um 08:14 +0100 schrieb Andreas Lehmkühler:
> Hi,
> 
> find attached a quick draft of the board report we're expected to
> submit 
> this month. It's based upon the report wizard template which can be 
> found at [1]
> 
> Any comments or additions are appreciated ...
> 
> 
> ## Description:
> The mission of PDFBox is the creation and maintenance of software 
> related to
> Java library for working with PDF documents
> 
> ## Project Status:
> Current project status: ongoing with moderate activity
> Issues for the board: none
> 
> ## Membership Data:
> Apache PDFBox was founded 2009-10-21 (14 years ago)
> There are currently 21 committers and 21 PMC members in this project.
> The Committer-to-PMC ratio is 1:1.
> 
> Community changes, past quarter:
> - No new PMC members. Last addition was Matthäus Mayer on 2017-10-16.
> - No new committers. Last addition was Joerg O. Henne on 2017-10-09.
> 
> ## Project Activity:
> Recent releases:
> 
>  3.0.1 was released on 2023-11-30.
>  2.0.30 was released on 2023-11-04.
>  3.0.0 was released on 2023-08-17.
> 
> ## Community Health:
> - there is a steady stream of contributions, bug reports and
> questions 
> on the mailing lists
> - we released the first minor release of our new 3.0.x line to fix
> some 
> regression issues. A couple of improvements and further fixes were 
> included as well.
> - the development of the current trunk version 4.0.0 is an ongoing 
> effort, e.g. we switched to Log4j2 and did some major refactorings
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: dev-h...@pdfbox.apache.org
> 


-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Re: Apache PDFBox Board Report January 2024 due

2024-01-07 Thread Tilman Hausherr

+1

Tilman

On 08.01.2024 08:14, Andreas Lehmkühler wrote:

Hi,

find attached a quick draft of the board report we're expected to 
submit this month. It's based upon the report wizard template which 
can be found at [1]


Any comments or additions are appreciated ...


## Description:
The mission of PDFBox is the creation and maintenance of software 
related to

Java library for working with PDF documents

## Project Status:
Current project status: ongoing with moderate activity
Issues for the board: none

## Membership Data:
Apache PDFBox was founded 2009-10-21 (14 years ago)
There are currently 21 committers and 21 PMC members in this project.
The Committer-to-PMC ratio is 1:1.

Community changes, past quarter:
- No new PMC members. Last addition was Matthäus Mayer on 2017-10-16.
- No new committers. Last addition was Joerg O. Henne on 2017-10-09.

## Project Activity:
Recent releases:

    3.0.1 was released on 2023-11-30.
    2.0.30 was released on 2023-11-04.
    3.0.0 was released on 2023-08-17.

## Community Health:
- there is a steady stream of contributions, bug reports and questions 
on the mailing lists
- we released the first minor release of our new 3.0.x line to fix 
some regression issues. A couple of improvements and further fixes 
were included as well.
- the development of the current trunk version 4.0.0 is an ongoing 
effort, e.g. we switched to Log4j2 and did some major refactorings



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Apache PDFBox Board Report January 2024 due

2024-01-07 Thread Andreas Lehmkühler

Hi,

find attached a quick draft of the board report we're expected to submit 
this month. It's based upon the report wizard template which can be 
found at [1]


Any comments or additions are appreciated ...


## Description:
The mission of PDFBox is the creation and maintenance of software 
related to

Java library for working with PDF documents

## Project Status:
Current project status: ongoing with moderate activity
Issues for the board: none

## Membership Data:
Apache PDFBox was founded 2009-10-21 (14 years ago)
There are currently 21 committers and 21 PMC members in this project.
The Committer-to-PMC ratio is 1:1.

Community changes, past quarter:
- No new PMC members. Last addition was Matthäus Mayer on 2017-10-16.
- No new committers. Last addition was Joerg O. Henne on 2017-10-09.

## Project Activity:
Recent releases:

3.0.1 was released on 2023-11-30.
2.0.30 was released on 2023-11-04.
3.0.0 was released on 2023-08-17.

## Community Health:
- there is a steady stream of contributions, bug reports and questions 
on the mailing lists
- we released the first minor release of our new 3.0.x line to fix some 
regression issues. A couple of improvements and further fixes were 
included as well.
- the development of the current trunk version 4.0.0 is an ongoing 
effort, e.g. we switched to Log4j2 and did some major refactorings



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5749) NegativeArraySizeException during print when scaling causes w and h to be 0

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17804110#comment-17804110
 ] 

ASF subversion and git services commented on PDFBOX-5749:
-

Commit 1915126 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1915126 ]

PDFBOX-5749: also catch IllegalArgumentException that occurs with jdk20

> NegativeArraySizeException during print when scaling causes w and h to be 0
> ---
>
> Key: PDFBOX-5749
> URL: https://issues.apache.org/jira/browse/PDFBOX-5749
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.30, 3.0.1 PDFBox
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> See attached PR by [~vmerkel] and my comments. The cause of the bug is in the 
> JDK itself. I'm in favor of just catching the exception until the jdk people 
> fix this bug.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5749) NegativeArraySizeException during print when scaling causes w and h to be 0

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17804109#comment-17804109
 ] 

ASF subversion and git services commented on PDFBOX-5749:
-

Commit 1915125 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1915125 ]

PDFBOX-5749: also catch IllegalArgumentException that occurs with jdk20

> NegativeArraySizeException during print when scaling causes w and h to be 0
> ---
>
> Key: PDFBOX-5749
> URL: https://issues.apache.org/jira/browse/PDFBOX-5749
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.30, 3.0.1 PDFBox
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> See attached PR by [~vmerkel] and my comments. The cause of the bug is in the 
> JDK itself. I'm in favor of just catching the exception until the jdk people 
> fix this bug.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5749) NegativeArraySizeException during print when scaling causes w and h to be 0

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17804111#comment-17804111
 ] 

ASF subversion and git services commented on PDFBOX-5749:
-

Commit 1915127 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1915127 ]

PDFBOX-5749: also catch IllegalArgumentException that occurs with jdk20

> NegativeArraySizeException during print when scaling causes w and h to be 0
> ---
>
> Key: PDFBOX-5749
> URL: https://issues.apache.org/jira/browse/PDFBOX-5749
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.30, 3.0.1 PDFBox
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> See attached PR by [~vmerkel] and my comments. The cause of the bug is in the 
> JDK itself. I'm in favor of just catching the exception until the jdk people 
> fix this bug.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Resolved] (PDFBOX-5749) NegativeArraySizeException during print when scaling causes w and h to be 0

2024-01-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr resolved PDFBOX-5749.
-
  Assignee: Tilman Hausherr
Resolution: Fixed

> NegativeArraySizeException during print when scaling causes w and h to be 0
> ---
>
> Key: PDFBOX-5749
> URL: https://issues.apache.org/jira/browse/PDFBOX-5749
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.30, 3.0.1 PDFBox
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> See attached PR by [~vmerkel] and my comments. The cause of the bug is in the 
> JDK itself. I'm in favor of just catching the exception until the jdk people 
> fix this bug.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5749) NegativeArraySizeException during print when scaling causes w and h to be 0

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17804106#comment-17804106
 ] 

ASF subversion and git services commented on PDFBOX-5749:
-

Commit 1915122 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1915122 ]

PDFBOX-5749: catch WPathGraphics bug reported by Viktor Merkel; closes #175

> NegativeArraySizeException during print when scaling causes w and h to be 0
> ---
>
> Key: PDFBOX-5749
> URL: https://issues.apache.org/jira/browse/PDFBOX-5749
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.30, 3.0.1 PDFBox
>Reporter: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> See attached PR by [~vmerkel] and my comments. The cause of the bug is in the 
> JDK itself. I'm in favor of just catching the exception until the jdk people 
> fix this bug.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5749) NegativeArraySizeException during print when scaling causes w and h to be 0

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17804107#comment-17804107
 ] 

ASF subversion and git services commented on PDFBOX-5749:
-

Commit 1915123 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1915123 ]

PDFBOX-5749: catch WPathGraphics bug reported by Viktor Merkel; closes #175

> NegativeArraySizeException during print when scaling causes w and h to be 0
> ---
>
> Key: PDFBOX-5749
> URL: https://issues.apache.org/jira/browse/PDFBOX-5749
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.30, 3.0.1 PDFBox
>Reporter: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> See attached PR by [~vmerkel] and my comments. The cause of the bug is in the 
> JDK itself. I'm in favor of just catching the exception until the jdk people 
> fix this bug.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5749) NegativeArraySizeException during print when scaling causes w and h to be 0

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17804105#comment-17804105
 ] 

ASF subversion and git services commented on PDFBOX-5749:
-

Commit 1915121 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1915121 ]

PDFBOX-5749: catch WPathGraphics bug reported by Viktor Merkel; closes #175

> NegativeArraySizeException during print when scaling causes w and h to be 0
> ---
>
> Key: PDFBOX-5749
> URL: https://issues.apache.org/jira/browse/PDFBOX-5749
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.30, 3.0.1 PDFBox
>Reporter: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> See attached PR by [~vmerkel] and my comments. The cause of the bug is in the 
> JDK itself. I'm in favor of just catching the exception until the jdk people 
> fix this bug.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Re: [PR] Possible fix for Oracle's Bug JDK-8314112 [pdfbox]

2024-01-07 Thread via GitHub


asfgit closed pull request #175: Possible fix for Oracle's Bug JDK-8314112
URL: https://github.com/apache/pdfbox/pull/175


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Jira


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803962#comment-17803962
 ] 

Andreas Lehmkühler edited comment on PDFBOX-5721 at 1/7/24 2:04 PM:


w.r.t. to text extraction the internal cmap mapping from the font is used due 
to the "missing" toUnicode mapping


was (Author: lehmi):
The internal cmap mapping from the font is used due to the "missing" toUnicode 
mapping

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.30
>Reporter: liu
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Closed] (PDFBOX-5445) Add command line options to accept file containing list of files to merge

2024-01-07 Thread Jira


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

Andreas Lehmkühler closed PDFBOX-5445.
--
Resolution: Not A Problem

I guess [~lmodesto.work] proposal to use the picocli feature for a huge number 
of command line arguments satisfies the main requirement to support a list 
files to be merged.
PDFBOX-5670 adds repeatable subcommands which might be handy as well.

I can't see an easy solution for the second requirement to suppress page 
breaks. It would require to re-render the whole pdf including the effort to 
find a new position for the page break.  

> Add command line options to accept file containing list of files to merge
> -
>
> Key: PDFBOX-5445
> URL: https://issues.apache.org/jira/browse/PDFBOX-5445
> Project: PDFBox
>  Issue Type: New Feature
>Affects Versions: 3.0.0 PDFBox
> Environment: windows 11, 10
>Reporter: Zbigniew Minciel
>Priority: Major
>
> Users of free MBox Mail Viewer require to export hundreds of emails into PDF 
> and merge them into a single PDF document. Due to command line length  
> limitations, smaller subsets of PDF mails have to be merged first and merge 
> again multiple times. Merging must preserve order of emails. Option to accept 
> a file containing a list of PDF files to merge would be very helpful.
> Another very useful option would be suppress "Page Break" at the end of PDF 
> document to allow multiple small emails to fit on a page. Frequently, emails 
> within the same thread are small.



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Jira


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803962#comment-17803962
 ] 

Andreas Lehmkühler commented on PDFBOX-5721:


The internal cmap mapping from the font is used due to the "missing" toUnicode 
mapping

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.30
>Reporter: liu
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Resolved] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr resolved PDFBOX-5721.
-
  Assignee: Tilman Hausherr
Resolution: Fixed

Surprisingly, even text extraction works properly, despite the bad syntax.

[~lehmi]  thanks for the ping and the feedback.

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.30
>Reporter: liu
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Jira


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803955#comment-17803955
 ] 

Andreas Lehmkühler commented on PDFBOX-5721:


[~tilman] thanks for the fix, looks good to me. I don't see any fix for the 
other issue but fortunately it isn't related to the described rendering issue, 
so that I'd set this to resolved.

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803946#comment-17803946
 ] 

Tilman Hausherr edited comment on PDFBOX-5721 at 1/7/24 1:02 PM:
-

The font is broken, here's the left pane of DTL OTMaster, the hmtx and post 
tables exist but have no content. The right pane exists but it seems to be a 
subset, but isn't named like a subset.

Surprisingly, the rendering problem vanishes if I catch the EOF in the post 
table. (the EOF is at the beginning, so I'd say it's graceful)

I can't remember why I didn't write anything when this issue was created; this 
time I looked at the second exception because in the last few weeks several EOF 
bugs turned out to be programming errors.

!image-2024-01-07-13-19-32-380.png!


was (Author: tilman):
The font is broken, here's the left pane of DTL OTMaster, the hmtx and post 
tables exist but have no content. The right pane exists but it seems to be a 
subset, but isn't named like a subset.

Surprisingly, the rendering problem vanishes if I catch the EOF in the post 
table. (the EOF is at the beginning, so I'd say it's graceful)

!image-2024-01-07-13-19-32-380.png!

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Jira


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

Andreas Lehmkühler updated PDFBOX-5721:
---
Component/s: FontBox

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Jira


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

Andreas Lehmkühler updated PDFBOX-5721:
---
Fix Version/s: 2.0.31
   3.0.2 PDFBox
   4.0.0

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803949#comment-17803949
 ] 

ASF subversion and git services commented on PDFBOX-5721:
-

Commit 1915114 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1915114 ]

PDFBOX-5721: ignore EOF if it is before just data

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803947#comment-17803947
 ] 

ASF subversion and git services commented on PDFBOX-5721:
-

Commit 1915112 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1915112 ]

PDFBOX-5721: ignore EOF if it is before just data

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803948#comment-17803948
 ] 

ASF subversion and git services commented on PDFBOX-5721:
-

Commit 1915113 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1915113 ]

PDFBOX-5721: ignore EOF if it is before just data

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803946#comment-17803946
 ] 

Tilman Hausherr commented on PDFBOX-5721:
-

The font is broken, here's the left pane of DTL OTMaster, the hmtx and post 
tables exist but have no content. The right pane exists but it seems to be a 
subset, but isn't named like a subset.

Surprisingly, the rendering problem vanishes if I catch the EOF in the post 
table. (the EOF is at the beginning, so I'd say it's graceful)

!image-2024-01-07-13-19-32-380.png!

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Jira


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803945#comment-17803945
 ] 

Andreas Lehmkühler commented on PDFBOX-5721:


The first exception occurs due to a malformed codespacerange within the font 
"DroidSansFallbackFull" using the name "KSPF1". The end value of the codespace 
range consist of 5 bytes which is wrong
{code}
1 begincodespacerange
<> 
{code}

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-5721:

Attachment: image-2024-01-07-13-19-32-380.png

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image-2024-01-07-13-19-32-380.png, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-5721:

Attachment: droid-bad.ttf

> The embedded font DroidSansFallbackFull reports an error when parsing, and 
> finally uses lastResortFont, resulting in garbled fonts.
> ---
>
> Key: PDFBOX-5721
> URL: https://issues.apache.org/jira/browse/PDFBOX-5721
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.30
>Reporter: liu
>Priority: Major
> Attachments: CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf, 
> droid-bad.ttf, image0.jpg
>
>
> demo:
> public static void main(String[] args) throws IOException, 
> InterruptedException {
>   File file = new File("C:\\Users\\LYCIT\\Downloads\\CMISG Mutual 
> NDA_Enepath_09Nov23_signed6.pdf");
>   final PDDocument load = PDDocument.load(file, 
> MemoryUsageSetting.setupTempFileOnly()
>   .setTempDir(new File("D:\\fcs\\test")));
>   PDFRenderer renderer = new PDFRenderer(load);
>   renderer.setSubsamplingAllowed(true);
>   int pageIndex = 0;
>   float scale = 2f;
>   BufferedImage bufferedImage = renderer.renderImage(pageIndex, 
> scale, ImageType.RGB);
>   FileOutputStream fos = null;
>   try {
>   fos = new FileOutputStream(new 
> File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg"));
>   ImageIO.write(bufferedImage, "jpg", fos);
>   } finally {
>   if (fos != null) {
>   fos.close();
>   }
>   }
>   Thread.sleep(600);
>   }
> pdf:CMISG Mutual NDA_Enepath_09Nov23_signed6.pdf
> garbled fonts:image0.jpg



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

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5721) The embedded font DroidSansFallbackFull reports an error when parsing, and finally uses lastResortFont, resulting in garbled fonts.

2024-01-07 Thread Jira


[ 
https://issues.apache.org/jira/browse/PDFBOX-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17803937#comment-17803937
 ] 

Andreas Lehmkühler commented on PDFBOX-5721:


There are two exceptions while opening the mentioned pdf using PDFDebugger 
{code}
 Error  [PDFont] Could not read ToUnicode CMap in font DroidSansFallbackFull
java.io.IOException: java.lang.IllegalArgumentException: The start and the 
end values must not have different lengths.
at 
org.apache.fontbox.cmap.CMapParser.parseBegincodespacerange(CMapParser.java:268)
at org.apache.fontbox.cmap.CMapParser.parse(CMapParser.java:110)
at 
org.apache.pdfbox.pdmodel.font.CMapManager.parseCMap(CMapManager.java:72)
at org.apache.pdfbox.pdmodel.font.PDFont.readCMap(PDFont.java:220)
at 
org.apache.pdfbox.pdmodel.font.PDFont.loadUnicodeCmap(PDFont.java:144)
at org.apache.pdfbox.pdmodel.font.PDFont.(PDFont.java:113)
at 
org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:73)
at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:96)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
at 
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:72)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:892)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:530)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:505)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:152)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:285)
at 
org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:330)
at 
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:532)
at 
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:1)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.lang.IllegalArgumentException: The start and the end values 
must not have different lengths.
at org.apache.fontbox.cmap.CodespaceRange.(CodespaceRange.java:50)
at 
org.apache.fontbox.cmap.CMapParser.parseBegincodespacerange(CMapParser.java:264)
... 23 more
{code}

and 

{code}
Warning  [PDCIDFontType2] Could not read embedded OTF for font 
DroidSansFallbackFull
java.io.EOFException
at 
org.apache.fontbox.ttf.TTFDataStream.readUnsignedShort(TTFDataStream.java:154)
at org.apache.fontbox.ttf.PostScriptTable.read(PostScriptTable.java:79)
at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:365)
at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:165)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:144)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:66)
at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:123)
at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:72)
at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:138)
at 
org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:97)
at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:96)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
at 
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:72)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:892)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:530)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:505)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:152)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:285)
at 
org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:330)
at 
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:532)
at 
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:1)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at 

Re: Roadmap to 4.0

2024-01-07 Thread Tilman Hausherr

Hi,

We just released 3.0 after many years. Despite the long time, 3.0.0 and 
3.0.1 contained nasty bugs that involve loss of data. So these should be 
fixed first and then see if there are still bug reports coming after 
3.0.2. Most such bugs have been fixed, but not all.


My personal opinion re java 17 is that I prefer it like it is, i.e. stay 
with 11. The lower we are, the more users we keep. I don't like that 
idea to force users on higher versions, like Spring did.


Tilman

On 06.01.2024 17:52, Axel Howind wrote:

Happy New Year everybody!

After accidentally sending this to the POI list, I hope I get it right this 
time...

I want to ask about the roadmap to PDFBox 4.0, specifically:

- Java version: currently PDFBox 4.0 is on Java 11. In the meantime, we have 
two newer LTS versions (17 and 21). Many important projects have decided to 
bump minimum requirements to Java 17 in the meantime like Spring and Spring 
BOOT, JOOQ, and others. What are your thoughts? Personally, I think staying on 
Java 11 is alright, I just wanted to ask.
- How far along have we come towards 4.0? Maybe a first alpha could be released 
to get more people trying out the new version - and yes, I’d probably just jump 
to a 4.0 alpha release with my own personal project ;-)
- If there’s anything blocking a release, let me know where I can contribute (I 
will probably have less time now than during the last months because I have a 
new budget from my main customer for my day job so will be more busy than in 
december).

Cheers,
Axel

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org