Re: Question Regarding Removal of PositionWrapper and TextNormalize Classes
Hi, I don't know. You should find out what this does in your code, create a test, and find out if / why the test fails when using the 2.0 stripper, and whether copying the source code of that class and use it in your own postprocessing helps. Tilman On 14.05.2024 10:21, Krishna Shankar wrote: Hi , Do we have any alternative for TextNormalize. As we are using it in our code for a long and we are upgrading to PdfBox 2.0.30. Thanks, Krishna On Tue, 14 May 2024 at 12:42 PM, Tilman Hausherr wrote: Hi, PositionWrapper is still in the code. However it's private. This and the removal of TextNormalize was done 10 years ago in https://issues.apache.org/jira/browse/PDFBOX-2384 before 2.0.0, so you're a bit late. Nobody can tell you what to do because we don't know why you needed it. Tilman On 14.05.2024 07:24, Krishna Shankar wrote: Dear Apache PDFBox Users, I hope this email finds you well. I have been using Apache PDFBox for quite long, and I recently noticed that the PositionWrapper and TextNormalize classes were removed after version 2.0.0. I am curious about the rationale behind this decision and would appreciate any insights or explanations regarding the removal of these classes. Understanding the reasoning behind such changes would greatly help me in adapting my code and workflows accordingly. Please mention if there are any alternatives for that. Thank you very much for your time and assistance. I look forward to hearing from you and continuing to be a part of the Apache PDFBox community. Best regards, Krishna - 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
RE: Re: Lost xref table on two PDF merge
Hi, Sorry for late reply. I didn't get your answer to my email and also I can't reply to it using button on mail archive web page. I had to manually copy it. My PDFBox version is 3.0.2 and you are right, that the refs are ok after saving the document. With best regards, Frantisek Simon On 2024/04/04 15:18:48 Andreas Lehmkühler wrote: > Hi, > > which version of PDFBox are you using? > > Did you save the merged pdf before you try to fix the signature? The > resulting pdf should have a valid xref table. > > Andreas > > Am 04.04.24 um 15:09 schrieb František Šimon: > > Hello, > > > > > > > > I encounter a problem when trying to fix some problem with invalid > > certificate in PDF that I am processing. > > > > I have two PDFs which I am merging together. First one is some one page > > template where I fill soma data and second one is multiple page PDF which > > contains some corrupted signature. > > > > > > > > When I merge these PDF first and then try to search for corrupted signature > > I will get nothing from document.getDocument().getObjectsByType(COSName.SIG) > > since xref table of second PDF is replaced with the one from first one. > > > > > > > > I can get around it in my code but is there a possibility to keep xref table > > from both PDFs after merge? > > > > > > > > With best regards, > > > > Frantisek Simon > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >
Re: Question Regarding Removal of PositionWrapper and TextNormalize Classes
Hi , Do we have any alternative for TextNormalize. As we are using it in our code for a long and we are upgrading to PdfBox 2.0.30. Thanks, Krishna On Tue, 14 May 2024 at 12:42 PM, Tilman Hausherr wrote: > Hi, > > PositionWrapper is still in the code. However it's private. This and the > removal of TextNormalize was done 10 years ago in > https://issues.apache.org/jira/browse/PDFBOX-2384 before 2.0.0, so you're > a bit late. > > Nobody can tell you what to do because we don't know why you needed it. > > Tilman > > On 14.05.2024 07:24, Krishna Shankar wrote: > > Dear Apache PDFBox Users, > > > > I hope this email finds you well. > > > > I have been using Apache PDFBox for quite long, and I recently noticed > that > > the PositionWrapper and TextNormalize classes were removed after version > > 2.0.0. > > > > I am curious about the rationale behind this decision and would > appreciate > > any insights or explanations regarding the removal of these classes. > > Understanding the reasoning behind such changes would greatly help me in > > adapting my code and workflows accordingly. > > > > Please mention if there are any alternatives for that. > > > > Thank you very much for your time and assistance. I look forward to > hearing > > from you and continuing to be a part of the Apache PDFBox community. > > > > Best regards, Krishna > > > > > - > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >
Re: Question Regarding Removal of PositionWrapper and TextNormalize Classes
Hi, PositionWrapper is still in the code. However it's private. This and the removal of TextNormalize was done 10 years ago in https://issues.apache.org/jira/browse/PDFBOX-2384 before 2.0.0, so you're a bit late. Nobody can tell you what to do because we don't know why you needed it. Tilman On 14.05.2024 07:24, Krishna Shankar wrote: Dear Apache PDFBox Users, I hope this email finds you well. I have been using Apache PDFBox for quite long, and I recently noticed that the PositionWrapper and TextNormalize classes were removed after version 2.0.0. I am curious about the rationale behind this decision and would appreciate any insights or explanations regarding the removal of these classes. Understanding the reasoning behind such changes would greatly help me in adapting my code and workflows accordingly. Please mention if there are any alternatives for that. Thank you very much for your time and assistance. I look forward to hearing from you and continuing to be a part of the Apache PDFBox community. Best regards, Krishna - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org