"in asp.net what is the best way to convert a pdf file to html?" Code Answer


any document creation software that can save documents as pdf can save them as html. i'm assuming the issue is that your users will be creating rich documents (lots of embedded images), which results in multiple files, and your requirements stem from a desire to make uploading these documents as simple as possible to the user.

there are numerous conversion packages that can probably do this for you, however when you're talking about rich content, you are talking about text plus images. those images have to be stored somewhere and served somehow, and whatever conversion method you use will require you to examine all image sources to make sure they point to valid locations on your server.

i would like to suggest an alternate way of doing this that you can take to your team: implement one of the many blog apis for publishing content. there are free and commercial software packages that use these apis to publish content directly to a website, such as windows live writer and microsoft word. your users can simply create their content and upload it directly to your website without having to publish it as pdf first then upload it. so the process becomes much smoother for your users, and you get the posts in a form that doesn't require you spend thousands of dollars on developing or buying conversion code.

the two most common apis are the metaweblog api and the movable type api. both are very simple and easy to implement. i think this way would be a much better alternative than what you're thinking about doing.

By Jim Matthews on April 9 2022
Only authorized users can answer the Search term. Please sign in first, or register a free account.