ImageGear for C and C++ on Windows v20.0 - Updated
IG_PDF_doc_create
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_DOC > IG_PDF_doc_create

This function creates a PDF document and attaches it to HMIGEAR.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_doc_create(
        HMIGEAR hMPIDoc
);

Arguments:

Name Type Description
hMPIDoc HMIGEAR ImageGear document to which to attach a PDF document.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

This function does not do anything if hMPIDoc is already vector document.

To obtain a handle to the PDF document, use the following:

 
Copy Code
 HIG_PDF_DOC hPDFDoc = (HIG_PDF_DOC)NULL;
        IG_mpi_info_get( hMPIDoc, IG_MP_DOCUMENT, &hPDFDoc, sizeof(hPDFDoc) );
Is this page helpful?
Yes No
Thanks for your feedback.