• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Lines, shapes and other symbols lost during converting from pdf to html

Community Beginner ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

Hi, 

I converted a pdf to html but output is not as expected. 

Fig: portion of input

davinder27105796k95c_0-1669564255193.png

 

Fig: Portion of output

davinder27105796k95c_1-1669564305621.png

 

Please suggest me how to get the exact layout in the html doc.

Thanks.

TOPICS
Edit and convert PDFs , JavaScript

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

Use a image for the graphic.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

Thanks, You mean first convert PDF to image and then image to html? I think there will be loss in quality when converting from pdf>image>html.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

I do not have a clue as to what application created that graphic. Some graphics can be converted into a vector format that is easily understood and work very well in HTML documents such SVG.

 

My guess is that your image is being "understood" as a bunch of component pieces that are being tossed int the HTML document. If you are able to save that image as a PNG format, it will look great in HTML, but it needs to be saved to a size that will be maintained. For example, if you want the image to be saved at 1000 pixels across, it will look great at that size but will probably look dreadful if viewed at 500 pixels across.

 

Talk to the person designing the page as to how to convert that image into either a vector or bit-mapped image to best display across browsers and sizes.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

Thank you for your response. I used Acrobat DC to convert the pdf to html. Would you suggest any better tool for conversion? Also, could you please suggest how can I covert a pdf to svg.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

LATEST

Obviously, some files are easier to convert to HTML. 

 

Since vector graphics are typically a bunch of points with commands as to what is supposed to take place in between those points (two points are the end of a line; two points are the center and radius of a circle; two points are the diameter of a circle; etc. HTML does not necessarily have a clue about what to do with those points if it doesn't know the overall commands that tell it what to do. 

 

What application created this graphic? Can you go to the program and look for "Save as…" or "Export as…" options to save it in a format that HTML knows what to do with?

 

There are many graphic image types that HTML knows what to do with. But an ever-increasing number that it has no clue with. One other option is to contact the company that made the software you're using, tell them what you're trying to do, and ask them what they recommend.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines