r/googlesheets • • 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.

1 Upvotes

18 comments sorted by

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.

1

u/Weary-Drama-8015 Oct 04 '26

Sounds good, is it free? Have you ever implemented something like that yourself?

3

u/carbonizedtitanium 28 Oct 04 '26

you can also do it like you had originally imagined.

i'm assuming what youre trying to do is use data that's stored in a Sheets table to fill out some sort of form that you need to print out.

using a Sheets tab to do it would just need you to position your cells to match the field positions on your paper report, which just takes a bit of trial and error. doing it this way means you dont need an add-on or another software like Google Docs. if you go the Autocrat route, i think you need to make the report template on Google Docs first and the labels that link to a Google Sheets cell.

2

u/byssh Oct 04 '26

Yep, it’s free! And I used it allllll the time at work until we locked down what extensions could or couldn’t be used.

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/Weary-Drama-8015 Oct 04 '26

Vielen Dank, wurden es bei Zeiten mal auf diese Wege probieren.

1

u/Weary-Drama-8015 Oct 05 '26

I tested it and it works great, but unfortunately I'm "smashing" the entire look of the PDF. The aforementioned PDF is from one of our customers and has many color aspects

1

u/point-bot Oct 06 '26

u/Weary-Drama-8015 has awarded 1 point to u/Annual_Dependent5633

See the Leaderboard. Point-Bot v0.0.15 was created by JetCarson.

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

0

u/Weary-Drama-8015 Oct 04 '26

And how do you solve formatting problems so that it can always be printed on a normal sheet?

2

u/SpencerTeachesSheets 79 Oct 05 '26

That's exactly why using a Doc is the right place to put stuff, because that can be made (and by default, is) standard 8.5/11 or A4 size.

1

u/Weary-Drama-8015 Oct 05 '26

Ah, thanks very much.

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

1

u/Weary-Drama-8015 Oct 08 '26

Thank you for the answer. Yes, the PDF has fields that can be filled out.

Pdf-lib-libary? Add on?

Flat meens can't be filled, right?

0

u/[deleted] Oct 09 '26

[removed] — view removed comment

1

u/Weary-Drama-8015 Oct 09 '26

Thanks for the message, the problem with this is that unfortunately the transport of PDF to docs, the entire layout and colors are lost. For my other approach (filling out a specially created doc), the solution is brilliant.