You are not logged in.
Pages: 1
can someone help?
hi, below code used.
pdfDoc :TPdfDocument;
pdfpage :TPdfpage;
JpegImage:TJpegImage;
pdfImage :TPdfImage;
//=======
pdfDoc := TPdfDocument.Create;
pdfDoc.Info.Author := 'Sergio';
pdfDoc.Info.Creator := 'Brazil';
pdfDoc.NewDoc;
for i:=0 to frmPdf.listview1.items.count-1 do
begin
JpegImage := TJpegImage.Create;
JpegImage.LoadFromFile(caminhoJPG);
pdfpage.PageWidth := Round(JpegImage.Width * 0.24001); // for image 300dpi
pdfpage.PageHeight:= Round(JpegImage.Height * 0.24001);
pdfImage := TPdfImage.Create(pdfDoc, JpegImage,true);
pdfDoc.AddXObject('image'+ inttostr(contador+1), pdfimage);
pdfDoc.Canvas.DrawXObject(0,0,pdfpage.PageWidth,pdfpage.PageHeight,'image'+inttostr(contador+1));
JpegImage.Free;
end;
pdfDoc.SaveToFile(caminhoSalva+'\'+ copiaNome + '.pdf');
pdfDoc.Free;
Hello,
I would like to position (rotate) the JPG always in Horizontal (with choice), I would like to know the code?
prong the 300dpi JPG always, if it is 100 dpi, 300 dpi to increase.
Pages: 1