Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rototor/pdfbox-graphics2d
Browse files Browse the repository at this point in the history
  • Loading branch information
rototor committed Jun 25, 2023
2 parents a9c4c84 + 19b4aae commit ca92ea1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This library is available through Maven:
<dependency>
<groupId>de.rototor.pdfbox</groupId>
<artifactId>graphics2d</artifactId>
<version>0.42</version>
<version>0.43</version>
</dependency>
```

Expand Down Expand Up @@ -324,6 +324,12 @@ graphs

## Changes

Version 0.43:

- Upgraded PDFBox to 2.0.28
- [#50](https://github.com/rototor/pdfbox-graphics2d/issues/50): Use the Java logger API instead of System.err.
Thanks @pmds-martins for the PR.

Version 0.42:

- Upgraded PDFBox to 2.0.27
Expand Down
4 changes: 2 additions & 2 deletions extended-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<parent>
<groupId>de.rototor.pdfbox</groupId>
<artifactId>pdfboxgraphics2d-parent</artifactId>
<version>0.43-SNAPSHOT</version>
<version>0.44-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>de.rototor.pdfbox</groupId>
<artifactId>graphics2d</artifactId>
<version>0.43-SNAPSHOT</version>
<version>0.44-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion graphics2d/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>de.rototor.pdfbox</groupId>
<artifactId>pdfboxgraphics2d-parent</artifactId>
<version>0.43-SNAPSHOT</version>
<version>0.44-SNAPSHOT</version>
</parent>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
import java.text.AttributedCharacterIterator;
import java.text.CharacterIterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.*;

/**
Expand All @@ -47,6 +49,9 @@
*/
public class PdfBoxGraphics2DFontTextDrawer implements IPdfBoxGraphics2DFontTextDrawer, Closeable
{

private static final Logger LOGGER = Logger.getLogger(PdfBoxGraphics2DFontTextDrawer.class.getName());

/**
* Close / delete all resources associated with this drawer. This mainly means
* deleting all temporary files. You can not use this object after a call to
Expand Down Expand Up @@ -412,8 +417,8 @@ else if (needMatrixResetToIdentity)
}

if (iae != null)
System.err.println("PDFBoxGraphics: Can not map text " + text + " with font "
+ attributeFont.getFontName() + ": " + iae.getMessage());
LOGGER.log(Level.SEVERE, "PDFBoxGraphics: Can not map text " + text +
" with font " + attributeFont.getFontName() + ": " + iae.getMessage(), iae);
}
}
contentStream.endText();
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>Graphics2D Bridge for Apache PDFBox</description>
<groupId>de.rototor.pdfbox</groupId>
<artifactId>pdfboxgraphics2d-parent</artifactId>
<version>0.43-SNAPSHOT</version>
<version>0.44-SNAPSHOT</version>
<packaging>pom</packaging>
<url>https://github.com/rototor/pdfbox-graphics2d</url>

Expand Down Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down

0 comments on commit ca92ea1

Please sign in to comment.