Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "public/fpdf_attachment.h"
#include <limits.h>
#include <memory>
#include <utility>
#include "constants/stream_dict_common.h"
#include "core/fdrm/fx_crypt.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fpdfdoc/cpdf_filespec.h"
#include "core/fpdfdoc/cpdf_nametree.h"
#include "core/fxcrt/cfx_datetime.h"
#include "core/fxcrt/data_vector.h"
#include "core/fxcrt/fx_extension.h"
#include "core/fxcrt/fx_memory_wrappers.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "third_party/base/numerics/safe_conversions.h"
Go to the source code of this file.
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().