Skip to content

PPTX -> PDF - #584

Merged
neko782 merged 4 commits into
p2r3:masterfrom
Explosion-Scratch:pptx-to-pdf
Sep 9, 2026
Merged

neko782 merged 4 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

Comment thread test/commonFormats.test.ts
Comment thread test/commonFormats.test.ts Outdated
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
Contributor

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?

@neko782
neko782 merged commit 48d297c into p2r3:master Sep 9, 2026
2 checks passed
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.

3 participants