Jan 17
Patrick Larkin PDF download
Jan 17, 2012; 19:00
Patrick Larkin
PDF download
Hi again -
Not a Lasso problem but possibly a Lasso solution?
We have a bunch of payroll forms that need to be served from our website. When I download them to my desktop and print them, they look fine. However, if I click the link on the webpage and Safari opens them with the pdf plugin, the very top of the page gets cut off when printing. Bizarre since I'm assuming Safari uses the same engine as Preview.
Anyway, if there aren't any other easier solutions to this problem, how can do something with Lasso to force it to download to their desktop and not open in the Safari window? Thanks.
Patrick Larkin
Developer/Administrator of Special Systems / Webmaster
Bethlehem Area School District
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 17
Black Night Lists Re: PDF download
Jan 17, 2012; 19:00
Black Night Lists
Re: PDF download
On 17 Jan 2012, at 17:01, Patrick Larkin wrote:
> Not a Lasso problem but possibly a Lasso solution?
>
> We have a bunch of payroll forms that need to be served from our website. When I download them to my desktop and print them, they look fine. However, if I click the link on the webpage and Safari opens them with the pdf plugin, the very top of the page gets cut off when printing. Bizarre since I'm assuming Safari uses the same engine as Preview.
>
> Anyway, if there aren't any other easier solutions to this problem, how can do something with Lasso to force it to download to their desktop and not open in the Safari window? Thanks.
I use the file_serve tag to force the file to be downloaded.
var:'file' '/pathtofile/thefile.pdf';
File_Serve: (Include_Raw: $pdf_file), -Type 'application/pdf', -File 'desiredfilename.pdf';
Regards
Stephen Thirlwell
Black Night Software
LassoSoft Hosting Partner =95 Certified Lasso Developer
http://www.blacknight.co.uk
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 17
Black Night Lists Re: PDF download
Jan 17, 2012; 19:00
Black Night Lists
Re: PDF download
Sorry I tweaked it slightly to post and realised I didn't match the vars.
var:'pdf_file' '/pathtofile/thefile.pdf';
On 17 Jan 2012, at 17:11, Black Night Lists wrote:
> I use the file_serve tag to force the file to be downloaded.
>
> var:'file' '/pathtofile/thefile.pdf';
> File_Serve: (Include_Raw: $pdf_file), -Type 'application/pdf', -File 'desiredfilename.pdf';
Regards
Stephen Thirlwell
Black Night Software
LassoSoft Hosting Partner =95 Certified Lasso Developer
http://www.blacknight.co.uk
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 17
Doug Gentry Re: PDF download
Jan 17, 2012; 19:00
Doug Gentry
Re: PDF download
I use something like this, too, but am wondering if that will really force a browser like Safari to download rather than try to display the PDF with a plug-in. I thought that kind of setting was under the control of the client and we couldn't override it.
Am I wrong?
....Doug
On Jan 17, 2012, at 9:28 AM, Black Night Lists wrote:
> Sorry I tweaked it slightly to post and realised I didn't match the vars.
>
> var:'pdf_file' '/pathtofile/thefile.pdf';
>
>
> On 17 Jan 2012, at 17:11, Black Night Lists wrote:
>
>> I use the file_serve tag to force the file to be downloaded.
>>
>> var:'file' '/pathtofile/thefile.pdf';
>> File_Serve: (Include_Raw: $pdf_file), -Type 'application/pdf', -File 'desiredfilename.pdf';
>
>
> Regards
>
> Stephen Thirlwell
> Black Night Software
> LassoSoft Hosting Partner =95 Certified Lasso Developer
> http://www.blacknight.co.uk
>
>
>
>
>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> Lasso@lists.lassosoft.com
> To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
> Send administrative queries to <Lasso-request@lists.lassosoft.com>
---
Doug Gentry
Dynapolis & Southern Oregon University
p: 541-261-8501 / Toll Free: 866-890-6013
doug@dynapolis.com
www.dynapolis.com - blog: www.plain-sense.com
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 17
Black Night Lists Re: PDF download
Jan 17, 2012; 19:00
Black Night Lists
Re: PDF download
On 17 Jan 2012, at 17:31, Doug Gentry wrote:
> I use something like this, too, but am wondering if that will really force a browser like Safari to download rather than try to display the PDF with a plug-in. I thought that kind of setting was under the control of the client and we couldn't override it.
>
> Am I wrong?
For me it forces the pdf file to be downloaded instead of showing it. If i access the file directly or via a generic link it displays it in my browser window. Is there a specific PDF plug in?
Regards
Stephen Thirlwell
Black Night Software
LassoSoft Hosting Partner =95 Certified Lasso Developer
http://www.blacknight.co.uk
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 17
Patrick Larkin Re: PDF download
Jan 17, 2012; 19:00
Patrick Larkin
Re: PDF download
Yes, it works great. I should have known this since I use something similar in an app where I generate PDFs.
Patrick Larkin
Developer/Administrator of Special Systems / Webmaster
Bethlehem Area School District
On Jan 17, 2012, at 12:41 PM, Black Night Lists wrote:
>
> On 17 Jan 2012, at 17:31, Doug Gentry wrote:
>
>> I use something like this, too, but am wondering if that will really force a browser like Safari to download rather than try to display the PDF with a plug-in. I thought that kind of setting was under the control of the client and we couldn't override it.
>>
>> Am I wrong?
>
> For me it forces the pdf file to be downloaded instead of showing it. If i access the file directly or via a generic link it displays it in my browser window. Is there a specific PDF plug in?
>
>
>
> Regards
>
> Stephen Thirlwell
> Black Night Software
> LassoSoft Hosting Partner =95 Certified Lasso Developer
> http://www.blacknight.co.uk
>
>
>
>
>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> Lasso@lists.lassosoft.com
> To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
> Send administrative queries to <Lasso-request@lists.lassosoft.com>
>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 18
Bil Corry Re: PDF download
Jan 18, 2012; 19:00
Bil Corry
Re: PDF download
Doug Gentry wrote on 1/17/2012 9:31 AM:
> I use something like this, too, but am wondering if that will really force a browser like Safari to download rather than try to display the PDF with a plug-in. I thought that kind of setting was under the control of the client and we couldn't override it.
>
> Am I wrong?
If you link directly to the PDF, Apache will serve it directly in such a way that most browsers will display within the browser.
If Lasso serves it via file_serve, it does so using content-disposition='attachment', which will cause most browsers to prompt for a download. You can override it using the -inline parameter, which causes file_serve to use content-disposition='inline', which most browsers will display within the browser.
- Bil
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 19
Marc Vos Re: PDF download
Jan 19, 2012; 19:00
Marc Vos
Re: PDF download
Ah, what a coincidence! We were testing file_serve on iPad and it did not work. This just the answer I think I needed. Going to try -inline this afternoon!
- -
Marc
On Jan 19, 2012, at 05:25 AM, Bil Corry <bil@corry.biz> wrote:
Doug Gentry wrote on 1/17/2012 9:31 AM:
> I use something like this, too, but am wondering if that will really force a browser like Safari to download rather than try to display the PDF with a plug-in. I thought that kind of setting was under the control of the client and we couldn't override it.
>
> Am I wrong?
If you link directly to the PDF, Apache will serve it directly in such a way that most browsers will display within the browser.
If Lasso serves it via file_serve, it does so using content-disposition='attachment', which will cause most browsers to prompt for a download. You can override it using the -inline parameter, which causes file_serve to use content-disposition='inline', which most browsers will display within the browser.
- Bil
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>