Am 17.08.2022 um 21:44 schrieb Daniel Skiles:
Based on you seeing the test code working, I created a whole new gradle
project, totally separated from my own and retried the code. It worked as
expected. Something about my larger application seems to be breaking the
render.
Can you think of anything that might pollute the classpath and *prevent *text
rendering? I understand that's a pretty open ended question, but I'd
appreciate any ideas you might have.
Not really, but some weird problems come from old versions, or versions
that don't match. You mentioned that there is no log output, but I do
get log output (which is harmless)
Warning [PDSimpleFont] No Unicode mapping for 38 (52) in font
AAAAAE+Calibri
Warning [PDSimpleFont] No Unicode mapping for 27 (69) in font
AAAAAC+Calibri-Bold
Warning [PDSimpleFont] No Unicode mapping for 40 (76) in font
AAAAAE+Calibri
Warning [PDSimpleFont] No Unicode mapping for 21 (47) in font
AAAAAG+Calibri
So maybe your application has logging disabled, and enabling it might
bring extra info.
Is the "new gradle project" on another computer? If yes, then consider
cleaning up the repository on the old computer, or update java if you
haven't done already.
Tilman
On Wed, Aug 17, 2022 at 2:58 PM Tilman Hausherr <thaush...@t-online.de>
wrote:
Am 17.08.2022 um 20:24 schrieb Daniel Skiles:
https://drive.google.com/drive/folders/1JujjHzdQEGm8Z544dB5IoVauXf9UdJam?usp=sharing
I've rehosted the files on Google Drive. They should be globally
readable.
Is that acceptable, or do you need them somewhere else?
it's fine
I'm seeing the same behavior in 2.026, snapshot, and 3.0 alpha. What's
odd
to me is that pdfbox-app renders the PDF correctly, but the code below
does
not render the text.
var doc = Loader.loadPDF(new java.io.File("MacPDFEmailThread.pdf"));
var renderer = new PDFRenderer(doc);
ImageIO.write(renderer.renderImageWithDPI(0, 200), "PNG", new
java.io.File("MacPDFEmailThread-1.png"));
Does pdfbox-app bundle another library that I might be missing, or
something to that effect? I have jbig2-imageio and fontbox on my
classpath.
Your file doesn't use jbig2, so pdfbox and fontbox should be all you need.
Yeah it works with pdfbox-app. I also tried your code, it works too.
Tilman
On Wed, Aug 17, 2022 at 1:16 PM Tilman Hausherr <thaush...@t-online.de>
wrote:
Please try with 2.0.26 and with a snapshot
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.0-SNAPSHOT/
The PNG isn't attached, you need to upload this and the PDF on a file
hoster.
Tilman
Am 17.08.2022 um 18:32 schrieb Daniel Skiles:
When I use PDFBox (3.0.0-RC1) to convert the attached PDF into an
image, it's missing most of the text (see attached PNG).
I receive no errors in the log or console. Upgrading to the latest
alpha does not help.
The producer is macOS Version 12.3.1 (Build 21E258 Quartz PDFContext
Creator (Outlook). The font is a mix of Calibri and Calibri-bold.
Producing this kind of PDF seems to fail consistently.
The text is both visible and selectable in both Chrome and Sumatra PDF.
Should I submit this to the PDFBox bug tracker, or are there any other
tests that I should run first?
Thank you,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org