Compress embedded font streams in the PDF writer

This commit is contained in:
gloamxun committed 2026-10-19 22:15:27 +08:00
1 parent 369472e7f7
commit 4735d75c1f
80 files changed
+9119 -5

No files matched your search

Binary file not shown.
Binary file not shown.
+51
View File
@@ -0,0 +1,51 @@
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c015 84.159810, 2016/09/10-02:41:30 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:pdfxid="http://www.npes.org/pdfx/ns/id/"
xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/"
xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
<xmp:CreateDate>{0}</xmp:CreateDate>
<xmp:ModifyDate>{1}</xmp:ModifyDate>
<xmp:MetadataDate>{2}</xmp:MetadataDate>
<dc:format>application/pdf</dc:format>
<dc:title>
<rdf:Alt>
<rdf:li xml:lang="x-default">{3}</rdf:li>
</rdf:Alt>
</dc:title>
<xmpMM:DocumentID>uuid:{4}</xmpMM:DocumentID>
<xmpMM:InstanceID>uuid:{5}</xmpMM:InstanceID>
<xmpMM:RenditionClass>{6}</xmpMM:RenditionClass>
<xmpMM:VersionID>{7}</xmpMM:VersionID>
<pdfxid:GTS_PDFXVersion>{8}</pdfxid:GTS_PDFXVersion>
<pdfx:GTS_PDFXVersion>{8}</pdfx:GTS_PDFXVersion>
<pdf:Trapped>{9}</pdf:Trapped>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
+24
View File
@@ -0,0 +1,24 @@
%!PS-Adobe-3.0 Resource-CMap
%%DocumentNeededResources: ProcSet (CIDInit)
%%IncludeResource: ProcSet (CIDInit)
%%BeginResource: CMap (Adobe-Identity-UCS)
%%Title: (Adobe-Identity-UCS Adobe Identity 0)
%%Version: 1
%%EndComments
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo 3 dict dup begin
/Registry (Adobe) def
/Ordering (Identity) def
/Supplement 0 def
end def
/CMapName /Adobe-Identity-UCS def
/CMapVersion 1 def
/CMapType 0 def
/WMode 0 def
2 begincodespacerange
<20> <20>
<0000> <FFFF>
endcodespacerange
1469 begincidchar
+8
View File
@@ -0,0 +1,8 @@
<20> 1469
endcidchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end
%%EndResource
%%EOF
+24
View File
@@ -0,0 +1,24 @@
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
%!PS-Adobe-3.0 Resource-CMap
%%DocumentNeededResources: procset CIDInit
%%IncludeResource: procset CIDInit
/CIDSystemInfo 3 dict dup begin
/Registry (FontSpecific) def
/Ordering ({0}) def
/Supplement 0 def
end def
/CMapName /FontSpecific-{0} def
/CMapVersion 1 def
/CMapType 2 def
/WMode 0 def
1 begincodespacerange
<0000> <FFFF>
endcodespacerange
+4
View File
@@ -0,0 +1,4 @@
endcmap
CMapName currentdict /CMap defineresource pop
end
end