Docs: update to docs from a4daf19319
NoTry: true Change-Id: Icb9e940a9b0c801188ae910805e61056994681ea Reviewed-on: https://skia-review.googlesource.com/156190 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
parent
00529a1771
commit
62589c6537
@ -20,14 +20,11 @@ SkDocument and SkCanvas APIs.
|
||||
SkTime::GetDateTime(&now);
|
||||
metadata.fCreation = now;
|
||||
metadata.fModified = now;
|
||||
sk_sp<SkDocument> pdfDocument = SkPDF::MakeDocument(
|
||||
outputStream, SK_ScalarDefaultRasterDPI, metadata,
|
||||
nullptr, true);
|
||||
sk_sp<SkDocument> pdfDocument = SkPDF::MakeDocument(outputStream, metadata);
|
||||
assert(pdfDocument);
|
||||
|
||||
for (int page = 0; page < numberOfPages; ++page) {
|
||||
SkCanvas* pageCanvas =
|
||||
pdfDocument->beginPage(pageSize.width(),
|
||||
SkCanvas* pageCanvas = pdfDocument->beginPage(pageSize.width(),
|
||||
pageSize.height());
|
||||
writePage(pageCanvas, page);
|
||||
pdfDocument->endPage();
|
||||
|
Loading…
Reference in New Issue
Block a user