Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6)

2017-06-14 Thread Esteban R
Hello. I have noticed with PDFDebugger that the same pdf is rendered differently by pdfbox-2.0.4 and by pdfbox-2.0.5 (pdfbox-2.0.6 produces the same output than pdfbox-2.0.5): the newer versions generate a more pixelated image. Please find attached a sample pdf and two screenshots of PDFDebug

Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6)

2017-06-15 Thread Esteban R
ck the "Download" button) De: Tilman Hausherr Enviado: jueves, 15 de junio de 2017 03:35 p.m. Para: users@pdfbox.apache.org Asunto: Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6) Am 15.06.2017 um 02:37 schrieb Esteban R: &g

Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6)

2017-06-15 Thread Esteban R
df Esteban ____ De: Esteban R Enviado: jueves, 15 de junio de 2017 04:09 p.m. Para: users@pdfbox.apache.org Asunto: Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6) These links should work for at least a week: Screenshots: https:

Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6)

2017-06-15 Thread Esteban R
n Hausherr Enviado: jueves, 15 de junio de 2017 04:33 p.m. Para: users@pdfbox.apache.org Asunto: Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6) Am 15.06.2017 um 18:20 schrieb Esteban R: > Warning: don't use the following link to download de pdf: > &l

Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6)

2017-06-15 Thread Esteban R
uld be at 100% (how can I check?). Esteban De: Tilman Hausherr Enviado: jueves, 15 de junio de 2017 06:29 p.m. Para: users@pdfbox.apache.org Asunto: Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6) Am 15.06.2017 um 20:19 sc

Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6)

2017-06-15 Thread Esteban R
"PDFDebugger" in your first post, but you meant PDFToImage. It does happen as described. The images are created with 120 dpi here, probably 96 dpi on your system. I have no idea why, but I'll investigate it and come back to you. Tilman Am 15.06.2017 um 20:45 schrieb Esteban R: >

Re: Change in image quality between versions 2.0.4 and 2.0.5 (also applies to 2.0.6)

2017-06-15 Thread Esteban R
FToImage. It does happen as described. The images are > created with 120 dpi here, probably 96 dpi on your system. > > I have no idea why, but I'll investigate it and come back to you. > > Tilman > > Am 15.06.2017 um 20:45 schrieb Esteban R: >> This is what I do (windows 10

Box issue with type3 font

2017-06-29 Thread Esteban R
Hello. I'm using DrawPrintTextLocations.java (from http://svn.apache.org/repos/asf/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java) to find the boxes for a character in the following pdf (a simplified version of a real life pdf): http://wikisend.c

Re: Box issue with type3 font

2017-06-30 Thread Esteban R
ment with the content stream, render it with PDFImageWriter.writeImage and then find the bounding box in the resulting image? Esteban ________ De: Esteban R Enviado: jueves, 29 de junio de 2017 02:20 p.m. Para: users@pdfbox.apache.org Asunto: Box issue with type3 fo

Re: Box issue with type3 font

2017-07-03 Thread Esteban R
wrong. Tilman Am 30.06.2017 um 15:43 schrieb Esteban R: > Tilman: thanks for your answer! > (https://lists.apache.org/thread.html/a6f20d16b76acbfe4c292bc2d0e7111de9173c7cd63aae330df3886a@%3Cusers.pdfbox.apache.org%3E) > . > > For some reason your answer didn't arrive to my e-m

Invalid XMP generated by CreatePDFA?

2017-07-21 Thread Esteban R
Hello. I get an exception while parsing XMPMetadata (details below) created by CreatePDFA (https://pdfbox.apache.org/1.8/cookbook/pdfacreation.html) I have noticed that adding "xml:" before "lang" in the following line of the "" solves the issue: out.pdf (Fixed line:out.pdf ) I

Re: Invalid XMP generated by CreatePDFA?

2017-07-24 Thread Esteban R
22:46 schrieb Esteban R: > Hello. I get an exception while parsing XMPMetadata (details below) created > by CreatePDFA (https://pdfbox.apache.org/1.8/cookbook/pdfacreation.html) Apache PDFBox | Create a Valid PDF/A Document<https://pdfbox.apache.org/1.8/cookbook/pdfacrea

XMP issue when using fop and shaded jar

2017-07-27 Thread Esteban R
I'm working in a project which uses both pdfbox and apache fop (https://xmlgraphics.apache.org/fop/) CreatePDFA (from pdfbox examples) generates different (wrong?) XMP metadata when fop is included in the shaded jar. Otherwise (i.e.: if a simple jar is generated or if fop is not included, then

Re: Invalid XMP generated by CreatePDFA?

2017-07-27 Thread Esteban R
This issue was a bit more complex, so I have created another thread: https://lists.apache.org/thread.html/5d9a93679aef587c721eb23120989b816c32e40390c4cc2517674e14@%3Cusers.pdfbox.apache.org%3E Esteban De: Esteban R Enviado: martes, 25 de julio de 2017 03:27

Re: XMP issue when using fop and shaded jar

2017-07-27 Thread Esteban R
Thanks Andreas. It doesn't seem to solve the issue but it may help. I'm a newbie in the maven world, so, sorry if I misundestood something. I have been trying to exclude the pdfbox dependency in fop (with the tag) : org.apache.pdfbox fontbox

Re: XMP issue when using fop and shaded jar

2017-08-04 Thread Esteban R
Thanks Tilman! I have used the modified XMPSerializer according to your advice and that solved the issue. Esteban Ruiz

Font subset issue

2017-09-04 Thread Esteban R
Hello. I have created PDF/A-2b document with pdfbox and I have found that the font subsetting provided by pdfbox doesn't match the following requirement from the specification: Specification: ISO 19005-2:2011, Clause: 6.2.11.4, Test number: 4 If the FontDescriptor dictionary of an embedded CID

stream lengh issue?

2017-09-21 Thread Esteban R
Hello. I am creating some pdf files with pdfbox 2.0.7 and I have some issues which seems to be related to the length of the content streams: the length doesn't seem to match the real length. I think that this is a basic example to show the issue: Create a .txt file containing just the letter

Re: stream lengh issue?

2017-09-25 Thread Esteban R
Esteban R: Hello. I am creating some pdf files with pdfbox 2.0.7 and I have some issues which seems to be related to the length of the content streams: the length doesn't seem to match the real length. I think that this is a basic example to show the issue: Create a .txt file containing jus

Stream parsing issue in multi-stream page

2018-02-05 Thread Esteban R
Hello. I need to rewrite a PDPage with many streams, one by one (making some transformations, and there is a special need to do it one stream at a time). Parsing (and pdfdebug) returns "wrong" tokens if one command begins at the end of the first stream and ends at the begining of the next one. I

RE: Stream parsing issue in multi-stream page

2018-02-05 Thread Esteban R
, but still useful. Any other ideas are wellcome. Esteban De: Maruan Sahyoun Enviado: lunes, 05 de febrero de 2018 03:25 p.m. Para: users@pdfbox.apache.org Asunto: Re: Stream parsing issue in multi-stream page Hi, > Am 05.02.2018 um 15:43 schrieb Esteba

RE: Stream parsing issue in multi-stream page

2018-02-05 Thread Esteban R
is not a hard requirement. Esteban De: Maruan Sahyoun Enviado: lunes, 05 de febrero de 2018 04:19 p.m. Para: Esteban R Asunto: Re: Stream parsing issue in multi-stream page Hi, > Am 05.02.2018 um 17:14 schrieb Esteban R : > > Thanks for your answer. But

DrawPrintTextLocations doesn't match character box

2018-02-08 Thread Esteban R
Hello. The boxes drawn with DrawPrintTextLocations for the following PDF file (simplification of a real-life doc) are not what I expected (they contain a lot of white space): http://www.filedropper.com/minimunsample See the output here: http://www.filedropper.com/minimunsample-marked-1 Please no

RE: DrawPrintTextLocations doesn't match character box

2018-02-09 Thread Esteban R
;s a PDF stream. All we have there is the first PDF operator from the charproc, here: "0.602 0 -0.35 -0.968 0.734 1.075 d1". If that one is incorrect... too bad. Tilman Am 08.02.2018 um 22:45 schrieb Esteban R: > Hello. The boxes drawn with DrawPrintTextLocations for the following PDF

Out Of Memory while converting a small pdf to image (pattern_issue_oom)

2018-07-03 Thread Esteban R
Hello. I get an OutOfMemoryError when running the following command: java -Xmx2g -jar pdfbox-app-2.0.11.jar PDFToImage -dpi 300 pattern_issue_oom.pdf (Windows 10, java version "1.8.0_112") The file is available here: http://www.filedropper.com/patternissueoom It is a simplification of a real l

RE: Out Of Memory while converting a small pdf to image (pattern_issue_oom)

2018-07-03 Thread Esteban R
x27;t create images but only calculates the size. Tilman Am 03.07.2018 um 21:46 schrieb Esteban R: > Hello. > > I get an OutOfMemoryError when running the following command: > > java -Xmx2g -jar pdfbox-app-2.0.11.jar PDFToImage -dpi 300 > pattern_issue_oom.pdf > > (Window

performance issue in v 2.0.17: PDImageXObject.getImage() + MemoryUsageSetting.setupTempFileOnly

2019-09-26 Thread Esteban R
Hello. I'm getting a timeout in one of my tests after upgrading to v 2.0.17: PDImageXObject.getImage() takes more than 1:10 minutes instead of less than 2 seconds with previous release 2.0.16. I cannot provide the sample PDF because it contains sensitive information. I have tried to simplify it

RE: performance issue in v 2.0.17: PDImageXObject.getImage() + MemoryUsageSetting.setupTempFileOnly

2019-10-18 Thread Esteban R
round implemented for this issue: https://issues.apache.org/jira/browse/PDFBOX-4601 Tilman Am 26.09.2019 um 21:39 schrieb Esteban R: > Hello. I'm getting a timeout in one of my tests after upgrading to v > 2.0.17: PDImageXObject.getImage() takes more than 1:10 minutes instead > of less

RE: performance issue in v 2.0.17: PDImageXObject.getImage() + MemoryUsageSetting.setupTempFileOnly

2019-10-21 Thread Esteban R
ecause you can't share your file. If you have a lot of time, try with different versions from the repostory, i.e. a "bisect" strategy. It takes hours, and is a work for patient people. Tilman Am 18.10.2019 um 18:45 schrieb Esteban R: > Yes, it is. I have reverted ScratchFile.java an

RE: performance issue in v 2.0.17: PDImageXObject.getImage() + MemoryUsageSetting.setupTempFileOnly

2019-10-21 Thread Esteban R
Small adition: I have rebooted my machine and run some tests again in GNU/Linux (Ubuntu): performance is good for 2.0.17 and 2.0.18! I have not even moved the files. Esteban De: Esteban R Enviado: lunes, 21 de octubre de 2019 16:09 Para: users@pdfbox.apache.org

RE: performance issue in v 2.0.17: PDImageXObject.getImage() + MemoryUsageSetting.setupTempFileOnly

2019-10-21 Thread Esteban R
>> Small adition: I have rebooted my machine and run some tests again in >> GNU/Linux (Ubuntu): performance is good for 2.0.17 and 2.0.18! I have not >> even moved the files. >So the whole problem went away thanks to the reboot? No, it didn't. I meant that the issue happens in Windows but it doe

TextPosition.equal() fails after getDir()

2019-11-27 Thread Esteban R
This is a simplification of a real life problem: when I compare two TextPositions, equality changes after calling getDir() in one of the TextPositions. Code to reproduce: Matrix m1 = new Matrix(1, 1, 1, 1, 1, 1); Matrix m2 = new Matrix(1, 1, 1, 1, 1, 1); TextPosition t1

NullPointerException in PDSimpleFont.isStandard14()

2019-11-29 Thread Esteban R
I get a NullPointerException while trying to find out if a particular font is "Standard14": Exception in thread "main" java.lang.NullPointerException at org.apache.pdfbox.pdmodel.font.PDSimpleFont.isStandard14(PDSimpleFont.java:377) at com.itesoft.pdfapi.cmdline.TestIsStandard14

RE: NullPointerException in PDSimpleFont.isStandard14()

2019-12-02 Thread Esteban R
/PDFBOX-4682 Until then, check that the font is not type 3 before calling isStandard14(). Tilman Am 29.11.2019 um 20:31 schrieb Esteban R: > I get a NullPointerException while trying to find out if a particular font is > "Standard14": > > Exception in thread "main"

Java heap space while rendering file with big patterns

2020-04-06 Thread Esteban R
I get an OutOfMemoryException while rendering a file with big patterns at 300 DPI: https://gofile.io/?c=wBhyXo (that's a demo file, made from a real life example) java -jar pdfbox-app-2.0.19.jar PDFToImage -dpi 300 bigpatterns.pdf Exception in thread "main" java.lang.OutOfMemoryError: Java h

RE: Java heap space while rendering file with big patterns

2020-04-06 Thread Esteban R
Ok. Thanks for you quick answer! Esteban De: Tilman Hausherr Enviado: lunes, 6 de abril de 2020 18:39 Para: users@pdfbox.apache.org Asunto: Re: Java heap space while rendering file with big patterns Am 06.04.2020 um 17:37 schrieb Esteban R: > I get

performance issue with more memory and ResourceCache?

2020-08-21 Thread Esteban R
I'm doing some processing with fonts and I have noticed that the ResourceCache seems really slow if the jvm works with more memory: processing with 500 Mb of max heap size is faster (1 min 30s) than using 1500 Mb (2 min). Adding the following parameter to the jvm: -XX:SoftRefLRUPolicyMSPerMB=1

getStringWidth fails with null pointer exception for (damaged?) PDType1CFont

2020-12-15 Thread Esteban R
I get the following exception when I call getStringWidth: Exception in thread "main" java.lang.NullPointerException at org.apache.pdfbox.pdmodel.font.PDType1CFont.getStringWidth(PDType1CFo nt.java:348) at TestGetStringWidth.main(TestGetStringWidth.java:18) Sample file: https://gof

RE: getStringWidth fails with null pointer exception for (damaged?) PDType1CFont

2020-12-16 Thread Esteban R
://issues.apache.org/jira/browse/PDFBOX-5048 thanks for the report and the reproducing code Tilman Am 16.12.2020 um 04:20 schrieb Esteban R: > I get the following exception when I call getStringWidth: > > Exception in thread "main" java.lang.NullPointerExce

Colorspace issue?

2021-01-08 Thread Esteban R
The following file (very simplified version of a real life file) renders with a black rectangle in PDFDebugger. A white page is rendered by other viewers (i.e.: white is used instead of black to draw the rectangle?) https://gofile.io/d/nqyP98 Is there something wrong in the pdf or it is an issu

Dash pattern in annotations

2021-04-16 Thread Esteban R
Hello. The following pdf: https://gofile.io/d/UWZHtw (simplification of a real life example) contains different annotations. Some of their rectangles are not displayed in Adobe Reader (expected behaviour) but pdfbox debugger (tried with 3.0.0-RC1 and 2.0.23) shows all of them. It seems to me tha

RE: Dash pattern in annotations

2021-04-20 Thread Esteban R
Esteban R: > Hello. The following pdf: https://gofile.io/d/UWZHtw (simplification of a > real life example) contains different annotations. Some of their rectangles > are not displayed in Adobe Reader (expected behaviour) but pdfbox debugger > (tried with 3.0.0-RC1 and 2.0.23) shows all

Slow rendering

2023-06-28 Thread Esteban R
Hello. The following pdf: https://gofile.io/d/mlmpoW (simplification of a real life example) takes too long to render (PDFToImage or PDFDebugger) with pdfbox 2.0.28 (more than 30 secs) and less then 5 secs with other tools. I get the same results for pdfbox-app-3.0.0-alpha3. Esteban Ruiz

RE: Slow rendering

2023-06-29 Thread Esteban R
] > > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > On 28.06.2023 19:24, Esteban R wrote: >> Hello. The following pdf:https://gofile.io/d/mlmpo

RE: Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Esteban R
ot;W n" come together) My understanding of the "n" description is that it should consume the path. Tilman On 7/4/2025 3:08 PM, Esteban R wrote: > Hello. For the following pdf (which is a simplification of a real life > example) the shading is e

Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Esteban R
Hello. For the following pdf (which is a simplification of a real life example) the shading is expanded vertically all the page. Other viewers show a rectangle. https://drive.google.com/file/d/1bocFsJbOFAlRijKnBUfSBdQ_GVX3oSUQ/view?usp=drive_link Is it an issue from pdfbox or maybe it is a probl

RE: Rendering issue with type 2 shading: vertical expansion

2025-07-09 Thread Esteban R
Thank you! FYI: I tried to create my user for Jira last Friday to report the bug, but I have not received any news about that yet (and I tried to create a new user but the service says that there is a pending request for my e-mail). De: Tilman Hausherr Enviado: