Thanks!
The first part is working!!! The filename is as it is supposed to be!
This is my code at the Moment, maybe some can use it:
ltxfile = str(os.path.join(request.folder, 'tex', 'languages.tex'))
pdffile = str(os.path.join(request.folder, 'tex', 'languages.pdf'))
#
On Tuesday, November 3, 2015 at 3:30:59 PM UTC-8, Karl Florian wrote:
>
> No it didn't work on the web.
> local Linux and Windows worked fine.
> *I am using str(os.path.join(request.folder, 'tex', 'languages.tex')) to
> set the path to my files.*
>
> I am using Massimiliano's code to start my pd
No it didn't work on the web.
local Linux and Windows worked fine.
*I am using str(os.path.join(request.folder, 'tex', 'languages.tex')) to
set the path to my files.*
I am using Massimiliano's code to start my pdf's.
But i still have the 2 Problems i mentioned before.
Am Dienstag, 3. November 2
On Tuesday, November 3, 2015 at 1:26:26 PM UTC-8, Karl Florian wrote:
>
> I think i found my own solution.
> Wo ever has the same Problem, try this!!!
>
> import webbrowser
> webbrowser.open_new(r'file://C:\path\to\file.pdf')
>
>
> It works just the way i Need it.
>
>
I'm glad it wo
I think i found my own solution.
Wo ever has the same Problem, try this!!!
import webbrowser
webbrowser.open_new(r'file://C:\path\to\file.pdf')
It works just the way i Need it.
Am Dienstag, 3. November 2015 16:38:06 UTC+1 schrieb Karl Florian:
>
> Hi Massimiliano,
> it works th
Hi Massimiliano,
it works thank you!
However there are 2 things i do not like:
1) My PDF File is renamed to the same as my Controller function Name plus a
number and *without the Extension .pdf*.
Example:* printlanguages+cd123452*
2) After the *"return response.stream()"* my *submit button* t
Try this way to display your pdf:
def yourcontroller()
# generate pdf
. . .
import cStringIO
data = open(filename,"rb").read()
response.headers['Content-Type']='application/pdf'
return response.stream(cStringIO.StringIO(data))
On Mon, Nov 2, 2015 at 4:29 PM, Karl Floria
7 matches
Mail list logo