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.h File Reference

(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)

#include "fpdfview.h"
Include dependency graph for fpdf_attachment.h:
This graph shows which files directly or indirectly include this file:

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 267 of file fpdf_attachment.cpp.

References CPDFObjectFromFPDFAttachment().

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_GetName()

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

Definition at line 110 of file fpdf_attachment.cpp.

References CPDFObjectFromFPDFAttachment().

Referenced by CheckPDFiumCApi(), TEST_F(), 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 172 of file fpdf_attachment.cpp.

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

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), 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 135 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 124 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 212 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, CPDF_String::kIsHex, 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 146 of file fpdf_attachment.cpp.

References ByteStringFromFPDFWideString(), CPDFObjectFromFPDFAttachment(), 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 50 of file fpdf_attachment.cpp.

References CPDFDocumentFromFPDFDocument(), 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 97 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 80 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 40 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: