Title: Re: [PDFdev] Adding images
At 5:40 PM +0200 10/29/03, [EMAIL PROTECTED] wrote:
>>Are you doing this from a plugin?
No, I am coding the PDF document from scratch using VB.

        Oh, the hard way!


I have been able to add text, and graphics such as lines and rectangles, but I havent been able to figure out how to add an image

        Image are tough - not because of the PDF file format, but because you will need to support parsing each image file format into a generalized "bitmap" and then putting those bits into the PDF correctly.


My main concern is how is the image objects organised?
In which object do I specify the image that must appear on a page? In the page's resource dictionary, i specify the object that hods the pages' content in a stream, such as text. However, if I add the image object to the contents array, all i get is a grey page?

        You create an XObject of /Subtype /Image.  You add that to the /Resources of each /Page that uses it.

        Then inside the content stream of each page, you just use the /Do operator.


Leonard
-- 
---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-629-3700 (voice)
                                             215-629-0789 (fax)



Reply via email to