View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - PDF print not working - Page 2 - ProjeQtOr
 
 

PDF print not working

More
22 Aug 2012 12:01 #7 by babynus
Replied by babynus on topic Re: PDF print not working

Which browser / version are you using ? FF 14.0.1 - Chrome 21 IE 9

So, it does not seem to be browser based issue...

Can you try same thing on Demo ? What is the result ? It works.

So sure it is a server based issue.
What is you server : is it a local install, a server on your own or a hosted server ?
Pay attention to some free hosting services that include adds to your pages : they modify the http response, and pdf pages will possibly not be displayed from these servers.

I see URL is not getting the ObjectId parameter...

It's not an issue : objectId is not set if you print the list.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
22 Aug 2012 15:59 - 22 Aug 2012 16:03 #8 by jucamvil
Replied by jucamvil on topic Re: PDF print not working

babynus wrote: What is you server :


It is a local server (Windows Server 2008 R2 - WAMP). Everything works like a charm, excepting for the PDF option.
Maybe Am I missing any configuration? or permissions?
Last edit: 22 Aug 2012 16:03 by jucamvil.

Please Log in or Create an account to join the conversation.

More
22 Aug 2012 20:30 #9 by babynus
Replied by babynus on topic Re: PDF print not working
Could you try :
- open Firefox or Chrome, with console opened
- in user parameters screen, select "pdf export in new wintdow to" "Yes"
- generated pdf

=> does the new window open ?
=> do you get a response from server or is the browser waiting for resonse ?
=> if you get a response, what is it ? can you post here the header of the response ?

Thanks.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
22 Aug 2012 22:41 #10 by jucamvil
Replied by jucamvil on topic Re: PDF print not working

babynus wrote: Could you try :
- open Firefox or Chrome, with console opened
- in user parameters screen, select "pdf export in new wintdow to" "Yes"
- generated pdf

=> does the new window open ? Yes. Always.
=> do you get a response from server or is the browser waiting for resonse ? I get response. Blank page shown in 108ms
=> if you get a response, what is it ? can you post here the header of the response ?
Header:
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0Connection:Keep-AliveContent-Length:0Content-Type:text/htmlDate:Wed, 22 Aug 2012 20:39:48 GMTExpires:Thu, 19 Nov 1981 08:52:00 GMTKeep-Alive:timeout=5, max=99Pragma:no-cacheServer:Apache/2.2.22 (Win64) PHP/5.3.13X-Powered-By:PHP/5.3.13


Thanks.

Please Log in or Create an account to join the conversation.

More
25 Aug 2012 16:18 - 25 Aug 2012 16:19 #11 by babynus
Replied by babynus on topic Re: PDF print not working
You have a header issue.
Here is the header I get :
HTTP/1.1 200 OK
Date: Sat, 25 Aug 2012 14:12:11 GMT
Server: Apache/2.2.21 (Win32) PHP/5.3.9
X-Powered-By: PHP/5.3.9
Expires: Sat, 26 Jul 1997 05:00:00 GMT
Cache-Control: public, must-revalidate, max-age=0
Pragma: public
Last-Modified: Sat, 25 Aug 2012 14:12:12 GMT
Content-Length: 601552
Content-Disposition: inline; filename="document.pdf";
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/pdf
You should try from demo : you should get the same header.
What is most important is the Content-Type, that should be application/pdf; yours is text/html. As you recieve some pdf format, your browser cannot translate this into html and displays a blank page.

You must check your web browser, it must automatically change the header depneding on extension of page name : he automatically assumes to be htms/text because page name extension is .php

Babynus
Administrator of ProjeQtOr web site
Last edit: 25 Aug 2012 16:19 by babynus.

Please Log in or Create an account to join the conversation.

More
25 Aug 2012 16:38 - 25 Aug 2012 16:59 #12 by babynus
Replied by babynus on topic Re: PDF print not working
If you use apache, header content-type can be automatically changes from mime.type configuration file :
text/html php

Remove the .php extension.
Restart your web server and test again : it should work better, as apache will keep the defined content-type

Babynus
Administrator of ProjeQtOr web site
Last edit: 25 Aug 2012 16:59 by babynus.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.048 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.