Can't create an empty PDF document

105 views
Skip to first unread message

cwood

unread,
Jan 3, 2010, 12:07:21 PM1/3/10
to Google Documents List API
I'm trying to upload a PDF document in two steps by first creating an
empty document and then updating it with the contents. But when I try
to create the empty PDF document () I get the error "Document content
required." I don't get this error when creating empty document,
spreadsheet, or presentation documents. Any ideas?

Thanks,
Charlie

Eric (Google)

unread,
Jan 3, 2010, 4:40:01 PM1/3/10
to Google Documents List API
Creating empty PDFs isn't supported like the other formats.
PDFs need content.

cwood

unread,
Jan 3, 2010, 10:32:14 PM1/3/10
to Google Documents List API
Well I guess that explains it. :-) So I could either do both at the
same time with multipart encoding or first upload the document then
update the metadata, is that right?

Thanks,
Charlie

Eric Bidelman

unread,
Jan 3, 2010, 10:46:06 PM1/3/10
to google-docum...@googlegroups.com
Correct.

cwood

unread,
Jan 3, 2010, 10:51:33 PM1/3/10
to Google Documents List API
Great--thanks for following up.

Regards,
Charlie

Reply all
Reply to author
Forward
0 new messages