Menu

I shipped a website-to-PDF SaaS on WordPress — here's the stack
🖼️

I shipped a website-to-PDF SaaS on WordPress — here's the stack

DEV Community·PetrDev·7 months ago
#koUpfsmD
#showdev#saas#wordpress#cookie#article
Reading 0:00
15s threshold

Last month I launched Site2PDF — converts any website to PDF, PNG, JPG or ZIP. Here's the entire tech stack, because the choices might be useful if you're building something similar.

What it does

Paste a URL → get a PDF of the whole page (or the whole site). Free plan gives 5 archives/month, all formats, cookie banner removal. Paid starts at $9/mo for 15 archives and 200 pages per site.

The stack

Frontend: a custom WordPress theme. Yes, WordPress. Hear me out.

Native user accounts, sessions, roles

Native admin panel for analytics and user management

Customizer for site branding

Gutenberg-free, just PHP templates + SCSS + vanilla JS

Rendering: Node.js + Puppeteer running on the same VPS, called from PHP via proc_open . A bash-like pattern:

$command = sprintf ( '%s %s %s %s --options-file %s' , escapeshellarg ( $node_path ), escapeshellarg ( $script ), escapeshellarg ( $url ), escapeshellarg ( $output ), escapeshellarg ( $options_json ) ); exec ( $command .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.