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

html to pdf using c#

New Here ,
Mar 28, 2019 Mar 28, 2019

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]

TOPICS
Acrobat SDK and JavaScript
4.2K
Translate
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

correct answers 1 Correct answer

LEGEND , Apr 04, 2019 Apr 04, 2019

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

Translate
LEGEND ,
Apr 04, 2019 Apr 04, 2019

What environment?

- Web server?

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

- Background task?

- Users with Acrobat Reader only?

- Other?

Translate
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
New Here ,
Apr 04, 2019 Apr 04, 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?

Translate
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 ,
Apr 04, 2019 Apr 04, 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.307...

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
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
New Here ,
Apr 04, 2019 Apr 04, 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 ?

Translate
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 ,
Apr 04, 2019 Apr 04, 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
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
New Here ,
Apr 04, 2019 Apr 04, 2019

Thanks for your response. Please advise if you have any samples in C# on how to use InterApplication Communication API.

Translate
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
LEGEND ,
Apr 04, 2019 Apr 04, 2019

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

Translate
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 ,
Apr 04, 2019 Apr 04, 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
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
New Here ,
Apr 04, 2019 Apr 04, 2019
LATEST

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

Translate
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