Skip to content
Advertisement

Tag: pdf-generation

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

Java iText scale document to A4

I have the following method that “resizes” all the pages of a document to A4 page dimensions: However , this is not working as expected , the pages are being transformed to A4 (297×210) BUT the content is not being fitted inside (scaled) , the content appears cutted because the original pages are larger than 297X210 . How can I

Advertisement