diff options
author | Mike Reed <reed@google.com> | 2017-12-14 13:25:04 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-14 21:20:27 +0000 |
commit | a4daf193196c6da63b1c16e3490cad3c5ca6bf8b (patch) | |
tree | da83a9b8ffeb0b07ffb5fdc87705d25c242c5b1c /tools/shape | |
parent | dbd43481f1da3c9c87f5d913660f216ec531870a (diff) |
Moving extra options/parameters into PDFMetadata
Bug: skia:
Change-Id: I29aa69e5765a7f8ba05b0361912d1f5276d77de3
Reviewed-on: https://skia-review.googlesource.com/84501
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tools/shape')
-rw-r--r-- | tools/shape/using_skia_and_harfbuzz.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/shape/using_skia_and_harfbuzz.cpp b/tools/shape/using_skia_and_harfbuzz.cpp index 248160cda4..533fd1e10d 100644 --- a/tools/shape/using_skia_and_harfbuzz.cpp +++ b/tools/shape/using_skia_and_harfbuzz.cpp @@ -171,8 +171,7 @@ private: //////////////////////////////////////////////////////////////////////////////// -static sk_sp<SkDocument> MakePDFDocument(const Config &config, - SkWStream *wStream) { +static sk_sp<SkDocument> MakePDFDocument(const Config &config, SkWStream *wStream) { SkDocument::PDFMetadata pdf_info; pdf_info.fTitle = config.title.value.c_str(); pdf_info.fAuthor = config.author.value.c_str(); @@ -186,7 +185,7 @@ static sk_sp<SkDocument> MakePDFDocument(const Config &config, pdf_info.fCreation.fDateTime = now; pdf_info.fModified.fEnabled = true; pdf_info.fModified.fDateTime = now; - pdfa = true; + pdf_info.fPDFA = true; #endif return SkDocument::MakePDF(wStream, pdf_info); } |