Skip to content

Commit

Permalink
Create update_to_pdfa_3b.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinZiabek authored Nov 7, 2024
1 parent 66d3953 commit dc31e65
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions patches/update_to_pdfa_3b.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp
index 0ecba5f72c..baf8460e83 100644
--- a/src/pdf/SkPDFDocument.cpp
+++ b/src/pdf/SkPDFDocument.cpp
@@ -118,7 +118,7 @@ static_assert((SKPDF_MAGIC[3] & 0x7F) == "Skia"[3], "");
#endif
static void serializeHeader(SkPDFOffsetMap* offsetMap, SkWStream* wStream) {
offsetMap->markStartOfDocument(wStream);
- wStream->writeText("%PDF-1.4\n%" SKPDF_MAGIC "\n");
+ wStream->writeText("%PDF-1.7\n%" SKPDF_MAGIC "\n");
// The PDF spec recommends including a comment with four
// bytes, all with their high bits set. "\xD3\xEB\xE9\xE1" is
// "Skia" with the high bits set.
diff --git a/src/pdf/SkPDFMetadata.cpp b/src/pdf/SkPDFMetadata.cpp
index 38438414d8..41a454d922 100644
--- a/src/pdf/SkPDFMetadata.cpp
+++ b/src/pdf/SkPDFMetadata.cpp
@@ -250,7 +250,7 @@ SkPDFIndirectReference SkPDFMetadata::MakeXMPObject(
" xmlns:xmpMM=\"http://ns.adobe.com/xap/1.0/mm/\"\n"
" xmlns:pdf=\"http://ns.adobe.com/pdf/1.3/\"\n"
" xmlns:pdfaid=\"http://www.aiim.org/pdfa/ns/id/\">\n"
- "<pdfaid:part>2</pdfaid:part>\n"
+ "<pdfaid:part>3</pdfaid:part>\n"
"<pdfaid:conformance>B</pdfaid:conformance>\n"
"%s" // ModifyDate
"%s" // CreateDate

0 comments on commit dc31e65

Please sign in to comment.