[pdf] Emit `/Tabs /S` on each page

Set the tab order to "structure order".

Bug: 40864338
Change-Id: Ic0a5fdd5996052668c1026d969749d432f167778
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/908456
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp
index e73742b..48dd664 100644
--- a/src/pdf/SkPDFDocument.cpp
+++ b/src/pdf/SkPDFDocument.cpp
@@ -393,6 +393,10 @@
     // The StructParents unique identifier for each page is just its
     // 0-based page index.
     page->insertInt("StructParents", SkToInt(this->currentPageIndex()));
+
+    // Tabs is PDF 1.5, but setting it checks an accessibility box.
+    page->insertName("Tabs", "S");
+
     fPages.emplace_back(std::move(page));
 }