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
 Jpeg to PDF. Image too large on page
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wolfie89au

Australia
3 Posts

Posted - Sep 24 2012 :  02:17:29  Show Profile  Reply
Using WPViewPDF version 3. Delphi 2007.
Trying to save jpg or Tif files to a PDF file. the images on the pdf document are page with when the original is 1/4 page width. This is all done by code.

TempName := ExtractFilePath(Application.EXEName) + 'Temp\' +
ExtractFileName(FileName);
copyFile(PChar(FileName), PChar(TempName), False);
imgView.IO.LoadFromFileJpeg(TempName);
imgView.IO.Params.PDF_Compression := ioPDF_LZW;
imgView.IO.Params.BitsPerSample := 1;
imgView.IO.Params.SamplesPerPixel := 1;
imgView.IO.SaveToFilePDF(ChangeFileExt(TempName, '.pdf'));

The image is saved to PDF but the small image is blown up to page width.
I have searched and not found a solution.

Any help to put me on the correct track would be appreciated.

wolfie89au

Australia
3 Posts

Posted - Sep 24 2012 :  02:22:48  Show Profile  Reply
Actually using TImageEnView version 4.1.0.
Go to Top of Page

xequte

38611 Posts

Posted - Sep 24 2012 :  02:26:26  Show Profile  Reply
Hi

I'm afraid at this time there is no functionality to control the layout of outputted PDF files (other than page size).



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wolfie89au

Australia
3 Posts

Posted - Sep 24 2012 :  03:09:42  Show Profile  Reply
OK.

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