0
Files
src/pdf
Hui Yingst c647be6cd2 Add back-end support for PDF attachments in PDFEngine.
1. Create a new struct DocumentAttachmentInfo, which contains basic
   information about a PDF attachment, including the attachment's name,
   size, creation date and last modified date.

2. Implement a method GetDocumentAttachmentInfoList() in PDFEngine,
   which returns a list of DocumentAttachmentInfo structure(s)
   associated with a PDF document.

3. Add 2 unit tests for the new method. To test on PDFs with
   attachments, this CL uploads a test PDF embedded_attachments.pdf,
   which contains 3 attachments: 1.txt, attached.pdf and 附錄.txt.
   These 3 attachments can cover the tests on different file types and
   names, and tests on attachments with no creation dates or last
   modified dates.

Bug: 177188
Change-Id: If6eaa61f64407af9c848fe2b3b814aa83fc23495
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202510
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Hui Yingst <nigi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#773244}
2020-05-29 17:35:38 +00:00
..