Merged documents images

395 views
Skip to first unread message

Tom Anderson

unread,
Oct 1, 2021, 7:34:46 AM10/1/21
to NV Autocrat Add-on
I have used the code:
=arrayformula(if(row(A:A)=1,"ph_cwte",substitute(CC:CC,"open?","uc?export=view&")))

To display thumbnails instead of the actual images to work around images having to be public.
The issue is this solution is very random, sometimes it works perfectly and other time it throws an error on the merge to pdf:
All images are uploaded fine to the folders.


Document successfully created; Invalid image URL [https://drive.google.com/uc?export=view&id=1_NVlCd0SAOsD8AR41aG3SZtlLE2miK6v], make sure that it is public; Invalid image URL [https://drive.google.com/uc?
Document successfully merged; PDF created

Any ideas as to why this function is so random?

Many thanks in advance.

Joseph Schmidt

unread,
Oct 1, 2021, 9:26:41 AM10/1/21
to nv-autocr...@googlegroups.com, Amanda Smith, NewVisions CloudLab (via Google Docs)
That arrayformula will not change the URL to return a thumbnail instead of the image.  I was working on getting an update to the documentation yesterday.  It is on my to do list.

The images have to be anyone with the link.

The issue of random missing images has been going on for a long time.  I think Google made a change that is not returning the image before the script continues to the next row.

I don't know if NewVisions has the same problem when they use Autocrat in their work with the NewYork schools.



--
You received this message because you are subscribed to the Google Groups "NV Autocrat Add-on" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nv-autocrat-add...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nv-autocrat-add-on/2449212b-5c35-4309-9d43-c2a8b3388a9en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages