Skip to content
Advertisement

Tag: pdf

Download pdf from response (okHttp3) – JAVA spring boot / display on browser

I’m working with external API , when I execute one of the request that returns pdf I cannot handle it in the server side . If I copy paste the api request : https://api.worldota.net/api/b2b/v3/hotel/order/document/voucher/download/?data={“partner_order_id” : “0d7836b4-2eba-475f-b2d6-1b95092534b0” , “language”:”en”} the browser open a pdf in the browser and download it . when I execute this url in the java code how

iText PDF: the document has no pages

I’m trying to do a date range based filter to export a report into a PDF; however, when I click to export the PDF, I get the following message: ExceptionConverter: java.io.IOException: The document has no pages. Here’s my PDF class’ code: And here’s the code of the PDF generation button: I believe there’s a problem with SQL and JDateChooser, since

Merge encrypted pdf file programmatically exception

I have been using the following code to merge encrypted pdf files programmatically. I started getting this error recently upon trying to create the pdfReader at this line of code: com.itextpdf.text.exceptions.InvalidPdfException: Unknown encryption type R = 6 at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:738) at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:181) at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:219) at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:207) at com.project.mainPageShop.mergeMyFiles(mainPageShop.java:4368) at com.project.mainPageShop$DownloadFileAsync.onPostExecute(mainPageShop.java:11757) at com.project.mainPageShop$DownloadFileAsync.onPostExecute(mainPageShop.java:11628) at android.os.AsyncTask.finish(AsyncTask.java:755) at android.os.AsyncTask.access$900(AsyncTask.java:192) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772) at android.os.Handler.dispatchMessage(Handler.java:107) at

Extract Checkbox value out of PDF 1.7 using PDFBox

I have recently started working with pdfbox to extract text out of pdf. Though along with text I also need to extract checkbox value show in image. I have tried different methods to find the checkbox element and extract its values. After researching the pdf text through this tool I found that the checkbox is not image or anything but

How to convert a PDF to a JSON/EXCEL/WORD file?

I need to get data from the pdf file with its header for further comparing with DB data I tried to use the pdfbox , google vision ocr , itext, but all libraries gave me a row without structure and headers. Example: DatenNumbernStatusn12122020n442334delivered I will trying convert pdf to excel/word and get data from them, but for this realisation i

Docx to Pdf Converter in java

The below code is not working with Apache poi 3.16. Can someone provide with the correct solution, in my project there are some dependency for using only Exception: Answer The main problem with this is that those PdfOptions and PdfConverter are not part of the apache poi project. They are developed by opensagres and first versions were badly named org.apache.poi.xwpf.converter.pdf.PdfOptions

Advertisement