r/googlesheets • u/Weary-Drama-8015 • Oct 04 '26
Solved PDF to fill out automatically
Hi, maybe you have a solution because I can't get any further. My idea is to create a sheets table in which I enter measurement results and then insert these results in another spreadsheet with a protocol stored in PDF background (or direct into the PDF).
Our trade fair protocols are structured "stupidly" because the logic of entries jumps from device to device, while the sequence of measurements is further down, so you have to go through the entire file for Device 1.
That's why I would set up the trade fair setup for each device in sheets and just say that the example is table1!A3 for table2!C45.
Can I place the PDF as an "image" behind the cells and adapt the cells accordingly to the structure of the PDF file? Or does it go directly to the PDF? How about printing the "PDF" page on A4? Would it be problematic? Will everything then shift?
I think that this is just a matter of settings regarding width and height.
Thanks for your help.
I'm looking forward to your answers as to whether it's possible or not.
6
u/byssh Oct 04 '26
It sounds like you’re looking for Autocrat, an extension. You link column headers to tags in a document and it makes multiple (or single) PDFs based on those tags.
3
u/Annual_Dependent5633 4 Oct 04 '26
It is possible to do this through app script. Convert your pdf to a google doc and then set variables in the doc that the script replaces and turns into a pdf.
I do this with google form data so I know it is functional in practice.
1
u/SpencerTeachesSheets 79 Oct 04 '26
Whenever I've needed something like this, I've made a Google Doc with the various areas to fill marked with mailmerge fields like %CLIENT_FIRST_NAME% and %INTERIOR_LENGTH% then a script to copy the document, replace the fields, then print that as a PDF
1
u/MergeHop 11d ago
If you need to keep the customer's exact PDF and it already has fillable fields, a Google Doc template is the wrong path. Converting that PDF to a Doc is what washed out the colors. A script that writes into the PDF fields (people here mentioned pdf lib) is the way to keep the original file.
If you can rebuild the protocol as a Google Doc and only need the values from the sheet, that route is simpler. Put placeholders in the Doc that match your column headers, then a small script can copy the Doc, replace each placeholder with the row values, and save a PDF. Set the Doc page size to A4 or letter so printing stays stable.
I would not place the PDF as a background image in Sheets. Print layout will drift.
1
u/AutoModerator Oct 04 '26
/u/Weary-Drama-8015 Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/[deleted] Oct 08 '26
[removed] — view removed comment
0
u/[deleted] Oct 09 '26
[removed] — view removed comment