Moderators:TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
I need to add an image to my PDF page via a Delphi bitmap. AddImageFromStream seems to be the right call but I can't figure out how to get the bitmap stream into your IStream interface. Can you show me how? Or is there a better call?
function TMyPDF.BitmapToImage(B: TBitmap): IPXC_Image;
var
MS: TMemoryStream;
AStream: IStream;
begin
if Assigned(FDoc) then
begin
MS := TMemoryStream.Create;
try
B.SaveToStream(MS);
//How do I assign MS to AStream????
Result := FDoc.AddImageFromStream(AStream, 0, 0);
finally
MS.Free;
end;
end;
end;