BOOL32 __stdcall pdfCreateNewPDFA(PPDF IPDF, const char* OutPDF);
BOOL32 __stdcall pdfCreateNewPDFW(PPDF IPDF, const wchar_t* OutPDF);
function pdfCreateNewPDFA(const IPDF: PPDF; const OutPDF: PAnsiChar): LongBool; stdcall;
function pdfCreateNewPDFW(const IPDF: PPDF; const OutPDF: PWideChar): LongBool; stdcall;
Purpose. Open an output file for an already-created document handle (from pdfNewPDF) — the second half of the classic two-step LumasPDF document-creation sequence.
Description. A thin wrapper over OpenOutputFile, the same implementation backing pdfOpenOutputFile (Document Lifecycle) — this entry point exists purely as an alternate, convention-familiar name/calling convention; there is no behavioral difference from pdfOpenOutputFile beyond the name.
Parameters.
| Parameter | Description |
|---|---|
IPDF | An existing document handle from pdfNewPDF. |
OutPDF | Output file path. |
Return value. True if the output file opened successfully; False otherwise.
See also. pdfOpenOutputFile.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Object Creation
pdfCreateNewPDFA
pdfCreateNewPDFW
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.