Professional Documents
Culture Documents
Create PDF With Random Content and Variable Size - R - Learnpython
Create PDF With Random Content and Variable Size - R - Learnpython
1 1 Share
u/grabthegamespr • Promoted
Summon your Guardians and get into the minds of the cursed villagers in Thyria.
Add a Comment
You don't need python to do this, easiest and free way is to use HTML/CSS and PagedJS. Use the browsers
print to PDF function to create PDF files from HTML, and HTML is infinitely template-able.
There is little information about how you want to do this - will this be from your machine, or from a website?
Depending on your use case you could use Python to craft a template with something like Jinja, or send your
template HTML and a data file (JSON) to a headless instance of Chrome, use a JS library like Handlebars to do
the templating and download the PDF (have done with with AWS lambda) in a single API call.
2 Reply Share
r/learnprogramming
https://www.reddit.com/r/learnpython/comments/14jcy6w/create_pdf_with_random_content_and_variable_size/ 1/3
3/1/24, 8:14 PM Create PDF with random content and variable size : r/learnpython
r/Wordpress
Skip to main content
Log In
Sync a locally created HTML file with Wordpress
7 upvotes · 18 comments
r/Wordpress
[Making PDF that includes search results of a custom post type]Can you just guide me to the way of doing
the following?
2 upvotes · 1 comment
r/webdev
Added a function to save a webpage as PDF file, but it saves in two pages instead of one
2 comments
r/salesforce
r/Wordpress
r/software
r/neovim
r/godot
r/FigmaDesign
Can I create a template? I can't find a straight answer on Google or chatGPT, so asking here.
5 upvotes · 7 comments
r/Wordpress
https://www.reddit.com/r/learnpython/comments/14jcy6w/create_pdf_with_random_content_and_variable_size/ 2/3
3/1/24, 8:14 PM Create PDF with random content and variable size : r/learnpython
r/PrintedCircuitBoard
Creating a pick and place file with only gerbers and BOM, possible?
1 upvote · 3 comments
r/techsupport
TOP POSTS
https://www.reddit.com/r/learnpython/comments/14jcy6w/create_pdf_with_random_content_and_variable_size/ 3/3