You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Akhil Shaji <ak...@waiin.com.INVALID> on 2023/01/03 10:25:14 UTC

Doubts on using PDFbox to convert XML to PDF

Hi,

I am having a requirement to convert already existing XML files to PDF and pass to an API, so on my research I found Apache PDFbox and Apache FOP.
So, my queries are :

  1.  How to create pdf from xml using Apache PDFBox? Any example codes.
  2.  Examples of how to create pdf from xml using Apache PDFBox using JavaScript.
If for that conversion Apache FOP is needed, then

  1.  Is Apache FOP free of cost? Is there any licensing cost involved for using Apache FOP?
  2.  Examples of how to create pdf from xml using Apache FOP using JavaScript.

Thank You
Akhil Shaji
Disclaimer - The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer. WAi Technologies has a information security policy in accordance with "ISO 27001:2013 ISMS"

Re: Doubts on using PDFbox to convert XML to PDF

Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,

PDFBox doesn't have an API to convert from XML to PDF. Re licensing of 
FOP (which has its own channels), read the apache license here: 
https://www.apache.org/licenses/LICENSE-2.0

Tilman

On 03.01.2023 11:25, Akhil Shaji wrote:
> Hi,
>
> I am having a requirement to convert already existing XML files to PDF and pass to an API, so on my research I found Apache PDFbox and Apache FOP.
> So, my queries are :
>
>    1.  How to create pdf from xml using Apache PDFBox? Any example codes.
>    2.  Examples of how to create pdf from xml using Apache PDFBox using JavaScript.
> If for that conversion Apache FOP is needed, then
>
>    1.  Is Apache FOP free of cost? Is there any licensing cost involved for using Apache FOP?
>    2.  Examples of how to create pdf from xml using Apache FOP using JavaScript.
>
> Thank You
> Akhil Shaji
> Disclaimer - The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer. WAi Technologies has a information security policy in accordance with "ISO 27001:2013 ISMS"
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org