Skip to main content
Participating Frequently
December 16, 2022
Question

Issue with visualizing JSON to html

  • December 16, 2022
  • 1 reply
  • 1634 views

I'm having problems is in the interpretation of the json. In the attached example (which were generated by an Adobe community user) I can see page 108 from the document correctly visaulised, but in my case it looks like this:

 I'm using php for the html code:

 

Can anyone guide me a bit about the coordinates and if I should create any other element apart from the "div"?

 

Thanks

Mark

    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    December 19, 2022

    I have no idea what you are trying to do. Can you please rephrase? Are you trying to convert HTML to PDF? Something else?

    Participating Frequently
    December 20, 2022

    Hi Raymond, 

    Apologies for any confusion. We are converting PDF to JSON fine, but in generating JSON to HTML, we are facing some difficulties

    I've attached the PDF which we are using to convert to JSON, as it is quite complex, with multiple images/ tables types.

    Our problem is on page 108. When we parse from JSON to html we get the below

    we're using php for the html code

    Can you guide me a bit about the coordinates and if I should create any other element apart from the "div"?


    Thanks Raymond,
    Mark

    Raymond Camden
    Community Manager
    Community Manager
    December 20, 2022

    Ah, so to be clear, you are using the PDF Extract API, right? There isn't necessarily a "path" you can take to generate HTML from that, and that's not really the intent of the API. The API is meant to give you information about what's in the document. I can't help you with this, sorry. It's not to say it's impossible, but PDF layout is not the same as HTML.