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. |