#include "pdf/pdfium/pdfium_document_metadata.h"
#include <stddef.h>
#include <string>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "pdf/document_metadata.h"
#include "pdf/pdf_utils/dates.h"
#include "pdf/pdfium/pdfium_api_string_buffer_adapter.h"
#include "third_party/pdfium/public/fpdf_doc.h"
#include "third_party/pdfium/public/fpdf_formfill.h"
#include "third_party/pdfium/public/fpdfview.h"
namespace chrome_pdf {
namespace {
std::string GetTrimmedMetadataByField(FPDF_DOCUMENT doc,
FPDF_BYTESTRING field) { … }
PdfVersion GetDocumentVersion(FPDF_DOCUMENT doc) { … }
}
DocumentMetadata GetPDFiumDocumentMetadata(FPDF_DOCUMENT doc,
size_t size_bytes,
size_t page_count,
bool linearized,
bool has_attachments) { … }
}