This function creates a new PDF page for the hMPIDoc.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_PDF_doc_create_new_page( HMIGEAR hMPIDoc, LONG nAfterPage, LPAT_PDF_FIXEDRECT lpMediaBox ); |
Name | Type | Description |
---|---|---|
hMPIDoc | HMIGEAR | The document in which the page is created. |
nAfterPage | LONG | The page number after which the new page is inserted. The first page is 0. Use IG_PDF_BEFORE_FIRST_PAGE to insert the new page at the beginning of a document. |
lpMediaBox | LPAT_PDF_FIXEDRECT | Rectangle specifying the page's media box, specified in user space coordinates. |
Error count.
This function does not process image pixels.
The new PDF page is created at the specified position.
To obtain a handle to the PDF page, use the following:
Copy Code
|
|
---|---|
HIGEAR hNewPage = NULL; IG_mpi_page_get(m_hMPDoc, nAfterPage+1, &hNewPage); HIG_PDF_PAGE hNewPDFPage = NULL; IG_vector_data_get( hNewPage, (LPVOID*)&hNewPDFPage ); |