Hi,
I experiment with the TadvPDFLib component and it is easy to use and useful for me..
However, the possibility to rotate a picture is missing. (I do not know in each end)
In my case, I read tif files and depending on the paper size of the drawing it should be rotated 90 degrees or not.
Is there a solution to my problem?
If not, it is possible to place this option on the wish list.
With Kind Regards,
Frans
Some easy code:
var
pic: TPicture;
p: TadvPDFLib;
begin
P := TadvPDFLib.Create;
try
p.BeginDocument('TestPdf.pdf');
p.NewPage;
pic := TPicture.Create;
pic.LoadFromFile('D:\Delphi XEx Projects\PDM Pdf test\Images\950347A.tif');
//missing something like this:
p.Graphics.DrawImage(pic, RectF(0, 200, 600, 400), "rotate 90 deg");
p.EndDocument(true);
finally
pic.Free;
p.Free;
end;
At this moment there is unfortunately no built-in image rotation support. That is a good suggestion though for a future update that we will consider.
Thank you for the reply. I'm looking forward to the update so I can make my application. It is very important for me to rotate the pictures in this case.
Sincerely,
Frans