Skip to main content
Participant
March 6, 2024
Question

Convert JSON to HTML

  • March 6, 2024
  • 1 reply
  • 388 views

Hi,

My requirement is converting the pdf to html with the applied styles. 

I converted the pdf to json using adobe pdf services api. I need the help to convert the json to html without changing the styles.

Example:  The generated json is

{
"Bounds": [
280.5,
671.7960052490234,
352.5,
687.7920074462891
],
"Font": {
"alt_family_name": "Times New Roman PS",
"embedded": false,
"encoding": "WinAnsiEncoding",
"family_name": "Times New Roman PS",
"font_type": "TrueType",
"italic": false,
"monospaced": false,
"name": "TimesNewRomanPS-BoldMT",
"subset": false,
"weight": 700
},
"HasClip": false,
"Lang": "en",
"Page": 5,
"Path": "//Document/H1[5]",
"Text": "Sample Page ",
"TextSize": 12.0,
"attributes": {
"LineHeight": 14.375,
"TextAlign": "Center"
}
}

 

In html, the output should be "Sample Page" with the H1 heading.

Is it possible to do this? If yes, please guide me

 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
March 6, 2024

This is not related to Adobe Acrobat.