dangerzone/tests/test_docs
Alex Pyrgiotis 8172195f95
tests: Add a doc with multimedia elements
Add a doc that contains an MP4 video in it, which has an audio and video
stream. This type of document could not be converted with the latest
Dangerzone releases, because PyMuPDF threw this error in the container's
stdout:

    MuPDF error: unsupported error: cannot create appearance stream for
    Screen annotations

This error message was treated literally by our client code, which
parsed the first few bytes in order to find out the page height/width.
This resulted to a misleading Dangerzone error, e.g.:

    A page exceeded the maximum height

This issue started occurring since 0.6.0, which added streaming support,
and was fixed by commit 3f86e7b465. That
fix was not accompanied by a test document that would ensure we would
not have this regression from now on, so we add it in this
commit.

Refs #877
Closes #917
2024-10-22 17:31:39 +03:00
..
sample-bmp.bmp Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00:00
sample-doc.doc Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-docm.docm Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-docx.docx Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-epub.epub Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00:00
sample-gif.gif Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-jpg.jpg Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-mime-application-zip.xls tests: Add sample files for extra MIME types 2023-04-03 18:58:56 +03:00
sample-mime-octet-stream.xls tests: Add sample files for extra MIME types 2023-04-03 18:58:56 +03:00
sample-mime-spreadsheet-template.ods tests: Add sample files for extra MIME types 2023-04-03 18:58:56 +03:00
sample-mime-text-template.odt tests: Add sample files for extra MIME types 2023-04-03 18:58:56 +03:00
sample-mime-x-ole-storage.xls tests: Add sample files for extra MIME types 2023-04-03 18:58:56 +03:00
sample-odg.odg Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-odp.odp Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-ods.ods Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-odt-mp4.odt tests: Add a doc with multimedia elements 2024-10-22 17:31:39 +03:00
sample-odt.odt Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-pbm.pbm Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00:00
sample-pdf.pdf Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-png.png Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-pnm.pnm Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00:00
sample-ppm.ppm Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00:00
sample-ppt.ppt Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-pptx.pptx Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-svg.svg Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00:00
sample-xls.xls Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample-xlsx.xlsx Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
sample_bad_max_height.pdf Add limit and test to max width and height of docs 2023-09-28 11:08:47 +01:00
sample_bad_max_width.pdf Add limit and test to max width and height of docs 2023-09-28 11:08:47 +01:00
sample_bad_pdf.pdf Add a bad PDF file in our test samples 2022-11-23 20:16:50 +02:00