IPXC_Document::Info Property
From PDF XChange PDF SDK
Line 9: | Line 9: | ||
== Syntax == | == Syntax == | ||
<pre class="brush:cpp;gutter:false">HRESULT get_Info([out, retval] IPXC_DocumentInfo** pDocInfo); | <pre class="brush:cpp;gutter:false">HRESULT get_Info([out, retval] IPXC_DocumentInfo** pDocInfo); | ||
+ | </pre> | ||
+ | |||
+ | == Sample == | ||
+ | <pre class="brush:c#">//C# | ||
+ | private void ReadDocInfo(PDFXEdit.IPXC_Document Doc) | ||
+ | { | ||
+ | string sTitle = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Title]; | ||
+ | string sAuthor = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Author]; | ||
+ | string sProducer = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Producer]; | ||
+ | string sCreator = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Creator]; | ||
+ | string sSubj = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Subject]; | ||
+ | string sKeyw = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Keywords]; | ||
+ | } | ||
</pre> | </pre> | ||
== See Also == | == See Also == | ||
[[PXV:IPXC_Document|IPXC_Document]] | [[PXV:IPXC_Document|IPXC_Document]] |
Latest revision as of 04:19, 18 April 2016
Property Info of interface IPXC_Document returns Pointer to IPXC_DocumentInfo containing document information (creation/modification dates, info variable from the PDF structure).
Syntax
HRESULT get_Info([out, retval] IPXC_DocumentInfo** pDocInfo);
Sample
//C# private void ReadDocInfo(PDFXEdit.IPXC_Document Doc) { string sTitle = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Title]; string sAuthor = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Author]; string sProducer = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Producer]; string sCreator = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Creator]; string sSubj = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Subject]; string sKeyw = Doc.Info[PDFXEdit.PXC_DocumentInfoKey.DocInfo_Keywords]; }