summaryrefslogtreecommitdiff
path: root/Tests/LibPDF
AgeCommit message (Collapse)Author
2023-01-19Tests: Move test PDF files into Tests/LibPDFSam Atkins
Let's put test files with the tests themselves, instead of a random user directory. (But still copy them so they appear in the user directory for convenience.)
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-03-29LibPDF: Add implementation of the Standard security handlerMatthew Olsson
Security handlers manage encryption and decription of PDF files. The standard security handler uses RC4/MD5 to perform its crypto (AES as well, but that is not yet implemented).
2022-03-07LibPDF: Propagate errors in Parser and DocumentMatthew Olsson
2022-01-08Tests: Add test cases for #10702 and #10717Simon Woertz
Add test cases for parsing an empty file and a truncated file.
2022-01-08Tests: Add base structure for LibPDF unit testsSimon Woertz
Add a unit test for each sample pdf file that currently exists in the anon user's `~/Document/pdf` directory. - linear.pdf - non-linearized.pdf - complex.pdf Each test ensures that the pdf document is parsed and that the page count is the expected one.