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>
diff --git a/site/user/sample/pdf.md b/site/user/sample/pdf.md
index 01dca26..edfd7d5 100644
--- a/site/user/sample/pdf.md
+++ b/site/user/sample/pdf.md
@@ -20,15 +20,12 @@
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(),
- pageSize.height());
+ SkCanvas* pageCanvas = pdfDocument->beginPage(pageSize.width(),
+ pageSize.height());
writePage(pageCanvas, page);
pdfDocument->endPage();
}