Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_attachment.cpp File Reference

(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)

+ Include dependency graph for fpdf_attachment.cpp:

Go to the source code of this file.

Functions

FPDF_EXPORT int FPDF_CALLCONV FPDFDoc_GetAttachmentCount (FPDF_DOCUMENT document)
 
FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV FPDFDoc_AddAttachment (FPDF_DOCUMENT document, FPDF_WIDESTRING name)
 
FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV FPDFDoc_GetAttachment (FPDF_DOCUMENT document, int index)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFDoc_DeleteAttachment (FPDF_DOCUMENT document, int index)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAttachment_GetName (FPDF_ATTACHMENT attachment, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_HasKey (FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key)
 
FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV FPDFAttachment_GetValueType (FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_SetStringValue (FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key, FPDF_WIDESTRING value)
 
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAttachment_GetStringValue (FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key, FPDF_WCHAR *buffer, unsigned long buflen)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_SetFile (FPDF_ATTACHMENT attachment, FPDF_DOCUMENT document, const void *contents, unsigned long len)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_GetFile (FPDF_ATTACHMENT attachment, void *buffer, unsigned long buflen, unsigned long *out_buflen)
 

Function Documentation

◆ FPDFAttachment_GetFile()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_GetFile ( FPDF_ATTACHMENT attachment,
void * buffer,
unsigned long buflen,
unsigned long * out_buflen )

Definition at line 261 of file fpdf_attachment.cpp.

References CPDFObjectFromFPDFAttachment().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and WriteAttachments().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAttachment_GetName()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAttachment_GetName ( FPDF_ATTACHMENT attachment,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 125 of file fpdf_attachment.cpp.

References CPDFObjectFromFPDFAttachment(), CPDF_FileSpec::GetFileName(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and WriteAttachments().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAttachment_GetStringValue()

FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAttachment_GetStringValue ( FPDF_ATTACHMENT attachment,
FPDF_BYTESTRING key,
FPDF_WCHAR * buffer,
unsigned long buflen )

Definition at line 183 of file fpdf_attachment.cpp.

References CPDFObjectFromFPDFAttachment(), CPDF_String::GetString(), fxcrt::WideString::IsEmpty(), CPDF_String::IsHex(), fxcrt::ByteString::operator==(), and Utf16EncodeMaybeCopyAndReturnLength().

Referenced by CheckPDFiumCApi(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAttachment_GetValueType()

FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV FPDFAttachment_GetValueType ( FPDF_ATTACHMENT attachment,
FPDF_BYTESTRING key )

Definition at line 149 of file fpdf_attachment.cpp.

References CPDFObjectFromFPDFAttachment(), and FPDFAttachment_HasKey().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAttachment_HasKey()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_HasKey ( FPDF_ATTACHMENT attachment,
FPDF_BYTESTRING key )

Definition at line 138 of file fpdf_attachment.cpp.

References CPDFObjectFromFPDFAttachment().

Referenced by CheckPDFiumCApi(), FPDFAttachment_GetValueType(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAttachment_SetFile()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_SetFile ( FPDF_ATTACHMENT attachment,
FPDF_DOCUMENT document,
const void * contents,
unsigned long len )

Definition at line 213 of file fpdf_attachment.cpp.

References CPDF_Object::AsMutableDictionary(), CPDFDocumentFromFPDFDocument(), CPDFObjectFromFPDFAttachment(), fxcrt::ByteString::Format(), CFX_DateTime::GetDay(), CFX_DateTime::GetHour(), CFX_DateTime::GetMinute(), CFX_DateTime::GetMonth(), CFX_DateTime::GetSecond(), CFX_DateTime::GetYear(), pdfium::stream::kDL, and CFX_DateTime::Now().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFAttachment_SetStringValue()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_SetStringValue ( FPDF_ATTACHMENT attachment,
FPDF_BYTESTRING key,
FPDF_WIDESTRING value )

Definition at line 160 of file fpdf_attachment.cpp.

References ByteStringFromFPDFWideString(), CPDFObjectFromFPDFAttachment(), fxcrt::ByteString::operator=(), and fxcrt::ByteString::operator==().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFDoc_AddAttachment()

FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV FPDFDoc_AddAttachment ( FPDF_DOCUMENT document,
FPDF_WIDESTRING name )

Definition at line 66 of file fpdf_attachment.cpp.

References CPDFDocumentFromFPDFDocument(), fxcrt::WideString::IsEmpty(), pdfium::stream::kF, and WideStringFromFPDFWideString().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFDoc_DeleteAttachment()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFDoc_DeleteAttachment ( FPDF_DOCUMENT document,
int index )

Definition at line 112 of file fpdf_attachment.cpp.

References CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFDoc_GetAttachment()

FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV FPDFDoc_GetAttachment ( FPDF_DOCUMENT document,
int index )

Definition at line 95 of file fpdf_attachment.cpp.

References CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi(), and WriteAttachments().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFDoc_GetAttachmentCount()

FPDF_EXPORT int FPDF_CALLCONV FPDFDoc_GetAttachmentCount ( FPDF_DOCUMENT document)

Definition at line 56 of file fpdf_attachment.cpp.

References CPDFDocumentFromFPDFDocument().

Referenced by CheckPDFiumCApi(), and WriteAttachments().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: