Can I embed PDF driver in a Rev stack built for distribution?

Claus Dreischer claus at dreischer.de
Thu Jan 30 14:41:00 EST 2003


Ray Bennett wrote:
> Very clever idea, Geoff!  Thanks!  I'll give it a go.
> 
> What about an image reference within PDF?  For instance, if I wanted to 
> change the logo on the letterhead, but could guarantee that it was 
> exactly the same size logo everytime?   Don't want to change this into a 
> PDF thread, but if there's a way to do that, it'd 100% solve my problem!

Hi Ray,

i don't think this will work.

PDF is a file with objects in it (like pictures, text, etc.)
One of this object is a reference object. Here are the offsets in BYTES 
to the other objects.

So changing one object (changing text, exchanging graphics) will fail 
when the new object has not the same size (in bytes) as the the old one.

Acrobat Reader can restore them sometimes when it can idetify the start 
token of each object. Maybe a "Save" can produce a correct PDF then.


Regards,
	Claus.

PS: This time it's for the list. Sorry about my last eMail.



> Thanks gobs.
> Ray
> 
> On Wednesday, Jan 29, 2003, at 09:53 America/New_York, Geoff Canyon wrote:
> 
>> Many have made suggestions already, but just to throw another on the pile:
>>
>> If your printing format is just text in a PDF and is similar from one 
>> time to the next, it might be fairly straightforward to do this:
>>
>>   1. Create a document that looks the way you want it to. Wherever 
>> text needs to be placed, put an identifiable placeholder. Something 
>> like thisIsPlaceholderText1 should do.
>>   2. Print the document to PDF. Use whatever tools you like.
>>   3. Open the resulting PDF file and look for the placeholder text you 
>> included in the document.
>>   4. Use the PDF file as a template, and when you want to "print to 
>> PDF" just replace the placeholder text with the text you want to > print.
>>
>> This is probably impractical for anything more complicated that a 
>> standard business letter, but if that's what you want, it's probably 
>> possible.




More information about the use-livecode mailing list