Skip to main content
Participant
November 12, 2021
Question

Need a way to convert from pdf to xml vice versa

  • November 12, 2021
  • 2 replies
  • 1541 views

Hello,

I need a way to convert a pdf to xml , make changes , and convert back into pdf from xml using an api or sdk. Need it to be completely automatic with no user interaction any ideas?? 

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
November 12, 2021

Unless the PDF file will have an extremely predictable structure I agree this "round-trip" is not going to be possible.

XML to PDF is possible, although complicated. PDF to XML is extremely difficult.

ouri5F9BAuthor
Participant
November 12, 2021

do you have any other suggestions? i tried pdf to word and word to pdf  but formats were off

ouri5F9BAuthor
Participant
November 12, 2021

I will need to see the actual files to do that.


Attached is the pdf. for example sections 1E, 2A and other similar ones are tables that im trying to dynamically create

Legend
November 12, 2021

This sounds a pipe dream. Extractors for limited PDF content in XML form exist, but PDF is a rich graphical and metadata container, and I cannot imagine any system that could roundtrip. If you want to edit a PDF, use PDF editing API. If you have a different need, try and describe it and we may have ideas of how to approach it.

ouri5F9BAuthor
Participant
November 12, 2021

my issue is that i have a pdf where there are mutiple tables and those tables are dynamic. which mean data in those tables could have 2 rows or 20 rows. but the issue is that if it has many rows then it wil over lap other text and things in the pdf.

 

so tying to find a way to populate those tables while the rest of the content moves down with the rows of the table