New Document From Images - Example

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

ashley3289
User
Posts: 37
Joined: Wed Feb 10, 2010 10:58 pm

New Document From Images - Example

Post by ashley3289 »

Can you provide me with an example of how to programmatically create a new document from several jpeg images. Here is what I need to do and this needs to be done in code.

1. Add the list of images
2. Set the Options - Paper to Letter
3. Set all the margins to 0.25 inches
4. Set the Layout - Horizontal Alignment to left
5. Set the Layout - Vertical Alignment to top
6. Set the Downsampling High color to Bicubic
7. Save the document to a file.

Thanks,
Ashley
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: New Document From Images - Example

Post by Stefan - PDF-XChange »

Hello Ashley,

Please take a look at sections
2.2.1.30 NewDocumentFromImages
(for a sample in pseudocode on how to pass the list of images)
and
2.2.2.11.5.2 FromImages
(for the rest of the parameters you want to set)

Of the Viewer AX Manual, which I believe will guide you in the right direction.

Best,
Stefan