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

c# Creating PDF Files Using Acrobat dll

Guest
Mar 31, 2016 Mar 31, 2016

At my organization, all computers have Acrobat Pro installed. So my understanding is that I do not need to use the Acrobat SDK to create PDF files. The company does not want to buy the Acrobat SDK or use any third party tools.

I am having a hard time finding any examples or documentation on how to create pdf files with C#. I have added a reference to the Acrobat Type Library in my C# application. But I am not sure where to go from there. I did this several years ago in Microsoft Access VBA, but I no longer have that code to try to adapt it to C#.

My question is, can someone please provide an example of a C# method that takes a string object and uses the text of the string to create a PDF document and then save the document to a windows folder? Also, how do I create the Acrobat application and document objects and properly close them? I remember from VBA that they had to be closed before they were destroyed.

I have tried looking at the Adobe Forums. I have also spent several hours on Google. I figured that this would be a great place to ask for help. Thanks.

David

TOPICS
Acrobat SDK and JavaScript , Windows
3.3K
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 ,
Mar 31, 2016 Mar 31, 2016

‌Try the forum for Acrobat SDK.

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 ,
Mar 31, 2016 Mar 31, 2016
LATEST

Your understanding is quite wrong. The Acrobat SDK is exactly what you need. I'm not sure what you think the Acrobat SDK is... perhaps you are thinking of the Adobe PDF Library.

The Acrobat SDK is a collection of documentation and examples, giving the information and resources needed by all programmers wanting to work with Acrobat. So it is ONLY useful to people with Acrobat. The Acrobat SDK doesn't create PDF files, it tells you how you can use Acrobat to do this. The SDK is free.

However, if you want to create a PDF containing a page with a single string, that's not an especially straightforward task.

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