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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Jpeg to PDF. Image too large on page

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wolfie89au Posted - Sep 24 2012 : 02:17:29
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.
3   L A T E S T    R E P L I E S    (Newest First)
wolfie89au Posted - Sep 24 2012 : 03:09:42
OK.

Thanks
xequte Posted - Sep 24 2012 : 02:26:26
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
wolfie89au Posted - Sep 24 2012 : 02:22:48
Actually using TImageEnView version 4.1.0.