我创建了一个有效的 pdf,其中包含一个空白页和一个现有文本字段,一切都很好:
我可以编辑pdf并保存它,一切都很好。我用验证工具测试了pdf,pdf是有效的。 但是当我使用这些权限对其进行加密时:
const securityOptions = {
ownerPassword: "azer",
permissions: {
printing: 'highResolution', //'lowResolution',
modifying: true,
copying: true,
annotating: true,
fillingForms: true,
contentAccessibility: true,
documentAssembly: true
}
};
并保存它,当我打开pdf时,文本字段出现问题: 文本字段在以下位置不可见:
文本字段可见,其值位于:
我用验证工具测试了加密的pdf(https://www.pdf-online.com/osa/validate.aspx),pdf是有效的。
这是加密的PDF,可能是流或元数据加密有问题,我不确定:
作为base64
JVBERi0xLjcKJYGBgYEKCjEgMCBvYmoKPDwKL0NyZWF0aW9uRGF0ZSAoRDoyMDI0MDEwMzA5NDkyMC0wNScwMCcpCi9DcmVhdG9yIChQREYtWENoYW5nZSBFZGl0b3IgOS4zLjM2MSkKL01vZERhdGUgKEQ6MjAyNDAxMDUxMDAzNDNaKQovUHJvZHVjZXIgKHBkZi1saWIgKGh0dHBzOi8vZ2l0aHViLmNvbS9Ib3BkaW5nL3BkZi1saWIpKQo+PgplbmRvYmoKCjIgMCBvYmoKPDwKL0Fjcm9Gb3JtIDQgMCBSCi9NZXRhZGF0YSA1IDAgUgovUGFnZXMgNiAwIFIKL1R5cGUgL0NhdGFsb2cKPj4KZW5kb2JqCgo0IDAgb2JqCjw8Ci9EUiA8PAovRm9udCA8PAovSGVsdiA3IDAgUgo+Pgo+PgovRmllbGRzIFsgOCAwIFIgXQo+PgplbmRvYmoKCjUgMCBvYmoKPDwKL0xlbmd0aCAzMDA4Ci9TdWJ0eXBlIC9YTUwKL1R5cGUgL01ldGFkYXRhCj4+CnN0cmVhbQpLYvk5S3eWNQ/XaWuidyktH66Vxol5WoizDq2CxrTOOiR6+/Q3SCsMeLeSwCJ+y7lYFe0oBXRABximgmVCFMwk7ojrtC/451MwvH7FAi4j4pnidTiyh37aQylKrHZ05CCOCm70DM6OpIt5UQFs+LC3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z)
/Producer (pdf-lib (https://github.com/Hopding/pdf-lib))
>>
endobj
2 0 obj
<<
/AcroForm 4 0 R
/Metadata 5 0 R
/Pages 6 0 R
/Type /Catalog
>>
endobj
4 0 obj
<<
/DR <<
/Font <<
/Helv 7 0 R
>>
>>
/Fields [ 8 0 R ]
>>
endobj
5 0 obj
<<
/Length 3008
/Subtype /XML
/Type /Metadata
>>
stream
Kbù9Kw–5×ik¢w)-®•Æ‰yZˆ³‚Æ´Î:$zûô7H+x·’À"~˹Xí(t@¦‚eBÌ$îˆë´/øçS0¼~Å.#â™âu8²‡~ÚC)J¬vtä Ž
nôÎŽ¤‹yQlø°·c~£mÛµëè/Çhiì¹ÃgY#WWIZoþG-Þ÷qçz×ê ñ{N»ƒqB:§@Êì±{Õg§ºÅ½2+Fl*ͺu Yñ ÛÂsÎK‰qþÜ$+õЇ¼õF8w¼ïì™?'_\åµ0«è‡~X[ý2¶Sî5\Ð¥q££R¶G¯¤5 \=
BäV:ÁÒŽ>¢«ð¢šw»^,ÂÑÑ¿(UëÕöds‰ŽI‚>Ì,.— dÕÖ!ž”P¹¦ÿkÊ
S´M÷nñqkx¡
WoÄ8ͨȷèQÂ=ýuÏÓyXûô¬#˜×g…¯O—Ž?#9&ãž«…ÍÇ÷ÞØ6)êS©
™¦:à7lYtãOuB˜êΧ‡Hש6]þÍ¢cd2üßúÏ™™-ý,ƈÛçxN·â´ÔŦl¯ h…‘ÕR®Ú6c Y§éYÉ j6bJxá‹^ùo¯d1š63©{‚6ê±uÈk-öã¯*žÆã2ªT7FcqÆÄhĬ;:]m]gŸåö–«q3™ø>ɆƒÛžB@X)?/N"…UJbcÜý²îÓéáRæ³JYè=FÖ;-“,óFeûº&§«Ÿ›ˆDÛ19Í VëقǛߋS_IäO‚xì¬ÆÍaËÇh‡yº{Wúe»'HÑX™ÅQà 7™ýàpû¬yM÷:æv‚¹_@`©†ú/;úî˜Fª}¢y`usxFȪ ø½ 2ä1þNĶø¦m…¡a
Ý×9nYî›° XÞ$òƒ“@¤ ðGK¯màqIà€éNŒÍíË4K¤”8Ã<AŽCµòÕá·ÆFBÓY4d‰™@Z%ä§ßÙ 6@‡"rüúô;~‚çYX™^2ReÞ¹·}úž&3×ebÆ pÿHÛp“‡°$눣ނì[!Pú»P Ÿóu¦°‡³äL“8]´à؆q¼IÛ
i¶ê,gÆ;bh.Y
p\ÕN9s¥ôl7lMbŒÒ8oŒçµð´…!ƒÖ^~A|²½e½õ´†ûE(Ø¢ÌÀÀË-SK…¾Òú"xE§;¡A¤=:ßLa‘³,x6=iuçªÔAŸ ¶n.XýZ‚]°€”ìé*ÔŽh¹T’%ìÛ¹î&D2Ïýh1£n»)‹úæƒDî ìòördÂWŸ@yb5¤gn6)ªbaÕHÎJdÝ>N~ù÷þ2Ç€ð¿å?U‚‡‹x•²g::ç3¬-_%> äÐhÒiÌk·v]rC §äe£Ÿpy“s÷ÍÇV÷…üXEw|yÃߟ=iÊú†¡)!eKë,x_uqrKrc8b‡X„)ÙÊ¢íL6A¬Bìê¼ä?%ÜÝÊ9±^HuuÞvI:•Ä‚6-FÃ#.{Ž|æ-¿6H4ŸOžëµý,Hl/5¹ƒ‡^é<³°PæJu
ºi³FPîØu›Ó"Iï>©Ç‹‚ŒÎ*ET´)Kåv+ŒVm? ûÈ9á3·‰Æä¨x(…Ò¦ñDWºZG¡œDÕFÒëG€»`AÉù¸ù[ò'S"Jߘ§Úƒv‘ÿvÜÄBßE:¸1.VE‰µÞ\EL´`
)&k2éऋ]E.Ï‘JÄÊ‚½Õ•R7·0‚:s°˜ü«qéõlϤñ#ËÛ{NЗUì¢&ëWêÏÓú>˜¨Á”ö`4ZŒ.¦£½ôgÅ6ÃL3³«ZëÜ÷{Zß‘J{7ŠË«M49E¸uuòo6m¸ylä±s.3=¾‚lÂ`½wÖ~šàÌœV*ÆåàCãÚ™~ÏzËPwöNEX&G⻜BGUl¯ÆËT<vüNýC_ÔÍï^.æâ,H ±b€äxö{6þØYÑá¦àõ‡G&””6ɇóXw7TWš^¼<\ÜÛÌhâ¥IL€icÌ¡RÎq^ÇpÕœì¼tÐ÷¾S F“%Ü=ËOβù?¹kóŠYxßk)à
‚¢töZä6ú(cì¬Pb^ŠdÍGÅꬲ*ÌŠ£ÑBuÉ uApº?Ö*¤zf‚Æ+•2“Âó"ûdS;æ°ggÈÐí°{%ú¯GœÐ
±ÜÁ²õb'§ù7òÆœâN=N%¶¾ð>œºOÐï#oø}ăŽrîø6£…LŒœpƒ[ñY³9¸{öçêÚ_3MÑDþ%¸CwäUìw`jÀŽÒaR+}aæ¯@àÙµYÒ†4}4
B¾åëáí„G !tß,Úןωá!ÍF|ê]˜µyç¡ÛæÊ_0RY>s¾|ò°-”J>"ÆC9Ÿì°Æß‘;ö¬^Óu·xª Ǧ‰Þ–Êár]a\d5¬ëzþW@Û¼!+ìï´s6I
lÊI½3ˆM4ÌÞd\'.Ê÷þp¡«"¤"
ÙÁj¦šÉj´€E…¯=_y¡lvÕE·!Éê›^é´|Ts„ ãý&ç Šù#–J3µMÁèÓÌLódK…¾ü,÷QD©`úÊ?ä²[™£ñã…Óc ²ÅË]•JögÜjZäà$øäÖpü‘{÷ê xt‘˜‰¿Ù÷ÁŠP¦tú«tËW+Òö&«<ã|ë
ÀØî†zé:‘¢5³ì—³¤·èy*ÊÎML‚Õƒ&@ ®ñ5Ü6ç ôGlhC,°ýQ(H·ò16žz¶Ó_Ëê X)‰á棱i=‰M
eH˜5L
iGÏ. ž?zÐ ¼ä¾…cšô÷µÄù…ÀoOÎûô¯® Ù[ÇA
(MÆÈáö":çhË;°d¨ˆ3Hd}AÐ/££žaX\xZÇ¿áóú²Å5Ãl rŠ`æ?‰hº;Çä3QЫ1Œ/wNU¥™Àé’.K¸¥y
‘ób ŸÕùÅ<“ §èW4 0cIõAšÇoåJö5öƒø„±†YïŒ'¬<DÑ~äçmÕSî³"éžId°+©Âü8®ü„¾´î0£°\Qw’Es§:?x!ûf†E0Óž¯¢^—(R=1ï¿^û#:
2kiBxô´ÖŠÜ]ˬ²9p<É*¿iŒ)ï=ÜÈäùÀSã@“›@jŒu5÷i˜ñÇÂsÖ R<’±‡÷Õ…àØ£š%Ý#½¢Aq4?kxL!¨/Ãñ<eÄÚ¢šÜàÄ„D6!¤¢SúžH&¤êoÔ[,-Gj¿Œ]T—+že3s+‰ù
Õa8!0,¹G;Ýôø±§ší,Ù×$DÕöMõÎ$å3Z…g =?^áúò×Ñ `¯WjÞw[²[—ÁÌê‡m‰[ÆÆiŸ
W"2åö3>Úö´vAžx
¿¡KÊÏD篴j—߇«Î/LŸ/ÝmwÎÙf*o±Éìf"^BØ®#úe =DÅR»Œ7éÜeë0Eb‰ŠAcí±»ømV–l(Ðó¯båaòyÐ"sUÂ$O5Î}.³ð©ŠÄ†6'±]ß ¿pRZG^ÍPâ‡&ä݇âixDÈ›ÁW”}ÃìÑ´…¦;Éaèfª>ÃR¨öMÿæ é¼=îþO_åØôèXÖ0ò/þd ÓM¸ÊÒZÓ§tòS$dAó´L¤-Cû²:Í3^f$UÂl£ób<5óZ|X«YƒvË{HÎ ¹(‘½Ÿ:q2˜VÝkÈ9ýsw¨ ÒdH8žÐÕç¦ñxÞffSK#’;¨«ÄõÐôÆ
endstream
endobj
6 0 obj
<<
/Count 1
/Kids [ 9 0 R ]
/Type /Pages
>>
endobj
7 0 obj
<<
/BaseFont /Helvetica
/Encoding 10 0 R
/Subtype /Type1
/Type /Font
>>
endobj
8 0 obj
<<
/AP <<
/N 11 0 R
>>
/DA (0 g /Helv 0 Tf)
/DV (I am a default value)
/F 4
/FT /Tx
/MK <<
/BC [ 0 0 0 ]
>>
/P 9 0 R
/Rect [ 32.076511 725.777222 182.076508 747.777222 ]
/Subtype /Widget
/T (Text1)
/Type /Annot
/V (Hello SE)
>>
endobj
9 0 obj
<<
/Annots [ 8 0 R ]
/MediaBox [ 0 0 612 792 ]
/Parent 6 0 R
/Resources <<
>>
/Type /Page
>>
endobj
10 0 obj
<<
/Differences [ 24 /breve /caron /circumflex /dotaccent /hungarumlaut /ogonek /ring /tilde 39 /quotesingle 96 /grave 128 /bullet /dagger /daggerdbl /ellipsis /emdash /endash /florin /fraction /guilsinglleft /guilsinglright /minus /perthousand /quotedblbase /quotedblleft /quotedblright /quoteleft /quoteright /quotesinglbase /trademark /fi /fl /Lslash /OE /Scaron /Ydieresis /Zcaron /dotlessi /lslash /oe /scaron /zcaron 160 /Euro 164 /currency 166 /brokenbar 168 /dieresis /copyright /ordfeminine 172 /logicalnot /.notdef /registered /macron /degree /plusminus /twosuperior /threesuperior /acute /mu 183 /periodcentered /cedilla /onesuperior /ordmasculine 188 /onequarter /onehalf /threequarters 192 /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis /eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis ]
/Type /Encoding
>>
endobj
11 0 obj
<<
/BBox [ 0 0 150 22 ]
/Filter /FlateDecode
/Length 144
/Resources <<
/Font <<
/Helv 7 0 R
>>
>>
/Subtype /Form
/Type /XObject
>>
stream
q'I,][‚ŒÌÀtÙ·rR‹ÇåbVÀŠ b^ÄQWÖÑÞvûSÌ=rÕ–ïç^ÐðsùV…ž¸ "E+—BªÑ#t© [4cä¡pûðGÔŽ‹¨€£c5ÿØEx„RBïwUxªðäF>”'<¥œñkþžUU“Š4)
3ÐJÉO%Múÿ°Ü
endstream
endobj
12 0 obj
<<
/ModDate (D:20240105100345Z)
/Producer (pdf-lib (https://github.com/Hopding/pdf-lib))
/Creator (pdf-lib (https://github.com/Hopding/pdf-lib))
/CreationDate (D:20240105100345Z)
>>
endobj
13 0 obj
<<
/Type /Font
/Subtype /Type1
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding
>>
endobj
14 0 obj
<<
/Type /Font
/Subtype /Type1
/BaseFont /Helvetica-Bold
/Encoding /WinAnsiEncoding
>>
endobj
15 0 obj
<<
/ModDate (D:20240105100345Z)
>>
endobj
16 0 obj
<<
/Filter /Standard
/V 4
/Length 128
/CF <<
/StdCF <<
/AuthEvent /DocOpen
/CFM /AESV2
/Length 16
>>
>>
/StmF /StdCF
/StrF /StdCF
/R 4
/O <8a93ac1e4c390a3351364adb88835ac7c283cf5a348242ece01d07acf8ba4ec6>
/U <075a3fa40c89c5f57fba188347dd8a8f00000000000000000000000000000000>
/P -4
>>
endobj
xref
0 3
0000000000 65535 f
0000000016 00000 n
0000000202 00000 n
4 13
0000000284 00000 n
0000000358 00000 n
0000003449 00000 n
0000003509 00000 n
0000003597 00000 n
0000003841 00000 n
0000003950 00000 n
0000005278 00000 n
0000005588 00000 n
0000005787 00000 n
0000005886 00000 n
0000005990 00000 n
0000006042 00000 n
trailer
<<
/Size 17
/Root 2 0 R
/Encrypt 16 0 R
/Info 15 0 R
/ID [ <0e64bebcd34321987c69258cf231ea8c> <0e64bebcd34321987c69258cf231ea8c> ]
>>
startxref
6343
%%EOF
未加密的PDF:
%PDF-1.7
%
1 0 obj
<<
/CreationDate (D:20240103094920-05'00')
/Creator (PDF-XChange Editor 9.3.361)
/ModDate (D:20240105100317Z)
/Producer (pdf-lib (https://github.com/Hopding/pdf-lib))
>>
endobj
2 0 obj
<<
/AcroForm 4 0 R
/Metadata 5 0 R
/Pages 6 0 R
/Type /Catalog
>>
endobj
4 0 obj
<<
/DR <<
/Font <<
/Helv 7 0 R
>>
>>
/Fields [ 8 0 R ]
>>
endobj
5 0 obj
<<
/Length 2979
/Subtype /XML
/Type /Metadata
>>
stream
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 6.0.0">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
<dc:format>application/pdf</dc:format>
<xmpMM:DocumentID>uuid:f0bc7a01-dd93-4c4e-9bec-783a9464b1c0</xmpMM:DocumentID>
<xmpMM:InstanceID>uuid:6b75ef77-09b1-43ed-8d0b-d5721e91bdea</xmpMM:InstanceID>
<xmp:CreateDate>2024-01-03T09:49:20-05:00</xmp:CreateDate>
<xmp:CreatorTool>PDF-XChange Editor 9.3.361</xmp:CreatorTool>
<xmp:ModifyDate>2024-01-05T04:52:55-05:00</xmp:ModifyDate>
<pdf:Producer>PDF-XChange Core API SDK (9.3.361)</pdf:Producer>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
endstream
endobj
6 0 obj
<<
/Count 1
/Kids [ 9 0 R ]
/Type /Pages
>>
endobj
7 0 obj
<<
/BaseFont /Helvetica
/Encoding 10 0 R
/Subtype /Type1
/Type /Font
>>
endobj
8 0 obj
<<
/AP <<
/N 11 0 R
>>
/DA (0 g /Helv 0 Tf)
/DV (I am a default value)
/F 4
/FT /Tx
/MK <<
/BC [ 0 0 0 ]
>>
/P 9 0 R
/Rect [ 32.076511 725.777222 182.076508 747.777222 ]
/Subtype /Widget
/T (Text1)
/Type /Annot
/V (Hello SE)
>>
endobj
9 0 obj
<<
/Annots [ 8 0 R ]
/MediaBox [ 0 0 612 792 ]
/Parent 6 0 R
/Resources <<
>>
/Type /Page
>>
endobj
10 0 obj
<<
/Differences [ 24 /breve /caron /circumflex /dotaccent /hungarumlaut /ogonek /ring /tilde 39 /quotesingle 96 /grave 128 /bullet /dagger /daggerdbl /ellipsis /emdash /endash /florin /fraction /guilsinglleft /guilsinglright /minus /perthousand /quotedblbase /quotedblleft /quotedblright /quoteleft /quoteright /quotesinglbase /trademark /fi /fl /Lslash /OE /Scaron /Ydieresis /Zcaron /dotlessi /lslash /oe /scaron /zcaron 160 /Euro 164 /currency 166 /brokenbar 168 /dieresis /copyright /ordfeminine 172 /logicalnot /.notdef /registered /macron /degree /plusminus /twosuperior /threesuperior /acute /mu 183 /periodcentered /cedilla /onesuperior /ordmasculine 188 /onequarter /onehalf /threequarters 192 /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis /eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis ]
/Type /Encoding
>>
endobj
11 0 obj
<<
/BBox [ 0 0 150 22 ]
/Filter /FlateDecode
/Length 122
/Resources <<
/Font <<
/Helv 7 0 R
>>
>>
/Subtype /Form
/Type /XObject
>>
stream
xÚÉ1
Â@@Ñ~NñKm63!qM›°˜&…fÀh$(¦0âée›Ïƒ¯(Ê週J¨ 5V5”Æ21Já_Ú¡“·†U{JÍçÌSZåŽâ—œSÅÙKÑOó‹¡Áo”T!6q‡_eÓOóübL[Hr9J:ùÇ"š
endstream
endobj
12 0 obj
<<
/ModDate (D:20240105100317Z)
>>
endobj
13 0 obj
<<
/Type /Font
/Subtype /Type1
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding
>>
endobj
14 0 obj
<<
/Type /Font
/Subtype /Type1
/BaseFont /Helvetica-Bold
/Encoding /WinAnsiEncoding
>>
endobj
xref
0 3
0000000000 65535 f
0000000016 00000 n
0000000202 00000 n
4 11
0000000284 00000 n
0000000358 00000 n
0000003420 00000 n
0000003480 00000 n
0000003568 00000 n
0000003812 00000 n
0000003921 00000 n
0000005249 00000 n
0000005537 00000 n
0000005589 00000 n
0000005688 00000 n
trailer
<<
/Size 15
/Root 2 0 R
/Info 12 0 R
/ID [ <482C1B0356F27EAD2EB01BDF7B8A9DF9> <482C1B0356F27EAD2EB01BDF7B8A9DF9> ]
>>
startxref
5792
%%EOF
我已经加密/解密了/AP,但它不起作用,这是解压缩的/AP:
0 0 0 RG 1 w
.5 .5 149 21 re S
/Tx BMC
q
1 1 148 20 re W n
BT
0 g 0 Tc 0 Tw 100 Tz 0 Tr/Helv 17.9 Tf 2 4.7976 Td
(Hello SE)Tj
ET
Q
EMC
作为字节数组:
[120,218,21,201,49,10,194,64,16,64,209,126,78,241,75,109,54,51,33,113,77,155,176,152,38,133,102,192,3,104,20,36,40,166,48,226,233,101,155,207,131,175,40,202,233,128,177,74,168,9,53,86,53,148,198,50,49,74,225,95,218,161,147,183,24,134,85,123,74,205,231,204,83,90,23,229,142,226,151,156,21,83,197,127,217,75,209,79,243,7,139,161,193,111,148,84,33,54,113,135,95,101,211,79,243,252,98,76,91,127,72,114,57,74,26,58,249,3,199,34,30,154]
也许我对 /AP 进行了错误的编辑,也许是大小和外部参照,我更改了它们,我不知道我的加密中缺少什么
正如评论中已经指出的,PDF 声称是完全加密的,即字符串和流,但字符串实际上是没有加密的,而流(元数据和小部件外观)确实是加密的。因此,字段名称及其当前值等字符串无法解密。
因此,PDF 基本上已损坏。
不同的 PDF 处理器如何处理此问题取决于实现。一些查看者忽略了 PDF 的底层表单结构已损坏,并仍然显示小部件注释,一些查看者尝试在内部修复表单结构,同时显示原始小部件或从修复的值创建新小部件,还有一些人干脆不显示小部件注释。完全破坏表单结构的小部件。
我用验证工具测试了加密的pdf(https://www.pdf-online.com/osa/validate.aspx),pdf是有效的。
如果该工具确实测试您的 PDF 是否有效,那么我会对该工具的质量产生怀疑。