B4J Question PDFBoxWrapper: why blurred PDF-content ?

peacemaker

Expert
Licensed User
Longtime User
Hi, All
Trying to use this code with latest lib v2.x version:
B4X:
#AdditionalJar: pdfbox-app-2.0.32.jar

Strange, but the content is blurred. If i try to make the fonts in PDF bigger - it's the same not good to read text - blurred.
The PDFs themselves in other PC viewers look OK, but in B4J app - blurred.

Who tried ? How is at your side ?
Maybe any settings to see more clear ?
 

BlueVision

Active Member
Licensed User
Longtime User
I also use the class.
Somehow I got it to work (long time ago), but I don't remember how...
Can you use the zoom function? Does the picture get sharper when you zoom in?
In the end, I think it was a problem caused by rendering the document. If you have designed the PDF to be displayed yourself, change the DPI. 72dpi or 96 dpi is usually absolutely sufficient on the screen. As far as I remember, high DPI numbers lead to blurring due to the subsequent rendering.

I attached my class, try it. Think I made some modifications.
 

Attachments

  • PDFBoxWrapper.bas
    14.9 KB · Views: 14
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
Hi, All
Trying to use this code with latest lib v2.x version:
B4X:
#AdditionalJar: pdfbox-app-2.0.32.jar

Strange, but the content is blurred. If i try to make the fonts in PDF bigger - it's the same not good to read text - blurred.
The PDFs themselves in other PC viewers look OK, but in B4J app - blurred.

Who tried ? How is at your side ?
Maybe any settings to see more clear ?
My side it looks ok

looksok.png
 
Upvote 0
Top