基本上,我正在尝试通过修改后的PostScript在PDF中添加超链接。
以下是Adobe提供的生成超链接的PostScript代码: [ /Rect [ 0 425 295 445 ] /Action << /Subtype /URI /URI (http://www.adobe.com/) >> /Border [ 0 0 2 ] /Color [ .7 0 0 ] /Subtype /Link ANN pdfmark]
以下是我要修改的代码示例:
%PDF-1.4 %âãÏÓ 6 0 obj >stream 1 w [] 0 d 0.0 g 36 775 m 576 775 l s endstream endobj 7 0 obj >stream BT 36 777 Td 0 Tr /F1 16 Tf 0.0 g (Test PDF) Tj ET endstream endobj 1 0 obj >>/ProcSet[/PDF]>>/Parent 8 0 R/MediaBox[0 0 612 792]/Contents[6 0 R 7 0 R]/Type/Page>> endobj
9 0 obj >>/ProcSet[/PDF]>>/Parent 8 0 R/MediaBox[0 0 612 792]/Contents[10 0 R 11 0 R]/Type/Page>> endobj 8 0 obj >> endobj 12 0 obj >> endobj 13 0 obj >> endobj xref 0 14 0000000000 65535 f 0000017066 00000 n 0000000015 00000 n 0000000116 00000 n 0000000212 00000 n 0000000319 00000 n 0000000422 00000 n 0000003831 00000 n 0000025138 00000 n 0000024976 00000 n 0000017226 00000 n 0000021450 00000 n 0000025207 00000 n 0000025253 00000 n trailer ]>>startxref 25381 %%EOF
以下是Adobe提供的生成超链接的PostScript代码: [ /Rect [ 0 425 295 445 ] /Action << /Subtype /URI /URI (http://www.adobe.com/) >> /Border [ 0 0 2 ] /Color [ .7 0 0 ] /Subtype /Link ANN pdfmark]
以下是我要修改的代码示例:
%PDF-1.4 %âãÏÓ 6 0 obj >stream 1 w [] 0 d 0.0 g 36 775 m 576 775 l s endstream endobj 7 0 obj >stream BT 36 777 Td 0 Tr /F1 16 Tf 0.0 g (Test PDF) Tj ET endstream endobj 1 0 obj >>/ProcSet[/PDF]>>/Parent 8 0 R/MediaBox[0 0 612 792]/Contents[6 0 R 7 0 R]/Type/Page>> endobj
9 0 obj >>/ProcSet[/PDF]>>/Parent 8 0 R/MediaBox[0 0 612 792]/Contents[10 0 R 11 0 R]/Type/Page>> endobj 8 0 obj >> endobj 12 0 obj >> endobj 13 0 obj >> endobj xref 0 14 0000000000 65535 f 0000017066 00000 n 0000000015 00000 n 0000000116 00000 n 0000000212 00000 n 0000000319 00000 n 0000000422 00000 n 0000003831 00000 n 0000025138 00000 n 0000024976 00000 n 0000017226 00000 n 0000021450 00000 n 0000025207 00000 n 0000025253 00000 n trailer ]>>startxref 25381 %%EOF