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
Hi,
i am a newby to web2py and need some help dislaying label in my application.
I’m using Latex and PSTricks to create my barcode label.pdf files.
The problem is, everthing works ok on local Windows or Ubuntu but not from
my Linux-VServer (WEbServer).
The label.pdf is created but not display
8 matches
Mail list logo