Hi
I tested it with the following code and found that the generated pdf document is very large, about 8M, but the total of 1.jpeg and 2.jpeg is only about 200kb.
I did not use PDF_Compression for compression, because it will slow down the speed of PDF generation. Is there a better way to increase the speed of PDF generation while being able to use relatively small generated documents.
var
IO: TImageEnIO;
begin
IO := TImageEnIO.Create(NIL);
IO.CreatePDFFile('test.pdf');
try
IO.LoadFromFile('1.jpeg');
IO.Params.PDF_PaperSize := iepA3;
//IO.Params.PDF_Compression := ioPDF_JPEG;
IO.SaveToPDF;
IO.LoadFromFile('2.jpeg');
IO.Params.PDF_PaperSize := iepA3;
//IO.Params.PDF_Compression := ioPDF_JPEG;
IO.SaveToPDF;
finally
IO.ClosePDFFile;
IO.Free;
end;
end;