Skip to content

Tag: pdf

iText paragraph.setRotationAngle changes text orientation

I’m trying to add some vertical texts to a PDF file, but when I rotate my paragraphs with setRotationAngle every space turn into a line break or the text orientation is changed, I’m not sure. The pictures show the result I expect and the result I’m getting. I’m using iText 7.1.0 at NetBeans 12.3. Result I want Result I get

how to change image position to center in PDF android

My app create pdf using this code problem is when user select smaller size image than page size it will move to top left corner i have tried and if image is bigger than page size it goes out of the page I want to shrink the image size to page size Answer I have Changed this image position to

How to read .rpt files in Java and save it as pdf

I have a .rpt file. I want to read it programatically in java and save it in pdf file. I followed the solution multithread pdf conversion My source code provided below After running my code I am unable to read the .rpt file and my pdf file becomes empty. Please help me out. Answer Finally I get a solution using

How to open secific range of pages in pdf instead of whole pdf

How to modify the following code to open specific range of pages within the pdf for example from page 5 to 30 instead of opening the whole pdf. Thanks in advance Answer You can’t modify a third party tool, where the option to change the site range programmatically isn’t given. Thus, you can’t use external Viewer without Endpoints to handle.

Accessing a COSArray for PDF fields with Apache PDFBox

I’m trying to access all form fields in a PDF file – so I can use code to fill them in – and this is as far as I’ve gotten: which gives an output of: Does anyone know how I can access the two COSObjects in the COSArray? I also don’t know what the notation COSObject{x, y} means, and can’t