API reference › Import & Output APIs
pdfGetDocumentFileName
Returns the output path passed to pdfCreateNewPDF…/pdfOpenOutputFile (empty for in-memory output), as an instance-owned string; NULL on an invalid handle.
Returns the output path passed to pdfCreateNewPDF…/pdfOpenOutputFile (empty for in-memory output), as an instance-owned string; NULL on an invalid handle.
C
const char* __stdcall pdfGetDocumentFileNameA(PPDF IPDF); /* bare = ANSI */
const wchar_t* __stdcall pdfGetDocumentFileNameW(PPDF IPDF);
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern IntPtr pdfGetDocumentFileNameW(IntPtr IPDF);
public static extern IntPtr pdfGetDocumentFileName(IntPtr IPDF);
public static extern IntPtr pdfGetDocumentFileNameA(IntPtr IPDF);
Area
Import & Output APIs
Category
Getters
Exported names
pdfGetDocumentFileNameW
pdfGetDocumentFileName
pdfGetDocumentFileNameA
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.