Search code examples
javapdfexportjtextpane

Export contents of JTextpane to pdf


I am writing a text editor much like wordpad and I want my users to export my jtextpane to a PDF. I don't want to use a external library if I can help it. I only want to export as PDF, I don't want to overwrite, read, or edit any current PDFs. I can post code If I need to but I think the question Is clearly defined.

I am a beginner at java so maybe I missed something.

Thanks.


Solution

  • Create a PDF file with no external libraries is very complicated, you can check the following link and create your own conclusions.

    It is best to use an external library to deploy Java.

    How to create pdf file using Java without using any external libraries?