Dear Support,
I am seeking a way to add vector graphics and to save it over a PDF with the help of your WPViewPDF.
I have tried your examle code from here http://www.wpcubed.com/manuals/wpview…es_to_pages.htm with both Scaling parameters (0 - like in the example, 72 - like in the recommendations) , but with no success so far -- no stemped MetaFile is seen...
Could you please have a look and say what's wrong? Should I send you PDFs?
procedure TForm1.Button2Click(Sender: TObject);
var
Metafile1 : TMetafile;
begin
Metafile1 := TMetafile.Create;
try
Metafile1 := WPViewPDF1.GetMetafile(0);
// Metafile1.SaveToFile('c:\temp\pdftowmf.wmf'); // gives a nice wmf
// WPViewPDF2.Command( COMPDF_StampMetafile_Scaling, 0 );
WPViewPDF2.Command( COMPDF_StampMetafile_Scaling, 72 );
if Metafile1<>nil then
begin
WPViewPDF2.CommandStrEx (COMPDF_StampMetafile, '1', MetaFile1.Handle);
WPViewPDF2.Plus.SaveToFile('c:\temp\test_modified.pdf');
end;
finally
Metafile1.Free;
end;
end;
FYI: WPDFVIEW License owner : Aiiti Gmbh
Many thanks for advance.
Sinserely,
Olena Vladykina