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
Create Simple Text PDF
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 20
- Joined: Fri May 20, 2005 5:39 pm
- Location: Conifer, CO USA
-
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Create Simple Text PDF
You should have sample called "CExamp" where you can find ex_text.cpp file that demonstrates how to create PDF with text.
HTH
HTH
Tracker Software (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.
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.