renamed the filename to testpdfio-pdfa-rc4.pdf and updated message clearly encryption allowed on pdf/a files

This commit is contained in:
vididvidid
2025-10-02 04:53:19 +00:00
parent 66f0c84621
commit c603a4e2b0

View File

@@ -208,8 +208,8 @@ do_pdfa_tests(void)
if (create_pdfa_test_file("testpdfio-pdfa-4.pdf", "PDF/A-4")) status = 1;
// Test that encryption is not allowed for PDF/A files
testBegin("Block encryption for PDF/A file");
if ((fail_pdf = pdfioFileCreate("testpdfio-pdfa-fail.pdf", "PDF/A-1b", &media_box, NULL, (pdfio_error_cb_t)error_cb, &error)) == NULL)
testBegin("pdfioFileCreate(testpdfio-pdfa-rc4.pdf)");
if ((fail_pdf = pdfioFileCreate("testpdfio-pdfa-rc4.pdf", "PDF/A-1b", &media_box, NULL, (pdfio_error_cb_t)error_cb, &error)) == NULL)
{
testEndMessage(false, "pdfioFileCreate failed for encryption test.");
return (1);
@@ -217,7 +217,7 @@ do_pdfa_tests(void)
if (pdfioFileSetPermissions(fail_pdf, PDFIO_PERMISSION_ALL, PDFIO_ENCRYPTION_RC4_128, "owner", "user"))
{
testEndMessage(false, "pdfioFileSetPermissions succeeded but should have failed.");
testEndMessage(false, "encryption allowed on PDF/A file");
status = 1;
}
else