Export Google Forms as PDF with GAMADV-XTD3

306 views
Skip to first unread message

Patrick Rhodes

unread,
Oct 1, 2019, 12:05:53 PM10/1/19
to GAM for G Suite
We are in the midst of a partial migration and need to export all Google Forms as PDFs to ensure the data is captured prior to migration. Is this possible with GAMADV-XTD3? I tried 'get drivefile' but I am getting a "Format not downloadable" error. 

Please advise ASAP. 

Ross Scroggs

unread,
Oct 1, 2019, 12:25:01 PM10/1/19
to google-ap...@googlegroups.com
Patrick,

Show me the command you executed.

Ross

On Tue, Oct 1, 2019 at 9:05 AM Patrick Rhodes <patrick...@enproindustries.com> wrote:
We are in the midst of a partial migration and need to export all Google Forms as PDFs to ensure the data is captured prior to migration. Is this possible with GAMADV-XTD3? I tried 'get drivefile' but I am getting a "Format not downloadable" error. 

Please advise ASAP. 

----------Legal Disclaimer----------

The information contained in this message may be privileged and confidential, and is intended solely for the use of the named addressee. No other person is authorized to access, copy or re-use this message (or any information contained herein). If you are not the intended recipient, please notify us immediately by replying to this message and delete it from your computer.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/05ba50cd-47c0-4a01-8fe4-b81589b834a0%40googlegroups.com.


--

Patrick Rhodes

unread,
Oct 1, 2019, 1:17:58 PM10/1/19
to google-ap...@googlegroups.com
Ross,

gam user email.address get drivefile formID format pdf

gam user email.address get drivefile formID

Both returned "User: patrick...@enproindustries.com, Drive File: Power Users Authorization Form, Not Downloaded: Format not downloadable"



Ross Scroggs

unread,
Oct 1, 2019, 2:11:08 PM10/1/19
to google-ap...@googlegroups.com
Patrick,

As far as I can tell, Google Forms are not exportable through the API.

Ross



--

Patrick Rhodes

unread,
Oct 1, 2019, 2:12:51 PM10/1/19
to google-ap...@googlegroups.com
Ross,

That was my worry. So I guess I am SOL at this point then?


Thank you,

Patrick Rhodes
Solutions Engineer – Productivity Applications
 
315-597-3931 (W)
585-204-7616 (GVoice)

Patrick...@EnProIndustries.com


Ross Scroggs

unread,
Oct 1, 2019, 2:25:30 PM10/1/19
to google-ap...@googlegroups.com
Patrick,

If you search for "export Google forms pdf" you get various hits; it appears to me that they are exporting submissions but what I know about forms is minimal.

Ross



--

+KimNilsson

unread,
Oct 6, 2019, 4:15:09 PM10/6/19
to GAM for G Suite
Patrick, use Google Takeout.
When you let it stay on XLSX it'll export the answers to a Excel, and your Form to an HTML file, and your answers once more as a CSV.


20191006-2208-Forms_Takeout.png


Simon Laycock

unread,
Jun 7, 2022, 12:42:04 PM6/7/22
to GAM for Google Workspace
Just resurrecting this thread in the hope that things may have changed... We are being moved to Office 365 in a couple of weeks and there is no way to migrate all the Forms people have created. I had hoped to be able to iterate over their drives and at least convert the forms to PDF, which would preserve the questions and possible responses, but this doesn't seem possible. 

When I do gam user <username> get drivefile <fileid> format pdf I just get "Not Downloaded: Format not downloadable"

There must be a better way than telling people to open each individual form and print as pdf, mustn't there? (I'm using GAMADV-XTD3).

Kim Nilsson

unread,
Jun 7, 2022, 1:19:52 PM6/7/22
to Google Apps Manager
No, you can't even download a Form in the Drive interface.
That usually means it's not going to be possible via API either.

Manually open each individual Form, and print - that's the only way.

/Kim

Kim Nilsson

unread,
Jun 7, 2022, 1:21:25 PM6/7/22
to Google Apps Manager
Or, do as I said last time.
Export them with Takeout.

/Kim

Ian Crew

unread,
Jun 7, 2022, 1:25:52 PM6/7/22
to GAM for G Suite
The Forms API also allows you to “GET” both the form and its responses, so maybe that’d be even more useful, as it’d give you the forms in JSON format, which might be more useful than a PDF to recreate things on the other side (via Power Automate or something, perhaps? I’m far less familiar on the MS365 side,)

Cheers,

Ian

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

 

Ian Crew

Solutions Architect
Productivity & Collaboration Services
Berkeley IT

Simon Laycock

unread,
Jun 7, 2022, 4:06:51 PM6/7/22
to GAM for Google Workspace
Thanks for responding. I can't believe there's no sensible way of doing this in 2022!

Kim - I couldn't see a way to specify just forms in takeout, and I don't want them downloading all their drive data as it will then be duplicated. Am I missing something?

Ian - I did have a quick go at getting the JSON with get document, but I think I need to authorize another scope for GAM and I couldn't remember how to do that. I am led to believe that there are no import tools for Microsoft Forms though, so it probably wouldn't be worth persevering.




Kim Nilsson

unread,
Jun 7, 2022, 4:17:02 PM6/7/22
to Google Apps Manager
No data will be duplicated unless you upload everything again. Point is to separate the form data once downloaded.

Then migrate everything else as planned. 

Afterwards, they will have the form data to look at when creating new MS Forms. 

From the start we know there is no proper migration possible, so it's just a question of how to make the downloaded content as easy to work with as possible. 

You will have to test the alternatives to really see which your users prefer. 

James SEYMOUR

unread,
Jun 8, 2022, 8:59:13 PM6/8/22
to GAM for Google Workspace
Hi Simon,

Enabling the API should be easy. I was looking into the JSON option and came up against, this.

I was testing;-
gam user <User Email> print forms <Drive ID> todrive formatjson

The error message includes the URL you need to visit (by clicking on it) and then on the page, you just need to click on the 'accept' button.
ERROR: 403: permissionDenied - Google Forms API has not been used in project XXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/forms.googleapis.com/overview?project=XXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

After that the command just worked.

From https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Forms#display-forms this option may be useful if you go forward with JSON

The quotechar <Character> option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output. quotechar defaults to gam.cfg/csv_output_quote_char.

Cheers

James

Ross Scroggs

unread,
Jun 8, 2022, 11:50:28 PM6/8/22
to google-ap...@googlegroups.com
Simion/James,

The correct response to any message about an API not enabled is:
gam update project
gam oauth create
gam user us...@domain.com check serviceaccount

Jerudong International School
https://www.jerudonginternationalschool.com
Follow us on:
http://www.facebook.com/jisbruneidarussalam http://www.twitter.com/jisbrunei http://www.instagram.com/jisbrunei https://www.youtube.com/user/JISBrunei https://www.flickr.com/photos/133960569@N03/albums

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

Simon Laycock

unread,
Jun 9, 2022, 10:59:23 AM6/9/22
to GAM for Google Workspace
Hmm. I've tried both what James said (although I never got the error you mentioned, just the one I've copied below) and also what Ross said, but even after passing all the service account checks I still get:

ERROR: API access Denied
Please make sure the Service Account Client name: xxxxx is authorized for the appropriate API or scopes:
Forms API

Do I need to specify to GAM that I need the Forms API? It's enabled when I look online:

Forms API.png

Thanks,

Simon

Ross Scroggs

unread,
Jun 9, 2022, 11:26:24 AM6/9/22
to google-ap...@googlegroups.com
Simon,

Try: gam user us...@domain.com update serviceaccount
Make sure that the Forms API is enabled.

Ross



--

Simon Laycock

unread,
Jun 9, 2022, 11:41:45 AM6/9/22
to google-ap...@googlegroups.com
Thanks Ross. I'm home from work now but will try that in the morning. I can't access GAM from home.

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/L5JHUs50azE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS8MbVyz5Wd2GJjSp0v6tXbK%2BvOY66EVDYmo82j_%2BdGrGA%40mail.gmail.com.

Simon Laycock

unread,
Jun 9, 2022, 1:36:52 PM6/9/22
to GAM for Google Workspace
OK, thank you both. I remembered my laptop had GAM on it and once updated to the latest version, running the update and oauth steps sorted it out. (I see you have updated GAM today, Ross!).

The output is interesting - it would need quite a bit of work to get it back into a usable format I think! Is formatjson the only option or can I get it as anything else (Word/PDF for example?).

Simon Laycock

unread,
Jun 16, 2022, 12:58:17 PM6/16/22
to GAM for Google Workspace
Just a small update, MS tweeted last night that Microsoft Forms would gain the ability to import paper forms. I asked if this included PDFs from Google forms and they said yes. If only I could bulk save to PDF!
Reply all
Reply to author
Forward
0 new messages