Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Sending a PDF to Browser

From: warp:reboot:ch at: 15-Sep-2003 3:27

Hello DJ, I'm using this function successfully with apache: givepdf: func [name x /local s][ either file? x [ x: join home_local x s: second third info? x x: read x ][ s: length? x ] m-print-page rejoin ["Cache-control: private" newline "Content-Type: application/pdf" newline {Content-Disposition: attachment; filename=} name newline {Content-Length: } s newline newline x ] m-quit ] hope that helps 8) Will Arp [warp--reboot--ch]