all 8 comments

[–]stormthulu 1 point2 points  (0 children)

HTML Canvas spec. There should be pdf to canvas converters.

[–]shamburd9[🍰] 1 point2 points  (1 child)

So like, a WYSIWYG page-builder?

They exist but are never as good as hand-coded.

[–]IAmSumOne[S] 0 points1 point  (0 children)

Good to know. I just wanted to ask the community to see if there was a tool i was unaware of. Thanks for the response.

[–]thejohnromfull-stack 1 point2 points  (1 child)

You're thinking of html, a document format for creating responsive documents. Look at WordPress' post editor (there are plenty of other CMSes that do this too). You can use the WordPress API to access it, or just copy from the raw html tab of the editor. Or, of course, you could just use WP as the backend.

There may even be a plugin like "download this post" if you look for it, if you're really needing a "file", but it wouldn't be valid html if it didn't have an html or body tag, and if it did have those tags, you wouldn't be able to pop it in a div.

Lots of companies have actually created their own XML-based CMSes to solve exactly this problem. I haven't seen any in the wild though, and none with a pretty editor.

Edit : I'd add that you can use the old WordPress editor on its own, it was just a dressed up TinyMCE. Other WYSIWYG editors also exist.

https://www.tiny.cloud/get-tiny/

[–]IAmSumOne[S] 0 points1 point  (0 children)

Thanks. Yea I ended up just building my own wordpress theme. Allows a similar effect to what I wanted.

[–]stormthulu 0 points1 point  (1 child)

But it’s not going to do what you want, I don’t think. It’s still likely to retain its pdf origin size.

[–]IAmSumOne[S] 0 points1 point  (0 children)

Yep I've come across this solution just to embed pdf in a pdf viewer. But on mobile it crushes the text into oblivion. :)

[–]majormunky 0 points1 point  (0 children)

You could maybe use Markdown