PDF programatically

Status
Not open for further replies.

Sheriff

Ars Tribunus Militum
1,841
Stay away from AcitvePDF Toolkit. Some dumbass at work decided to rely on thier shitty buggy system and we are stuck without any (virtually) support after paying big bucks for the server. Any code that we have that uses it is a jumbled unmaintainable beast that will go down for good when it breaks.

aside.:Right now its on the list to redo.

I know that didnt help your question specifically, but its atleast a warning
 
I'm sorta glad you posted that, Sheriff. I just recently had to do a dynamic PDF project and ActivePDF Toolkit was the first thing I looked at. I couldn't for the life of me figure out how to use it. The documentation was dense (and that's being nice).

I ended up going for a very direct solution. I needed to generate a PDF from data being passed by ColdFusion. I found a custom tag for ColdFusion that allowed direct access to a program called HTMLDoc. HTMLDoc could take HTML code and make a PDF out of it. So I went through a few cumbersome steps to get what I wanted, but it was still tons easier than trying to figure out ActivePDF.
 

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
Well...if you have a couple of grand to throw at the problem...say $10000 to $12000 then you might want to check out software called Miramo. I use it here everyday at work, and although it's a pain in the ass to use, it's kinda nifty what it does. It's a "database publishing solution" with a full macro language. You'd also need Adobe Framemaker to use it, but it's a nifty little app.

Of course, If I would love to check out all the other PDF tools now that I've spent 8 months with Miramo as they might have been easier to use...and a lot cheaper for the company I'm programming for.

Mike
 

puppybane

Wise, Aged Ars Veteran
119
I suppose that it is my duty to mention that, if you were programming under OS X, that anything that can be drawn on the screen can be turned into PDF with a function call or two. Quite easy. I don't remember the exact names, though. Also, I have this feeling that you aren't running this on a mac. GNUStep may have something similar, though. If nothing else, they should have objects that can convert things to PostScript, and there are unix tools around that can convert postscript to pdf.
 
What I'm trying to do is batch process many files (300+ per day). The process that needs to take place:

Read Media/Crop Box, Enlarge by 1 inch, centering page, add a dashed line at trim box, solid line at bleed box, add a text object that includes the filename and date and file path at bottom right, add a Logo at bottom right, then print to a color laser printer.

I've looked into PDFlib and a few others. I've started writing code from scratch to use the update method described in the PDF Reference Manual.

Anyone done anything similar. Or at least updated the PDF file. I have some questions concerning the updating of objects and xref tables.

Thanks,
dla
 

pelican

Wise, Aged Ars Veteran
184
I've been working with the PHP pdf library, and it's a royal f**king pain in the ass to do anything that's not completely straightforward.

Although people are working towards the right direction with this stuff, I don't think it's ready for prime-time.

The data format's a pain, although it's not even close to as much of a pain as ESRI shapefiles... ;)

--pelican
 

daustin777

Seniorius Lurkius
14
I wrote an Acrobat plugin that enlarges the document (to make room for the label) then places the date onto the document.
The problem I'm having is to have the proper CURRENT date and time. I get the time that the plugin is compiled and no date. It also is not local time. Anyone know what is wrong? I'm using API call

AVSysAllocTimeStringFromTimeRec

I always get the same text. Do I need to initialize this or am I going about this the wrong way.
dla
 
Status
Not open for further replies.