You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Nathaniel McFarland <ng...@gmail.com> on 2013/12/05 18:58:19 UTC

Question about TextToPDF

PDFBox,



I am new to your software, and I am using it to convert a .txt file to a
.pdf. I have everything installed, and it is all working correctly, but I
am wondering if there is a way to force the pdf I am creating to be
landscape. The txt file that I am converting from is formatted in a way
that only fits on a landscape document, but when I use TextToPDF, it line
wraps the text and uses portrait. Is there a way that I can fix this? Any
help would be appreciated. Thank you.


-Nathan

Re: Question about TextToPDF

Posted by Andreas Lehmkühler <an...@lehmi.de>.
Hi,

> Nathaniel McFarland <ng...@gmail.com> hat am 5. Dezember 2013 um 18:58
> geschrieben:
>
>
> PDFBox,
>
>
>
> I am new to your software, and I am using it to convert a .txt file to a
> .pdf. I have everything installed, and it is all working correctly, but I
> am wondering if there is a way to force the pdf I am creating to be
> landscape. The txt file that I am converting from is formatted in a way
> that only fits on a landscape document, but when I use TextToPDF, it line
> wraps the text and uses portrait. Is there a way that I can fix this? Any
> help would be appreciated. Thank you.
IMHO TextToPDF isn't much more than a proof of concept: Therefors it doesn't
support any "fancy" features. But I guess it should be easy for you to alter
the code to produce landscape pdfs.

> -Nathan

BR
Andreas Lehmkühler