Create Simple Text PDF

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

dblwizard
User
Posts: 20
Joined: Fri May 20, 2005 5:39 pm

Create Simple Text PDF

Post by dblwizard »

I'm looking for some code to create a simple page that says something like 'Image' 'Unavailable' in the center of the page. The text needs to be able to have at least 2 lines and possibly three lines ... would contain CR & LF to designate line breaks

I have a program that needs to generate this on the fly when an image that should exist but doesn't. The sample code I looked at in the example that came with PDF Tools is pretty convoluted and was wondering if somebody might have a better sample.

This is a one page document.

Thanks

dbl
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3604
Joined: Thu Jul 08, 2004 10:36 pm

Re: Create Simple Text PDF

Post by Ivan - Tracker Software »

You should have sample called "CExamp" where you can find ex_text.cpp file that demonstrates how to create PDF with text.

HTH
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.