ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageENIO.SaveToFilePDF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

JohnnyT

USA
21 Posts

Posted - Jun 21 2011 :  13:50:08  Show Profile  Reply
Does this method support multi-page PDF's.

I am trying to use it by loading a multipage tif, then saving to a PDF.
I only get a PDF that contains the first page.

Thanks for any help you may be able to provide.

John

fab

1310 Posts

Posted - Jun 21 2011 :  13:59:04  Show Profile  Reply
This is an example (from the help file) using TImageEnView:

ImageEnView1.IO.CreatePDFFile( 'output.pdf' );

// load and save page 1
ImageEnView1.IO.LoadFromFile('page1.tiff');
ImageEnView1.IO.Params.PDF_Compression:= ioPDF_G4FAX; // G4Fax compression
ImageEnView1.IO.SaveToPDF;

// load and save page 2
ImageEnView1.IO.LoadFromFile('page2.tiff');
ImageEnView1.IO.Params.PDF_Compression:= ioPDF_G4FAX; // G4Fax compression
ImageEnView1.IO.SaveToPDF;

..other pages..

// close PDF file
ImageEnView1.IO.ClosePDFFile;



This is an example (still copied from the help file...) using TImageEnMView:


// load a multipage TIFF and save back to a multipage PDF file
ImageEnMView.MIO.LoadFromFile('multipage.tiff');
ImageEnMView.MIO.SaveToFilePDF('output.pdf');

Go to Top of Page

JohnnyT

USA
21 Posts

Posted - Jun 22 2011 :  08:05:51  Show Profile  Reply
Fabrizio,

Sorry that I missed this in the help file.

It works like a charm now.

Thanks very much.

John
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: