skia2/src
halcanary 34422610ac 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

Review URL: https://codereview.chromium.org/1394263003
2015-10-12 10:11:18 -07:00
..
animator Style Change: NULL->nullptr 2015-08-27 07:41:16 -07:00
c C API: Add SK_API, also documentation of an example. 2015-09-01 10:01:38 -07:00
codec Fill incomplete images in SkCodec parent class 2015-10-09 11:07:34 -07:00
core [TextBlob] Fall back to TightRunBounds when the font bounds are empty 2015-10-09 14:46:28 -07:00
device/xps Style Change: NULL->nullptr 2015-08-27 07:41:16 -07:00
doc SkPDF: Optionally output PDF/A-2b archive format. 2015-10-12 10:11:18 -07:00
effects Move functions from SkGr to SkGrPriv.h 2015-10-09 13:36:42 -07:00
fonts Force cache SkTestScalerContext path bounds. 2015-10-05 07:29:22 -07:00
gpu Move functions from SkGr to SkGrPriv.h 2015-10-09 13:36:42 -07:00
image Move functions from SkGr to SkGrPriv.h 2015-10-09 13:36:42 -07:00
images Revert of change pixel-serializer to support reencoding existing data (patchset #5 id:80001 of https://codereview.chromium.org/1373683003/ ) 2015-09-28 09:58:41 -07:00
lazy SkInstallDiscardablePixelRef is deprecated, enforce that 2015-09-25 06:56:57 -07:00
opts Revert of SkPx: new approach to fixed-point SIMD (patchset #9 id:160001 of https://codereview.chromium.org/1317233005/ ) 2015-09-14 13:14:31 -07:00
pathops remove unused fields from SkOpSegment 2015-09-04 05:00:15 -07:00
pdf SkPDF: Optionally output PDF/A-2b archive format. 2015-10-12 10:11:18 -07:00
pipe Style Change: NULL->nullptr 2015-08-27 07:41:16 -07:00
ports Some iOS fixes to make SampleApp work better. 2015-10-02 09:12:05 -07:00
sfnt Style Change: NULL->nullptr 2015-08-27 07:41:16 -07:00
svg Style Change: NULL->nullptr 2015-08-27 07:41:16 -07:00
utils Move functions from SkGr to SkGrPriv.h 2015-10-09 13:36:42 -07:00
views Fix SkWindow.cpp includes for non-gpu mode 2015-10-09 16:54:48 -04:00
xml Style Change: NULL->nullptr 2015-08-27 07:41:16 -07:00