Skip to content

PPTX -> PDF#584

Open
Explosion-Scratch wants to merge 2 commits into
p2r3:masterfrom
Explosion-Scratch:pptx-to-pdf
Open

PPTX -> PDF#584
Explosion-Scratch wants to merge 2 commits into
p2r3:masterfrom
Explosion-Scratch:pptx-to-pdf

Conversation

@Explosion-Scratch

Copy link
Copy Markdown
Contributor

Add PPTX to PDF by first converting to HTML then HTML2Canvas'ing it - in the future converting to SVG then SVG via Typst would be optimal

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test file is not meant for checking whether specific handlers are used

Comment on lines +185 to +206
expect(conversion).toBeTruthy();
expect([
[
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/pdf",
],
[
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"text/html",
"image/svg+xml",
"image/png",
"application/pdf",
],
].some(
(expected) =>
expected.length === conversion!.path.length
&& expected.every((m, i) => conversion!.path[i].format.mime === m),
)).toBe(true);
expect(Object.values(conversion!.files[0].bytes).length).toBeGreaterThan(1000);

}, { timeout: 60000 });

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this test been made more permissive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants