GetMetafile method
<< Click to Display Table of Contents >> Navigation: Component Description > Methods > GetMetafile method |
Declaration
function GetMetafile(PageNO: Integer): TMetafile;
Description
This procedure is one of the most valuable in this library: it extracts a PDF page as metafile. You have to specify the page number as a value between 0 and PageCount-1.
We do not recommend this feature to create new PDF files. Instead the original PDF file should be saved.
Note: Use SetGlobalParameter('rotatemeta=1') if you need to extract metafiles with applied page rotation.
By default the rotation is ignored.
Alternatively Command(200000, 'rotatemeta=1') can be called. But please note, this setting is valid for all viewers.
Note: PageNo is 0 based.