DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index) { CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); if (!pDoc || page_index < 0 || page_index >= pDoc->GetPageCount()) return; pDoc->DeletePage(page_index); }
DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index) { CPDF_Document* pDoc = (CPDF_Document*)document; if (pDoc == NULL) return; if (page_index < 0 || page_index >= pDoc->GetPageCount()) return; pDoc->DeletePage(page_index); }