AW: PDFBox graphics2d bugfix request

2023-05-04 Thread Tilman Hausherr
Hi, This is an independent product on top of pdfbox. You need to create an issue in github so that its developer (Emmeran Seehuber) can see it. I don't know if he hangs around here. Tilman --- Original-Nachricht --- Von: Martins Pedro Betreff: PDFBox graphics2d bugfix request Datum: 04. Mai

Re: Version 3.0 question

2023-05-03 Thread Tilman Hausherr
If you're a beginner then start with 2.0.28. Tilman On 02.05.2023 22:05, MIKE VIRNIG (CRGL-THIRDPARTY.COM) wrote: Is version 3.0 still under active development?I am trying to determine if I should use it for a project or if I should stick with version 2.0. The version 3.0 release

Re: Request for Assistance

2023-04-29 Thread Tilman Hausherr
Hi, Yes, this doesn't work properly. There is an ongoing effort about this for 3.0 but it is incomplete, it supports only Bengali. See the GsubWorkerForBengali and the GsubWorkerFactory classes, maybe you can use this as inspiration to write something for Devanagari.

Re: how to remove watermark

2023-04-06 Thread Tilman Hausherr
On 06.04.2023 09:28, zhanglij...@myhexin.com wrote: Hello to the team, can you give me an example which how to remove WATERMARK in the pdf ? No, because 1) this depends on the file, there are many different ways to do it, this isn't like you can expect to have Confidential 2) we

Re: PDFBox: Add metadata to signed document

2023-03-30 Thread Tilman Hausherr
You could try to use the saveIncremental call that takes a dictionary list as parameter, and to add the metadata dictionary there. But I don't know if Adobe will complain. Tilman On 30.03.2023 16:34, Alberto Malvido wrote: Hi, Is there any way to add metadata to a signed document without

Re: PDF to Word Conversion

2023-03-20 Thread Tilman Hausherr
Hi, There is no PDFBox .net version. There is some unofficial stuff from old PDFBox versions. There is no "formatting" in PDF like in HTML. Glyphs are put at specified places, sometimes 1 character at a time. There are products that try to recreate paragraphs from this. Even PDFBox tries

Re: Failure to parse XMPMetadata containing valid Dublin Core Schema element

2023-03-19 Thread Tilman Hausherr
Hi, Something went wrong here, try posting this again in a different way. Tilman On 17.03.2023 09:43, Dusan Janis wrote: Hi,I am using XMPBox (and PdfBox) in version 2.0.24. I tried the version 2.0.27 as well. I am trying to parse XMPMetadata from a

Re: Spot Colours (Named Separations)

2023-03-17 Thread Tilman Hausherr
There are a few examples on stack overflow and also an example in the source code download: https://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateSeparationColorBox.java?view=markup Tilman On 18.03.2023 00:20,

Re: "Too Many Open Files" IOException in ScratchFile

2023-03-15 Thread Tilman Hausherr
Your text sounded like you're not picking stuff from all documents. Are you closing the documents where nothing is found at the earliest possble time? Tilman On 15.03.2023 17:21, Gilad Denneboom wrote: The question is, do you close the input files properly? Yes, I do, but only at the very

AW: Re: "Too Many Open Files" IOException in ScratchFile

2023-03-15 Thread Tilman Hausherr
Let's say your software runs without hitting the problem. Is there any pdfbox*.tmp files left in your temp directory? Then, it would mean you're not closing the input files like Andreas suspects. (Or that there is a bug in our software that doesn't occur in the build tests) Tilman ---

Re: "Too Many Open Files" IOException in ScratchFile

2023-03-15 Thread Tilman Hausherr
On 14.03.2023 16:05, Gilad Denneboom wrote: However, I'm getting an IOException ("Too many open files") from ScratchFile after several thousands files were processed. I had a look at the source code for that class and I think it might have to do with a RandomAccessFile variable ("raf") not being

Re: PrintPDF CLI with print options

2023-03-11 Thread Tilman Hausherr
No it's not supported. Duplex could be implemented easily (it is implemented in PDFDebugger), but tray is a lot IMHO. https://docs.oracle.com/javase/7/docs/api/javax/print/attribute/standard/MediaTray.html the best would be you take the source code and adjust PrintPDF yourself. Here's the

Re: debugger-app-2.0.23.jar NullPointerException

2023-03-08 Thread Tilman Hausherr
Please retry with the current version (2.0.27) on the "bad" machine. If it still happens, please post the stack trace, and if possible upload the file to a sharehoster and post the link. My guess is that it's related to a font that is only on the "bad" machine. Tilman On 08.03.2023 12:40,

Re: Changing the appearance of PDAnnotationWidgets

2023-03-06 Thread Tilman Hausherr
On 06.03.2023 14:36, Jacob MacWilliams wrote: Hi, As of now I'm trying to indicate to a user which fields they are required to fill out in an interactive pdf form. Initially I was simply adding a PDAnnotationHighlight element with the same coordinates as each widget belonging to the field

Re: How can I reduce the size of scanned PDF files?

2023-02-25 Thread Tilman Hausherr
On 25.02.2023 09:24, Mehmet Fatih ÇİN wrote: hello everyone, I need to reduce the size of a PDF file I scanned from a scanner. How can I do this with PDF Box? This depends on the file. Please share one. The best thing to do would be to scan these files properly. Tilman

Re: Overlay performance on huge (?) PDF files

2023-02-14 Thread Tilman Hausherr
On 08.02.2023 15:59, Matthias Pigulla wrote: However, there is one class of particularly awful input files, like the one athttps://www.g-ba.de/downloads/40-268-7473/2021-03-18_ASV-RL_Anpassung-Appendizes-an-EBM_TrG.pdf. That’s a more than 50 MB, 2000+ pages beast full of complex tables with

AW: In PDFBox package not able to import the PDFSigner Class

2023-02-14 Thread Tilman Hausherr
There is no such class im PDFBox. Tilman --- Original-Nachricht --- Von: Durgesh More Betreff: In PDFBox package not able to import the PDFSigner Class Datum: 14. Februar 2023, 13:29 An: users@pdfbox.apache.org Hi Team, We have added the PDFBox v2.0.27 maven dependency But we are not able

Re: Setting borders of PDAnnotationHighlight with setRectangle method?

2023-02-13 Thread Tilman Hausherr
So you're trying to put an annotation over a widget annotation? That sounds weird, I've never seen this before. Why not just change the field background instead? Tilman On 13.02.2023 14:54, Jacob MacWilliams wrote: Hi, I've been trying to highlight a specific field in my pdf but can only

Re: need help with pdf signatures

2023-02-13 Thread Tilman Hausherr
Use PDFont.getStringWidth() to get the size of a text. That number must usually be divided by 1000. Tilman On 08.02.2023 15:11, nbs skill wrote: Hello, I need to add a visible signature to a PDF using pdfbox. I used this:

Re: How to fix PDF not rendering all fields

2023-02-03 Thread Tilman Hausherr
On 03.02.2023 16:01, Jurgen Doll wrote: Hi So I think that this behavior has something to do with a field having a problematic appearance /AP entry. I thought maybe that if the field's /AP entry is bad that maybe its default appearance /DA would be used. So I tried setting the field's /DA

Re: Allow to inspect composite glyphs in FontBox

2023-01-25 Thread Tilman Hausherr
! As of JIRA accounts, both aliases are mine in general but in this particular JIRA instance I've registered "vplizga" only (thanks to Tilman) and have no idea where the second one came from. Sorry for confusion. Cheers, Vladimir вт, 24 янв. 2023 г. в 14:11, Tilman Hausherr : On 24.01.

Re: Allow to inspect composite glyphs in FontBox

2023-01-23 Thread Tilman Hausherr
On 24.01.2023 07:50, Andreas Lehmkuehler wrote: @Vladimir There are 2 JIRA accounts named Vladimir Plizga. Which one is yours, "vplizga" or "Toparvion"? vplizga is the one I created for him. Tilman - To unsubscribe, e-mail:

Re: PDFBox and Batik SVGGraphics2d

2023-01-20 Thread Tilman Hausherr
://asymptote.sourceforge.io/gallery/PDFs/index.html Tilman Rich At 09:41 AM 1/20/2023, Tilman Hausherr wrote: Hi, It doesn't work (not just because the "else" is missing), but because it isn't that simple. Please try the files from https://github.com/mozilla/pdf.js/issues/9770 https://github.c

Re: PDFBox and Batik SVGGraphics2d

2023-01-20 Thread Tilman Hausherr
y of it. How do I go about getting this mod into PageDrawer? Rich Stafford Chief Scientist eQuorum Corporation At 02:25 PM 1/19/2023, Tilman Hausherr wrote: That is an ordinary image, so SVGGraphics2D can translate this into " Tilman, Actually, SVGGraphics2D handles raster data well.

Re: PDFBox and Batik SVGGraphics2d

2023-01-19 Thread Tilman Hausherr
andle that. Rich At 12:38 PM 1/18/2023, Tilman Hausherr wrote: Hi, I can't see the images, they are probably attachments instead of being fully inline with "data:", so they are removed by the mailing list software. We can't expose TilingPaint, because that's our internal strate

Re: FontBox: GSUB handling issues

2023-01-18 Thread Tilman Hausherr
On 19.01.2023 02:13, Vladimir Plizga wrote: This information can often be found on the web at [project].apache.org under a "Contact" or "Communication" link, and is typically private@ [project].apache.org Could you please point me in the right direction? Yes it's priv...@pdfbox.apache.org

Re: PDFBox and Batik SVGGraphics2d

2023-01-18 Thread Tilman Hausherr
ts written to the output SVG. I"m using the default ImageHandlerBase64Encoder which is supposed to store the base64 encoded images directly in the SVG output/ What am I missing? Rich Stafford Chief Scientist eQuorum Corporation At 12:26 PM 1/6/2023, Tilman Haus

Re: Better device CMYK color profile

2023-01-17 Thread Tilman Hausherr
an still do it with the method I explained) Tilman On 12.01.2023 08:42, Tilman Hausherr wrote: On 12.01.2023 08:00, Andreas Lehmkuehler wrote: Am 11.01.23 um 02:20 schrieb Etienne Gautier: Hey, I noticed that the images were still not going through email (not sure Due to some limitation to

Re: FontBox: GSUB handling issues

2023-01-16 Thread Tilman Hausherr
Hi, Thanks for your comments. I have fixed (1) which is an obvious bug. Yes you can make a PR although this is only used indirectly. You can also comment in the JIRA issue https://issues.apache.org/jira/browse/PDFBOX-4189 if you don't have an account, see

Re: IllegalStateException: Expected 'Page' but found COSName{Font}

2023-01-15 Thread Tilman Hausherr
On 15.01.2023 16:04, Levi Wilson wrote: Is it accurate that all versions through 3.0.0-alpha2 *do *raise exceptions then? Just not alpha3? I don't know. You can test this yourself, you have the file. Tilman On Sun, Jan 15, 2023 at 2:06 AM Tilman Hausherr wrote: My question

Re: IllegalStateException: Expected 'Page' but found COSName{Font}

2023-01-15 Thread Tilman Hausherr
My question is: was this intentional to silently fail? We realize that with the wide amount of content that we receive that there are going to be "bad" PDFs which is fine, but currently we are relying on PDFBox to tell us *when* it is something that we shouldn't continue any further

Re: Weird PDF to image conversion result

2023-01-15 Thread Tilman Hausherr
On 13.01.2023 19:23, Daniel Skiles wrote: All, When I convert the linked PDF to image using 3.0.0-alpha3, I get the linked PNG output. Do any of you know where the horizontal lines are coming from? The lines don't render in Chrome or SumatraPDF.

Re: Better device CMYK color profile

2023-01-11 Thread Tilman Hausherr
ofile (under Creative Commons CC0). I think that the visual improvement is pretty clear, and it would be valuable for other PDFBox users who did not override the deviceCMYK profile (including those who cannot use USWebCoatedSWOP for license reasons). Cheers, Etienne On Wed, Jan 11, 2023 at 5:

Re: Better device CMYK color profile

2023-01-10 Thread Tilman Hausherr
On 10.01.2023 03:57, Etienne Gautier wrote: WDYT about changing the deviceCMYK color profile? Or making it configurable at runtime? Hi, your images didn't get through. You can use these profiles like this:     // https://www.adobe.com/support/downloads/iccprofiles/iccprofiles_win.html   

Re: PDFBox and Batik SVGGraphics2d

2023-01-09 Thread Tilman Hausherr
/2023, Tilman Hausherr wrote: Hi, This is in TilingPaint.java and PageDrawer.java . It's one of the tricky parts in the code. No we can't draw them as vectors. Tilman On 06.01.2023 17:57, Rich Stafford wrote: Which PDFBox module handles the patterns? Is there anyway to have PDFBox

Re: Allow to inspect composite glyphs in FontBox

2023-01-09 Thread Tilman Hausherr
On 08.01.2023 13:51, Andreas Lehmkuehler wrote: Am 08.01.23 um 13:28 schrieb Tilman Hausherr: Hi, The idea sounds ok to me, the only risk I see would be that somebody changes a GlyfCompositeComp element. How about reducing the visibility of both setters to protected and as long as we use

Re: Allow to inspect composite glyphs in FontBox

2023-01-08 Thread Tilman Hausherr
Hi, The idea sounds ok to me, the only risk I see would be that somebody changes a GlyfCompositeComp element. Tilman On 07.01.2023 14:15, Vladimir Plizga wrote: Hello, I'm starting to use the FontBox library (tried both GA version 2.0.27 and the latest pre-release 3.0.0-alpha3) to inspect

Re: PDF Box

2023-01-08 Thread Tilman Hausherr
Also this one with a text https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/AddWatermarkText.java?view=markup Tilman On 08.01.2023 12:33, Andreas Lehmkuehler wrote: Am 08.01.23 um 12:19 schrieb Aniket Chaudhari: Hi Team, Hope you are well !!! I

Re: PDFBox and Batik SVGGraphics2d

2023-01-06 Thread Tilman Hausherr
At 11:40 AM 1/6/2023, Tilman Hausherr wrote: Hi, I can confirm the effect with my own conversion code (which may or may not be the same). I looked at the SVG and there's one thing missing: PDFBox converts patterns to bitmaps and then uses TexturePaint. So there should be some binary content

Re: PDFBox and Batik SVGGraphics2d

2023-01-06 Thread Tilman Hausherr
Chief Scientist eQuorum Corporation *** At 01:28 PM 1/5/2023, Tilman Hausherr wrote: Hi, Please try with 2.0.27 and upload the PDF somewhere, it didn't get through. Tilman On 05.01.2023 16:28, Rich Stafford wrote: I am having an issue using PDFBox (pdfbox-app-2.0.21.jar) and SVGGraphics2d (batik-1l

Re: Prevent users from copying pdf content

2023-01-05 Thread Tilman Hausherr
Hello Daniela, So what you're saying is that Chrome and Opera aren't following the restrictions. To find out whether the properties are set correctly, see the security properties in Adobe Reader or Acrobat. The viewer software is meant to follow these properties or they aren't following the

Re: PDFBox and Batik SVGGraphics2d

2023-01-05 Thread Tilman Hausherr
Hi, Please try with 2.0.27 and upload the PDF somewhere, it didn't get through. Tilman On 05.01.2023 16:28, Rich Stafford wrote: I am having an issue using PDFBox (pdfbox-app-2.0.21.jar) and SVGGraphics2d (batik-1ll-1.16.jar) to generate SVG output from a small PDF file. This file has

Re: Optional Content Groups

2023-01-04 Thread Tilman Hausherr
On 04.01.2023 19:22, John Lussmyer wrote: I have a pdf with several Optional Content groups. I can find their definitions in the Page/Resources/Properties dictionary, but I don't see how they are enabled or disabled. Where is that controlled? This is below the document root, use PDFDebugger

Re: Doubts on using PDFbox to convert XML to PDF

2023-01-03 Thread Tilman Hausherr
Hi, PDFBox doesn't have an API to convert from XML to PDF. Re licensing of FOP (which has its own channels), read the apache license here: https://www.apache.org/licenses/LICENSE-2.0 Tilman On 03.01.2023 11:25, Akhil Shaji wrote: Hi, I am having a requirement to convert already existing

Re: Identifying crop marks & bleeds

2023-01-03 Thread Tilman Hausherr
Hi, The PDPage class gives this information with the getTrimBox() and getArtBox() methods. There is also getCropBox() and getBleedBox(). (But I don't know if this solves your problem, I only use the cropbox and the mediabox, but I'm not a printer) Tilman On 03.01.2023 23:03, Carmen Johnson

Re: OpenJpeg for JPEG2000 in PDFBox

2023-01-01 Thread Tilman Hausherr
Hi, My own opinion is that this looks like a pain, more than just including a library my changing the pom.xml. But that's just me. The licensing problem doesn't mean one can't use it, it just means we can't distribute it. If you come up with a solution then can test it with my rendering

Re: PDFBox + Signature + annotation + Signature

2022-12-19 Thread Tilman Hausherr
I've submitted a bug report on this semi-official site: https://acrobat.uservoice.com/forums/926812-acrobat-reader-for-windows-and-mac/suggestions/46099387-unmodified-annotations-should-not-be-reported-as-m - To unsubscribe,

Re: PDFBox + Signature + annotation + Signature

2022-12-19 Thread Tilman Hausherr
The least that should be done would be to include a link to the SO issue in some javadocs, e.g. the one of setPage() and the one of setAnnotations(). Maybe others? saveIncremental()? Tilman On 19.12.2022 12:53, Tilman Hausherr wrote: On 18.12.2022 14:58, Frédéric Ravetier wrote: Hey, thanks

Re: PDFBox + Signature + annotation + Signature

2022-12-19 Thread Tilman Hausherr
: Thanks a lot for your help. Have a good weekend I am afraid that I am not going to get an answer... Le sam. 17 déc. 2022, 14:47, Tilman Hausherr a écrit : I thought the visual / non visual signature isn't the problem, that there is some unknown difference between what you use

Re: PDFBox + Signature + annotation + Signature

2022-12-17 Thread Tilman Hausherr
is now using visual signature. If necessary I can change the code to have invisible signature... What can I do to go forward or help or...? Le sam. 17 déc. 2022, 13:43, Tilman Hausherr a écrit : Thanks for trying this. This time the first signature is a visual signature. The stamp

Re: PDFBox + Signature + annotation + Signature

2022-12-17 Thread Tilman Hausherr
: https://drive.google.com/file/d/1CV7lJ8dY1gDcx3rgHoW5yHJ612JSAK9B/view?usp=share_link Le sam. 17 déc. 2022 à 12:27, Frédéric Ravetier a écrit : OK so my test was useless. I will try again Le sam. 17 déc. 2022, 11:30, Tilman Hausherr a écrit : On 17.12.2022 11:19, Frédéric Ravetier wrote

Re: PDFBox + Signature + annotation + Signature

2022-12-17 Thread Tilman Hausherr
or this is another use case) Thanks Fred Le sam. 17 déc. 2022 à 05:16, Tilman Hausherr a écrit : That new PDF also has that the initial signature does not appear in the page annotations (which was the bug fixed in the issue). Tilman On 16.12.2022 20:56, Frédéric Ravetier wrote: I tried to switch the jar

Re: PDFBox + Signature + annotation + Signature

2022-12-17 Thread Tilman Hausherr
in the thread. The reporter is a DSS developer. Tilman Marc On 12/16/2022 8:16 PM, Tilman Hausherr wrote: That new PDF also has that the initial signature does not appear in the page annotations (which was the bug fixed in the issue). Tilman

Re: PDFBox + Signature + annotation + Signature

2022-12-16 Thread Tilman Hausherr
, and the jar file should be modified on my provider side. I will see if we can perform this test on a dev environment. Le ven. 16 déc. 2022 à 13:06, Tilman Hausherr a écrit : On 16.12.2022 12:59, Frédéric Ravetier wrote: Good idea, I can try to use the latest snapshot jar. Is there a snapshot build

Re: Links in pdf cause exception

2022-12-16 Thread Tilman Hausherr
On 16.12.2022 15:52, Tilman Hausherr wrote: This is weird, /D [5 0 R /Fit] means the array has two elements?! What I mean is that this seems correct (if object 5 is a page) I suspect you have [ /Fit ] somewhere in the PDF. (The spaces are optional) Tilman

Re: Links in pdf cause exception

2022-12-16 Thread Tilman Hausherr
Hi, Sorry for the late answer. Please share the PDF, your screenshots didn't get through. This is weird, /D [5 0 R /Fit] means the array has two elements?! Maybe the "bad" object is elsewhere? Tilman On 01.12.2022 10:32, Thomas Sörensen wrote: Hi I have pdf file with a lot of links. They

Re: PDFBox + Signature + annotation + Signature

2022-12-16 Thread Tilman Hausherr
On 16.12.2022 12:59, Frédéric Ravetier wrote: Good idea, I can try to use the latest snapshot jar. Is there a snapshot build (jar) available? https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.28-SNAPSHOT/

Re: PDFBox + Signature + annotation + Signature

2022-12-16 Thread Tilman Hausherr
n Validate ALL in the Signature panel, I get a warning on the annotation that says "modified annotation". shared_stamptxt-nowina_pdf_et_fravetier.png Le ven. 16 déc. 2022 à 11:20, Tilman Hausherr a écrit : Hi, Please upload (to a sharehoster) a final PDF that you

Re: PDFBox + Signature + annotation + Signature

2022-12-16 Thread Tilman Hausherr
Hi, Please upload (to a sharehoster) a final PDF that you think is correct and one that you think isn't. Tilman On 15.12.2022 18:40, Frédéric Ravetier wrote: Hello to everyone, I'm trying to do this use case: Input : A document that contains a digital signature (our provider is using DCC

Re: ArrayIndexOutOfBounds for compressed document

2022-12-14 Thread Tilman Hausherr
Fixed in https://issues.apache.org/jira/browse/PDFBOX-5552 Get a snapshot version in 1-2 hours here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.28-SNAPSHOT/ Tilman On 14.12.2022 15:51, Tilman Hausherr wrote: On 14.12.2022 15:00, Stefan Sauerer wrote

Re: ArrayIndexOutOfBounds for compressed document

2022-12-14 Thread Tilman Hausherr
On 14.12.2022 15:00, Stefan Sauerer wrote: Hello PDFBox Team, the attached file causes an ArrayIndexOutOfBounds exception, when I try to open it in PDFDebugger:2.0.27. Is there a way to fix this or is the document simply corrupted? Thanks, the color key mask is too small, it has size of 2

Re: Infinite Loop when opening from an InputStream when file length is aligned to default chunk size

2022-12-08 Thread Tilman Hausherr
Please check if this was fixed https://issues.apache.org/jira/browse/PDFBOX-5158 Possible explanation: the latest 3.0 version is 3.0.0-alpha3, not RC1. Tilman On 08.12.2022 19:20, Daniel Skiles wrote: All, I have what might be a bug in the 3.0.x series of PDFBox. It appears that certain input

Re: Apache PDFBox software development job / gig postings?

2022-11-28 Thread Tilman Hausherr
I don't know if we have an etiquette here except the Apache code of conduct ( https://www.apache.org/foundation/policies/conduct.html ). IMHO it would be OK, and it has also been done in the past. Tilman On 28.11.2022 14:43, Jason Pyeron wrote: Is there an etiquette to posting Apache PDFBox

Re: How to know which Operands belong to what

2022-11-22 Thread Tilman Hausherr
, but could'nt get it working yet (I'm new to Java). Are there any similar examples for MCID's which I could use as guidance? No, I don't think so. Tilman Am Di., 22. Nov. 2022 um 04:32 Uhr schrieb Tilman Hausherr < thaush...@t-online.de>: Please try the PrintTextColors.java exampl

Re: How to know which Operands belong to what

2022-11-21 Thread Tilman Hausherr
Please try the PrintTextColors.java example from the source code download, in the examples subproject. Trying to interpret the PDF operators + parameters would become a huge effort, which already exists. Tilman - To

Re: PDFBox 1.8.17 vs. CVE-2021-27906, CVE-2021-27807

2022-11-10 Thread Tilman Hausherr
Hi, It wasn't lost and there is an answer. Maybe you didn't subscribe. https://lists.apache.org/thread/2gcjrpdrlz8nrh3crnml2k80lvl6ns0b Tilman On 10.11.2022 13:18, Mrowczynski, Krzysztof wrote: Hello! In case last email was lost I would like to ask you again about CVE-2021-27906,

Re: PDFBox 1.8.17 vs. CVE-2021-27906, CVE-2021-27807

2022-10-28 Thread Tilman Hausherr
I doubt that it was fixed in 1.8.*. You should update to 2.0.27. There are more disadvantages (bugs!) in 1.8.17 than two CVEs which have never been exploited in the wild, and which will just crash or freeze your system, but not result in data access. Tilman On 28.10.2022 13:35, Mrowczynski,

Re: Modular version of PDFBox 2.0.27 (pdfbox-app-2.0.27.jar)

2022-10-21 Thread Tilman Hausherr
Hi, The link didn't get through. (neither did the image, but that one was just a symbol) I remember there was a link in moderation, but I deleted the moderation mail so I don't have it anymore. (I didn't expect a link to be deleted) Tilman On 21.10.2022 13:05, Vivek Suraiya wrote:

Re: Help on Digital signing

2022-10-17 Thread Tilman Hausherr
https://stackoverflow.com/questions/72574460/signature-on-all-pages-with-pdfbox https://stackoverflow.com/questions/35701597/how-to-show-digital-pdf-signature-in-all-documents-page-using-itext/35724742#35724742

Re: Non-embedded fonts

2022-10-13 Thread Tilman Hausherr
than another? First one better; second one would get only the top level fonts of that page. Tilman On Thu, Oct 13, 2022 at 6:21 AM Tim Allison wrote: Thank you! On Wed, Oct 12, 2022 at 2:01 PM Tilman Hausherr wrote: On 12.10.2022 19:21, Tim Allison wrote: Hi All, Is there an easy

Re: Non-embedded fonts

2022-10-12 Thread Tilman Hausherr
On 12.10.2022 19:21, Tim Allison wrote: Hi All, Is there an easy-ish way for me to figure out if a PDF has non-embedded fonts during TextStripping or otherwise? If you have a PDFont object in a stripper extension then you could call font.isEmbedded() Tilman

Re: installing and running PDFBox within Python

2022-10-02 Thread Tilman Hausherr
On 26.09.2022 10:53, Peter Murray-Rust wrote: * Does PDFBox3 have more functionality than PDFBox2 that would help? I don't think so, the main thing is the on demand parser. The rest are API changes and memory management changes. See also https://pdfbox.apache.org/3.0/migration.html Tilman

Re: Gradient fill with alpha

2022-10-01 Thread Tilman Hausherr
The "substantially more complex approach" is what I had in mind (using a softmask / transparency group) even before reading the danfickle link. PDFBox can handle the rendering, but it took us a long time to get it right. Tilman On 01.10.2022 18:45, Aaron Mulder wrote: Is there an "easy"

Re: Issue with PDFBox 1.8.15

2022-10-01 Thread Tilman Hausherr
On 01.10.2022 05:45, Tilman Hausherr wrote: re your installation, make sure that there is a pdfbox*.jar and fontbox*.jar of the same version. I forgot to mention, using the pdfbox-app jar also works because it contains fontbox. Tilman

Re: Issue with PDFBox 1.8.15

2022-09-30 Thread Tilman Hausherr
Your language isn't java so I googled "Utils.Picture". Apparently you're using "TestComplete" from SmartBear which has a java interface. Try this: download pdfbox-app https://www.apache.org/dyn/closer.lua/pdfbox/1.8.17/pdfbox-app-1.8.17.jar then run it with your PDF like this from a command

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-29 Thread Tilman Hausherr
On 28.09.2022 19:08, Tilman Hausherr wrote: https://issues.apache.org/jira/browse/PDFBOX-5521 Snapshot build available here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.28-SNAPSHOT/ it's mostly the code I posted, with some fine-tuning. Tilman

Re: PDF2SVG:Use pdfbox and batik to generate svg files, but no text

2022-09-28 Thread Tilman Hausherr
Hi, See my comments in https://stackoverflow.com/questions/73866819/pdf2svguse-pdfbox-and-batik-to-generate-svg-files-but-no-text I've also put on my long TODO list to test that commit https://github.com/AlexanderScherbatiy/pdfbox/commit/b806d44f9514a7b5fededfa49c98ad2858b93a92 in

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-28 Thread Tilman Hausherr
https://issues.apache.org/jira/browse/PDFBOX-5521 - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-27 Thread Tilman Hausherr
perform an additional analysis? Best regards, Patrick On 27 Sep 2022, at 08:44, Tilman Hausherr wrote: Here's some quick code, replace the beginning of the method "visitFromDictionary(COSDictionary obj)" with it if (!reachedSignature && incrementalUpdate) {

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-27 Thread Tilman Hausherr
  reachedSignature = true;     }     else     {     //TODO log warning     }     }     }     } } Tilman On 27.09.2022 08:27, Tilman Hausherr wrote: I'm thinking of adding some code that checks whether it is an "old" signature b

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-27 Thread Tilman Hausherr
I'm thinking of adding some code that checks whether it is an "old" signature by comparing it to these huge values that we use (or better, by comparing value[2] + value[3] to the length of the input file). This would then skip these old signatures. Best place would be the segment where

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-26 Thread Tilman Hausherr
would be the best option) I can propably generate such a sample document. BR Maruan Am Montag, dem 26.09.2022 um 20:22 +0200 schrieb Tilman Hausherr: Hi, How come that you're reaching something COSWriter before saving? And why are saveIncrementalForExternalSigning and saveIncremental called?

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-26 Thread Tilman Hausherr
again and best regards Patrick On 23 Sep 2022, at 17:37, Tilman Hausherr wrote: I remember we had this problem before but I can't remember how it was fixed. Currently we consider the first signature we hit. I remember thinking about this and concluding that the algorithm would always hit the firs

Re: Center Header Issue

2022-09-24 Thread Tilman Hausherr
On 24.09.2022 14:42, Mehmet Fatih ÇİN wrote: Can you do this with a sample of my music? I'm at birth recently with PDFBox. I don't have access to your code, because the attachment didn't appear. You need to upload it to a sharehoster. Tilman PS: you are apparently using an automatic

Re: Center Header Issue

2022-09-24 Thread Tilman Hausherr
Hello Mehmet, The attachment didn't get through, my guess is that you didn't know that the position values passed to newLineAtOffset() are relative. Either take that into consideration, or call endText() and beginText() to reset it. Tilman On 24.09.2022 10:12, Mehmet Fatih ÇİN wrote:

Re: Problem signing (with LTV) an already signed document with extended features enabled

2022-09-23 Thread Tilman Hausherr
I remember we had this problem before but I can't remember how it was fixed. Currently we consider the first signature we hit. I remember thinking about this and concluding that the algorithm would always hit the first one and not an old one. It's difficult without the file. You'll have to

Re: PDF Box Release update.

2022-09-19 Thread Tilman Hausherr
Did you test with 2.0.27? https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.27-SNAPSHOT/ If not, please do it. If it doesn't work, then please explain what you mean with "issues while loading PDFs through PDFBox with different font and encoding" and upload

Re: Improvement for the Debugger app

2022-09-15 Thread Tilman Hausherr
I think that this has worked since 2.0.0, I use it all the time. Tilman On 15.09.2022 21:42, Gilad Denneboom wrote: What do you know... I was using the 2.0.25 version, and when I changed it to 2.0.26, it worked! Thanks! On Thu, Sep 15, 2022 at 7:15 PM Tilman Hausherr wrote: That's

Re: Improvement for the Debugger app

2022-09-15 Thread Tilman Hausherr
That's implemented! Tilman On 15.09.2022 19:13, Gilad Denneboom wrote: Hi all, I would like to request the option to drag and drop a PDF file into the debugger app. Opening files via the Open dialog is a bit cumbersome sometimes. Simply dragging them into the app is much easier and faster.

Re: edit the same pdf and save.

2022-09-13 Thread Tilman Hausherr
Hi, You need to PREPEND, and also do a translation (for 180° probably width, height) because the rotation is done around the lower left. Tilman On 14.09.2022 06:13, Komal wrote: Dear Concerned, what are the steps to edit/modify the same pdf? for example to rotate the pdf following steps

Re: PDRectangle to awt.Rectangle coordinate transformation

2022-09-13 Thread Tilman Hausherr
1 unit in PDF = 1/72 inch at 100% sized displaying (which is 72 dpi). Tilman On 13.09.2022 17:31, Jacob MacWilliams wrote: Hi, What is the correct coordinate transformation to translate the coordinates of the org.apache.pdfbox.pdmodel.common.PDRectangle to coordinates that can draw the same

Re: Question regarding letter spacing

2022-09-13 Thread Tilman Hausherr
, Sep 7, 2022 at 7:43 PM Tilman Hausherr wrote: Re Kerning: You could try to use TrueTypeFont.getKerning(). To get a TrueTypeFont, call new TTFParser().parse(). Tilman On 07.09.2022 16:33, Eszter Bordi wrote: Hi, After thorough investigation in the API docs I still haven’t found the answer

Re: Extracting field names from pdf

2022-09-12 Thread Tilman Hausherr
Indeed, there isn't. But there is no guarantee that the "label" is to the right. It could be to the left. Tilman On 12.09.2022 19:16, Jacob MacWilliams wrote: Hi, The names of the various fields in my acroForm are all fairly unintuitive (Check Box1, Check Box2, etc.) so for the simple case

Re: Converting TIF File to PDF File

2022-09-12 Thread Tilman Hausherr
On 12.09.2022 16:41, Mehmet Fatih ÇİN wrote: Hello everyone, I have a file with the extension ".tif" consisting of several pages. How can I convert this image to PDF? I also need to set the file size to very small. While doing this, I must not compromise on quality. Hi, PDFBox doesn't

Re: Question regarding letter spacing

2022-09-07 Thread Tilman Hausherr
Re Kerning: You could try to use TrueTypeFont.getKerning(). To get a TrueTypeFont, call new TTFParser().parse(). Tilman On 07.09.2022 16:33, Eszter Bordi wrote: Hi, After thorough investigation in the API docs I still haven’t found the answer, so I’m asking it here. Is there any way to get

Re: Missing TTC header error

2022-09-05 Thread Tilman Hausherr
On 05.09.2022 15:00, Jacob MacWilliams wrote: Opening one of the files for which the exception was thrown (NotoSerifCJK-Regular.ttc, also attached) where an exception was thrown, it does seem to me that the file simply contains html I suspect you right-clicked "save as" and so you saved a

Re: PDF Fill using Apache PDF Box 3.0.0-alpha3 using COS Model due to PDF is encrypted.

2022-08-25 Thread Tilman Hausherr
He used saveIncremental but that one works too when using setValue(),  (my post from yesterday was useless, these checkboxes already have their appearances). PDAcroForm pDAcroForm = pDDocument.getDocumentCatalog().getAcroForm(); COSDictionary cosDictionary1 = pDAcroForm.getField("ap.name

AW: Re: PDF is not opening the Adobe reader when filled using COS Model and save using incremental Save.

2022-08-25 Thread Tilman Hausherr
Hi, You need to upload the PDF somewhere. Attachments are deleted. Tilman --- Original-Nachricht --- Von: Damaji Kalunge Betreff: Re: PDF is not opening the Adobe reader when filled using COS Model and save using incremental Save. Datum: 25. August 2022, 10:22 An: users@pdfbox.apache.org

Re: Check the PDF box based on its value. by using COSDictionary

2022-08-25 Thread Tilman Hausherr
() This may be too much or not be complete, the best would be to look at it with PDFDebugger. Tilman Am 25.08.2022 um 08:55 schrieb Tilman Hausherr: Hi, Checkboxes are updated with check() and unCheck(). If it still doesn't work, please upload the result file somewhere. Tilman

Re: Check the PDF box based on its value. by using COSDictionary

2022-08-25 Thread Tilman Hausherr
Hi, Checkboxes are updated with check() and unCheck(). If it still doesn't work, please upload the result file somewhere. Tilman Am 25.08.2022 um 08:47 schrieb Damaji Kalunge: Hi Team, I am ticking the checkbox using below code,/still the checkbox is not checked in the filled PDF./   Could

<    1   2   3   4   5   6   7   8   9   10   >