Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2015-06-04 10:51:57

daviddw
Member
Registered: 2015-06-03
Posts: 5

Download PDF

Hi all,

I am using Downloads_GetLink to download a PDF file, but I only get the first page. How can I get the whole file?

Thanks!

Offline

#2 2015-06-05 14:22:16

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: Download PDF

Hi David,

This is probably closely related to https://secure.thirdlight.com/developer … php?id=111 - try the method suggested there.

Dominic

Offline

#3 2015-06-08 10:21:30

daviddw
Member
Registered: 2015-06-03
Posts: 5

Re: Download PDF

Hi Dominic,

I tried what you said in that post, but I still get the first page only. What parameters do I have to define in the Downloads_GetLink function to get the whole pdf file?

Thanks!

Offline

#4 2015-07-16 17:08:22

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: Download PDF

Hi David,

In the current version of IMS, simply calling it with no parameters other than the file ID will be sufficient. Previously,

{assetId:<File ID>,settings:{width:-1,height:-1,format:-1}}

would have been the arguments to pass to Downloads.GetLink.

Offline

Board footer