Avatar of edfrazier
edfrazier

asked on 

Creating a PDF file in vb.net

I am trying to write a vb.net program that will create posters dynamically.  I would like to print the posters on 11x17 posterboard.  I was told the best way to do this is to create a pdf file and then just send that to a printer.  My question is what do I use to create a pdf file?  My program would need to take 8 images and place them in a set postion on the 11x17.  4 on the front and 4 on the back.  I also need to add a caption under each image.  So my program would select 8 rows from my database.  Each row would have the image directory and the caption, I would then have to put them in the pdf and save the file for print.  I can do the database stuff but I do not know what tools to use to create the image.  Does anyone know how the best way to create the pdf?  Do I need to create a "pdf template" and just place my images on some kind of tag?   sample code would help if possible.
Editors IDEsMicrosoft DevelopmentVisual Basic.NET

Avatar of undefined
Last Comment
MR_Stefans
Avatar of fhlio_admin
fhlio_admin
Flag of United States of America image

You have a few options for this.

Adobe would like you buy a license of Adobe Acrobat.  There is functionality to be able to create PDFs through DLLs when you purchase the full version.
http://www.adobe.com/devnet/acrobat/?navID=gettingstarted

Sun's OpenOffice has PDF functionality and is a completely free office set.
http://wiki.services.openoffice.org/wiki/API/Tutorials/PDF_export

If you are looking for a software that will simply create PDFs for you, try CutePDF.
http://www.cutepdf.com/Products/CutePDF/writer.asp
Avatar of edfrazier
edfrazier

ASKER

Looking real quick at the links, it seems like the adobe API is for C/C++ I am a vb.net programmer.  The other two links are for pdf converters, they do not seem to be able to "create" documents.  I am not sure what issue this will create, I will have to look a little more into it.  I was hoping to create the docs, not convert them.  
ASKER CERTIFIED SOLUTION
Avatar of Deepak_Syd
Deepak_Syd
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of edfrazier
edfrazier

ASKER

The ABCpdf looks good.  Have you used it?  Looking through the help it shows images as 72 dpi output.  Since I am doing print, do you know if it can do 300 dpi for images?  I do not see anything about that.
Avatar of Howard Cantrell
Just wondering, where is this ABC.pdf you are talking about?
Avatar of edfrazier
edfrazier

ASKER

I was hoping to find some samples but this is a good start for me!  thanks
Avatar of digcha
digcha
Flag of Sweden image

Hi,

Here is a solution that i have used many time and best of all its free and 100% customizable.
http://www.codeproject.com/KB/graphics/giospdfnetlibrary.aspx

This actually allowed me to create quite good quality, optimized pdfs. Also, you may look at http://www.siberix.com/ for the commercial componnet. I used version 4.0 and it works well too.

It lets you get access to familiar .NET graphics API to draw on a PDF page :)

Hope it helps.
Avatar of MR_Stefans
MR_Stefans

For those of u who hasn't C# installed to compile the sourcecode. Here is the  DLL-file. Just remove the TXT-extension.
Gios-Pdf.NET.dll.txt
Avatar of MR_Stefans
MR_Stefans

Forgot this one... Same as before, remove, TXT-extension
ICSharpCode.SharpZipLib.dll.txt
Visual Basic.NET
Visual Basic.NET

Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,

96K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo