first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

View File

@ -0,0 +1,54 @@
<!doctype html>
<!--
/**
* jsPDF Outline PlugIn
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Outline Test</title>
<script src='../../libs/require/require.js'></script>
<script>
require_baseUrl_override = '../..';
require(['../../libs/require/config'], function(){
require(['plugins/outline', 'examples/js/test_harness'], function(){
var pdf = new jsPDF('p', 'pt', 'letter');
pdf.text(20, 20, 'Hello');
pdf.addPage();
pdf.text(20, 20, 'PDF');
pdf.addPage();
pdf.text(20, 20, 'World');
pdf.addPage();
pdf.text(20, 20, 'More');
var node = pdf.outline.add(null, 'Test Pages', null);
pdf.outline.add(node, 'Hello', {pageNumber:1});
pdf.outline.add(node, 'PDF', {pageNumber:2});
pdf.outline.add(node, 'World', {pageNumber:3});
var node = pdf.outline.add(null, 'More Pages', null);
pdf.outline.add(node, 'More', {pageNumber:4});
pdf_test_harness_init(pdf, "Open in Reader (or Firefox) to see the PDF outline");
}); // require
}); // require
</script>
</head>
<body style='background-color: silver; margin: 0;'>
</body>
</html>

View File

@ -0,0 +1,302 @@
%PDF-1.3
3 0 obj
<</Type /Page
/Parent 1 0 R
/Resources 2 0 R
/MediaBox [0 0 612.00 792.00]
/Contents 4 0 R
>>
endobj
4 0 obj
<</Length 65>>
stream
0.20 w
0 G
BT
/F1 16 Tf
18.4 TL
0 g
20.00 772.00 Td
(Hello) Tj
ET
endstream
endobj
5 0 obj
<</Type /Page
/Parent 1 0 R
/Resources 2 0 R
/MediaBox [0 0 612.00 792.00]
/Contents 6 0 R
>>
endobj
6 0 obj
<</Length 63>>
stream
0.20 w
0 G
BT
/F1 16 Tf
18.4 TL
0 g
20.00 772.00 Td
(PDF) Tj
ET
endstream
endobj
7 0 obj
<</Type /Page
/Parent 1 0 R
/Resources 2 0 R
/MediaBox [0 0 612.00 792.00]
/Contents 8 0 R
>>
endobj
8 0 obj
<</Length 65>>
stream
0.20 w
0 G
BT
/F1 16 Tf
18.4 TL
0 g
20.00 772.00 Td
(World) Tj
ET
endstream
endobj
9 0 obj
<</Type /Page
/Parent 1 0 R
/Resources 2 0 R
/MediaBox [0 0 612.00 792.00]
/Contents 10 0 R
>>
endobj
10 0 obj
<</Length 64>>
stream
0.20 w
0 G
BT
/F1 16 Tf
18.4 TL
0 g
20.00 772.00 Td
(More) Tj
ET
endstream
endobj
1 0 obj
<</Type /Pages
/Kids [3 0 R 5 0 R 7 0 R 9 0 R ]
/Count 4
>>
endobj
11 0 obj
<</BaseFont/Helvetica/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
12 0 obj
<</BaseFont/Helvetica-Bold/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
13 0 obj
<</BaseFont/Helvetica-Oblique/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
14 0 obj
<</BaseFont/Helvetica-BoldOblique/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
15 0 obj
<</BaseFont/Courier/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
16 0 obj
<</BaseFont/Courier-Bold/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
17 0 obj
<</BaseFont/Courier-Oblique/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
18 0 obj
<</BaseFont/Courier-BoldOblique/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
19 0 obj
<</BaseFont/Times-Roman/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
20 0 obj
<</BaseFont/Times-Bold/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
21 0 obj
<</BaseFont/Times-Italic/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
22 0 obj
<</BaseFont/Times-BoldItalic/Type/Font
/Encoding/StandardEncoding
/Subtype/Type1>>
endobj
2 0 obj
<<
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
/Font <<
/F1 11 0 R
/F2 12 0 R
/F3 13 0 R
/F4 14 0 R
/F5 15 0 R
/F6 16 0 R
/F7 17 0 R
/F8 18 0 R
/F9 19 0 R
/F10 20 0 R
/F11 21 0 R
/F12 22 0 R
>>
/XObject <<
>>
>>
endobj
23 0 obj
<<
/Type /Outlines
/First 24 0 R
/Last 28 0 R
/Count 6
>>
endobj
24 0 obj
<<
/Title (Test Pages)
/Parent 23 0 R
/Next 28 0 R
/First 25 0 R
/Last 27 0 R
/Count 3
>>
endobj
28 0 obj
<<
/Title (More Pages)
/Parent 23 0 R
/Prev 24 0 R
/First 29 0 R
/Last 29 0 R
/Count 1
>>
endobj
25 0 obj
<<
/Title (Hello)
/Parent 24 0 R
/Next 26 0 R
/Dest [3 0 R /XYZ 0 792 0]
>>
endobj
26 0 obj
<<
/Title (PDF)
/Parent 24 0 R
/Prev 25 0 R
/Next 27 0 R
/Dest [5 0 R /XYZ 0 792 0]
>>
endobj
27 0 obj
<<
/Title (World)
/Parent 24 0 R
/Prev 26 0 R
/Dest [7 0 R /XYZ 0 792 0]
>>
endobj
29 0 obj
<<
/Title (More)
/Parent 28 0 R
/Dest [9 0 R /XYZ 0 792 0]
>>
endobj
30 0 obj
<<
/Producer (jsPDF 1.0.0-trunk)
/CreationDate (D:20141126191205+01'00')
>>
endobj
31 0 obj
<<
/Type /Catalog
/Pages 1 0 R
/OpenAction [3 0 R /FitH null]
/PageLayout /OneColumn
/Outlines 23 0 R
>>
endobj
xref
0 32
0000000000 65535 f
0000000896 00000 n
0000002130 00000 n
0000000009 00000 n
0000000118 00000 n
0000000231 00000 n
0000000340 00000 n
0000000451 00000 n
0000000560 00000 n
0000000673 00000 n
0000000783 00000 n
0000000971 00000 n
0000001063 00000 n
0000001160 00000 n
0000001260 00000 n
0000001364 00000 n
0000001454 00000 n
0000001549 00000 n
0000001647 00000 n
0000001749 00000 n
0000001843 00000 n
0000001936 00000 n
0000002031 00000 n
0000002360 00000 n
0000002436 00000 n
0000002652 00000 n
0000002746 00000 n
0000002851 00000 n
0000002544 00000 n
0000002945 00000 n
0000003025 00000 n
0000003117 00000 n
trailer
<<
/Size 32
/Root 31 0 R
/Info 30 0 R
>>
startxref
3238
%%EOF