The following example shows you how to import a PDF document into a Word document. The loadFromPdf method reads the text content of the PDF file so you can edit it and save it as a .docx, .rtf, .html or other supported format.
You can also import a PDF document from a stream.