Generate PDf with Adobe Acrobat

RIAS
RIAS used Ask the Experts™
on
Hello,
Any suggestion on how I can use Adobe in my vb.net app  to generate PDF from system.bytes(memory Stream).

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
There is no command line for Acrobat that you can call. Can you consider creating the PDF directly in VB?

http://vb.net-informations.com/files/create-pdf.htm
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Don't see why you would create a PDF form a memory steam because it probably already is a PDF, just a byte array that needs to be saved as a file.

Anyways, for anything coding related, you need to use the Adobe PDF SDK
https://www.adobe.com/devnet/pdf/library.html

Author

Commented:
Thanks Shaun,

We have images saved in SQl server table in the type system.bytes. We need to export these images to PDF. Can I create a PDF portfolio from these system.byte?
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Okay, so you should convert the memory stream to bitmap/image object and save it using the Adobe PDF  library.

I have only used these libraries, not Adobe, unfortunately.
https://www.gemboxsoftware.com/pdf/examples/
https://github.com/itext/itextsharp

Author

Commented:
Thanks ! Will wait for an expert comment on PDF portfolio.

Thanks
Developer & EE Moderator
Fellow 2018
Most Valuable Expert 2013
Commented:
I am not a .net deveopler, but I found this previous post that may get you started in creating a pdf portfolio from your code, https://www.experts-exchange.com/questions/23796397/Combine-PDFs-in-NET-to-make-PDF-Package-not-merge-PDF-documents.html#a22671183.  Perhaps Shaun can take you the rest of the way.
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Hi Scott, yes that uses iTextSharp but OP insist using Adobe
Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013

Commented:
To clarify, do you want to use the adobe sdk in your application and this will be targeted only for users that have licensed adobe acrobat on their  machine and following the documentation here https://www.adobe.com/devnet/acrobat/overview.html?

Author

Commented:
Hi Scott!
Yes, I have a licence of The SdK. Just need a link or blog to show how I can achieve the task.
Thanks
Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013

Commented:
It looks like you have a couple of choices. The PDF Library SDK       or the Acrobat SDK.  Adobe has a comparison chart  https://www.adobe.com/devnet/pdf/library.html  Then some more specific sdk help https://www.adobe.com/devnet/acrobat.html with some samples https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FSnippet_WritingSnippets%2FWriting_Snippets.htm.

It does look like you will have an easier time generating the pdf's from third party libraries such as those already pointed out though.

Author

Commented:
Thanks Scott! Will try and brb

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial