From 54a4214c86bc790cc2a3ae454b1aa709e868fa1a Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Mon, 24 Jul 2017 16:40:54 -0400 Subject: Basic APIs and tests for adding attachments 1. Added APIs for adding attachments, setting attachment files, and modifying attachment dictionary entries. * Added two embedder tests covering all new APIs. Bug=pdfium:174 Change-Id: I65f43cd6ca4887b71f9f7bcee64a87ba6b7e2706 Reviewed-on: https://pdfium-review.googlesource.com/8671 Commit-Queue: Jane Liu Reviewed-by: Lei Zhang Reviewed-by: dsinclair --- fpdfsdk/fpdfview_c_api_test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fpdfsdk/fpdfview_c_api_test.c') diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index 97bacbba54..95a0175999 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -66,11 +66,14 @@ int CheckPDFiumCApi() { // fpdf_attachment.h CHK(FPDFDoc_GetAttachmentCount); + CHK(FPDFDoc_AddAttachment); CHK(FPDFDoc_GetAttachment); CHK(FPDFAttachment_GetName); CHK(FPDFAttachment_HasKey); CHK(FPDFAttachment_GetValueType); + CHK(FPDFAttachment_SetStringValue); CHK(FPDFAttachment_GetStringValue); + CHK(FPDFAttachment_SetFile); CHK(FPDFAttachment_GetFile); // fpdf_dataavail.h -- cgit v1.2.3