简体   繁体   中英

is there any possible way to export xml data from a pdf using python

I am trying to export pdf files to xml like this format

  <w:p>
<w:pPr>
  <w:pStyle w:val="Heading5"/>
</w:pPr>
<w:bookmarkStart w:id="20" w:name="ssdfsdfd"/>
<w:r>
  <w:t xml:space="preserve">Ssdfsdfd</w:t>
</w:r>
<w:bookmarkEnd w:id="20"/>

so that i can not miss fonts and images.

You can try pdfminer .

Or pypdf2xml , a project base on pdfminer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM