Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Issue 1394263003: SkPDF: Optionally output PDF/A-2b archive format. (Closed)

Created:
5 years, 2 months ago by hal.canary
Modified:
5 years, 2 months ago
Reviewers:
tomhudson
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: Optionally output PDF/A-2b archive format. Note: this format does not yet pass validation tests. Add skia_pdf_generate_pdfa GYP flag. Default to off for now. PDF/A files are not reproducable, so they make correctness testing harder. Turn the Metadata struct into te SkPDFMetadata struct. This splits out a lot of functionality around both kinds of metadata. When PDF/A is used, add an ID entry to the trailer. Add SkPDFObjNumMap::addObjectRecursively. Test with GYP_DEFINES=skia_pdf_generate_pdfa=1 bin/sync-and-gyp ninja -C out/Release dm out/Release/dm --config pdf --src skp gm -w /tmp/dm With skia_pdf_generate_pdfa=0, all PDFs generated from GMs and SKPs are identical. With skia_pdf_generate_pdfa=1, all PDFs generated from GMs and SKPs render identically in Pdfium. BUG=skia:3110 Committed: https://skia.googlesource.com/skia/+/34422610ac22adceeabb66023120f27b96cae953

Patch Set 1 #

Patch Set 2 : works on windows #

Total comments: 36

Patch Set 3 : whitespace-only formatting fixes #

Patch Set 4 : comments from tom #

Patch Set 5 : mor comments from tom #

Patch Set 6 : 2015-10-12 (Monday) 11:49:14 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -78 lines) Patch
M gyp/common_variables.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/pdf.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gyp/pdf.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M src/doc/SkDocument_PDF.cpp View 1 2 3 7 chunks +43 lines, -67 lines 0 comments Download
M src/pdf/SkPDFBitmap.cpp View 1 2 1 chunk +6 lines, -8 lines 0 comments Download
A src/pdf/SkPDFMetadata.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A src/pdf/SkPDFMetadata.cpp View 1 2 3 4 5 1 chunk +350 lines, -0 lines 0 comments Download
M src/pdf/SkPDFTypes.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394263003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394263003/1
5 years, 2 months ago (2015-10-08 19:39:48 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-08 19:46:50 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394263003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394263003/20001
5 years, 2 months ago (2015-10-08 21:51:05 UTC) #6
hal.canary
PTAL. I'd like to land this before I go to NYC.
5 years, 2 months ago (2015-10-08 21:51:29 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-08 21:57:39 UTC) #10
tomhudson
Looking good https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp File src/doc/SkDocument_PDF.cpp (right): https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp#newcode42 src/doc/SkDocument_PDF.cpp:42: trailerDict.insertObjRef("Info", info); You made info optional? https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp#newcode45 ...
5 years, 2 months ago (2015-10-09 15:31:37 UTC) #11
hal.canary
https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp File src/doc/SkDocument_PDF.cpp (right): https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp#newcode197 src/doc/SkDocument_PDF.cpp:197: id.reset(SkPDFMetadata::CreatePdfId(uuid, uuid)); On 2015/10/09 15:31:37, tomhudson wrote: > CreatePdfId(uuid, ...
5 years, 2 months ago (2015-10-09 15:49:11 UTC) #12
hal.canary
https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp File src/doc/SkDocument_PDF.cpp (right): https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp#newcode42 src/doc/SkDocument_PDF.cpp:42: trailerDict.insertObjRef("Info", info); On 2015/10/09 15:31:37, tomhudson wrote: > You ...
5 years, 2 months ago (2015-10-09 19:13:27 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394263003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394263003/60001
5 years, 2 months ago (2015-10-09 19:15:32 UTC) #15
tomhudson
https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp File src/doc/SkDocument_PDF.cpp (right): https://codereview.chromium.org/1394263003/diff/20001/src/doc/SkDocument_PDF.cpp#newcode197 src/doc/SkDocument_PDF.cpp:197: id.reset(SkPDFMetadata::CreatePdfId(uuid, uuid)); On 2015/10/09 15:49:11, Hal Canary wrote: > ...
5 years, 2 months ago (2015-10-09 19:21:37 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-09 19:22:22 UTC) #18
hal.canary
https://codereview.chromium.org/1394263003/diff/20001/src/pdf/SkPDFMetadata.cpp File src/pdf/SkPDFMetadata.cpp (right): https://codereview.chromium.org/1394263003/diff/20001/src/pdf/SkPDFMetadata.cpp#newcode192 src/pdf/SkPDFMetadata.cpp:192: // Do not compress this. On 2015/10/09 19:21:37, tomhudson ...
5 years, 2 months ago (2015-10-09 19:28:49 UTC) #19
tomhudson
lgtm
5 years, 2 months ago (2015-10-09 19:55:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394263003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394263003/80001
5 years, 2 months ago (2015-10-09 20:03:02 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/939c0fe51f157104758bcb268643c8b6d317a530
5 years, 2 months ago (2015-10-09 20:10:03 UTC) #23
bungeman-skia
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1398193002/ by bungeman@google.com. ...
5 years, 2 months ago (2015-10-09 20:45:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394263003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394263003/100001
5 years, 2 months ago (2015-10-12 17:03:48 UTC) #27
tomhudson
Post-revert fixup LGTM.
5 years, 2 months ago (2015-10-12 17:04:28 UTC) #28
commit-bot: I haz the power
5 years, 2 months ago (2015-10-12 17:11:23 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/34422610ac22adceeabb66023120f27b96cae953

Powered by Google App Engine
This is Rietveld 408576698