Hi!
Thank you for this solution!
I thave the same task - convert pdf to png or jpeg.
Tried to save PNG to file png
Stream := TMemoryStream.Create;
try
Stream.Write(PNG[0], Length(PNG));
Stream.Position := 0; // Reset stream position to the beginning
Png2 := TPngObject.Create;
try
Png2.LoadFromStream(Stream);
Png2.SaveToFile('C:\Users\user\Desktop\tm\Image.png');
finally
Png2.Free;
end;
finally
Stream.Free;
end;
but got an error on screenshot that format is not correct
I do not use
htoffice
because it is very expensive
I use ActiveX
Can it be because of this fact?
thank you in reply