开发者

PHP to PDF - Use text from XML document to create PDF?

I have some xml files that contain text, which are displayed on my website. I want to extract the text from these xml files and convert them to a pdf document that users can download.

  1. how can I can extract this text from the xml documents? (libraries etc?)

  2. how can I use this text to create a pdf document?

开发者_如何学C

I am working in a PHP environment, however if this is not the suitable language, I could change.


There are many ways to parse an XML file, and many ways to output a PDF file.

I suggest you start with the XML functions within PHP http://php.net/manual/en/book.xml.php

There are also various classes to write PDF files, try googleing for them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜