Skip to main content
ramp54923220
Participant
March 29, 2019
Answered

html to pdf using c#

  • March 29, 2019
  • 3 replies
  • 4646 views

Hi,

Can you please advise if you any API to be used in our C# application to convert from HTML to PDF ?

Cheers,

Ram

Post moved from Adobe Creative Cloud to Creating PDFs. [Mod]

This topic has been closed for replies.
Correct answer Test Screen Name

You definitely can’t use Acrobat. It is not licensed for web server use.

3 replies

Test Screen NameCorrect answer
Legend
April 4, 2019

You definitely can’t use Acrobat. It is not licensed for web server use.

Thom Parker
Community Expert
Community Expert
April 4, 2019

Ahhh, I missed those answers.  You cannot use Acrobat for this. You'll need a 3rd Party tool.

That said, since it's operating from a server script, you could probably use one of the online services for this.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
ramp54923220
Participant
April 5, 2019

Thanks Thom. I would look for some third party tools.

Thom Parker
Community Expert
Community Expert
April 4, 2019

Here's a google search for HTM to PDF

https://www.google.com/search?q=HTML+to+PDF&oq=HTML+to+PDF&aqs=chrome..69i57j69i60j69i65l3j69i61.3070j0j4&sourceid=chrom…

You'll find a couple of C# SDKs in there.

I would stick with a pre-built application. Writing this with a low level PDF library would be a huge job.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
ramp54923220
Participant
April 4, 2019

Hi,

I knew there are a lot of C# SDKs available. But, can you please confirm if acrobat doesn't provide any APIs to call from other programming languages (such as C#, JAVA etc.) to convert from HTML to PDF ?

Thom Parker
Community Expert
Community Expert
April 4, 2019

Why yes, Acrobat does  provide access to this functionality. Simply directing Acrobat to open an URL will cause it to convert HTML to PDF. 

Look at the Acrobat InterApplicaiton Communication API:

Acrobat DC SDK Documentation

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Legend
April 4, 2019

What environment?

- Web server?

- Single user owning Acrobat Pro license, running tool interactively?

- Background task?

- Users with Acrobat Reader only?

- Other?

ramp54923220
Participant
April 4, 2019

Hi,

Please see my responses below.

- What environment?

It needs to be used in our web application developed using ASP.NET (C#)

- Web server?

IIS

- Single user owning Acrobat Pro license, running tool interactively?

See response below

- Background task?

Yes, acrobat API or software we can install on the server where IIS is hosted so that the web application that we developed can talk to the software in converting the HTML to pdf and get the document downloaded to users based on the user actions on the webpage.

- Users with Acrobat Reader only?

Yes

- Other?