.pdf report saved as *.php

View: New views
12 Messages — Rating Filter:   Alert me  

.pdf report saved as *.php

by billlagr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All
Whenever I try to create any pdf report, it is saved with the name of the php module rather than xxx.pdf - eg the report is saved as 'PrintCustOrder_generic.php', however it is a valid .pdf file, so if I rename it to 'xxx.pdf' the report is fine.
Anyone have any suggestions how I can fix this?

I am running webERP 3.11, under Apache 2.2.3, PHP5.1.6, MySQL 5.045, on a fully up to date CentOS-5.3. I am also running Firefox 3.0.12

Thanks
Bill

Re: .pdf report saved as *.php

by Javier de Lorenzo-Cáceres :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bill,

I've taken a look at PrintCustOrder_generic.php line 191:

$pdf->Stream();

which is a call to

function Stream(){
$this-<Output('','I');  // you will find it in the file class.pdf.php
}

Well, the first argument of Output, i.e., the empty string, is the filename.
(the second, i.e., 'I', is how you want the pdf to be served, i.e., the
client's browser behaviour).

You have two options (I believe):
1) To change Stream by Output to call Output directly.
2) To edit Stream definition to pass by value the filename.

regards,
javier



----- Original Message -----
From: "billlagr" <billlagr@...>
To: <web-erp-users@...>
Sent: Tuesday, September 22, 2009 12:30 PM
Subject: [webERP-users] .pdf report saved as *.php


>
> Hi All
> Whenever I try to create any pdf report, it is saved with the name of the
> php module rather than xxx.pdf - eg the report is saved as
> 'PrintCustOrder_generic.php', however it is a valid .pdf file, so if I
> rename it to 'xxx.pdf' the report is fine.
> Anyone have any suggestions how I can fix this?
>
> I am running webERP 3.11, under Apache 2.2.3, PHP5.1.6, MySQL 5.045, on a
> fully up to date CentOS-5.3. I am also running Firefox 3.0.12
>
> Thanks
> Bill
> --
> View this message in context:
> http://www.nabble.com/.pdf-report-saved-as-*.php-tp25530681p25530681.html
> Sent from the web-erp-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> web-ERP-users mailing list
> web-ERP-users@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-users 


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

Re: .pdf report saved as *.php

by Tim Schofield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bill/Javier,

I have been through and changed the calls to Stream() to be calls to
Output() with a pdf file extension. I think this is the best way as it
gives us more flexibility.

Thanks
Tim


2009/9/22 AESE, S.L., Javier de Lorenzo-Cáceres. <info@...>:

> Hi Bill,
>
> I've taken a look at PrintCustOrder_generic.php line 191:
>
> $pdf->Stream();
>
> which is a call to
>
> function Stream(){
> $this-<Output('','I');  // you will find it in the file class.pdf.php
> }
>
> Well, the first argument of Output, i.e., the empty string, is the filename.
> (the second, i.e., 'I', is how you want the pdf to be served, i.e., the
> client's browser behaviour).
>
> You have two options (I believe):
> 1) To change Stream by Output to call Output directly.
> 2) To edit Stream definition to pass by value the filename.
>
> regards,
> javier
>
>
>
> ----- Original Message -----
> From: "billlagr" <billlagr@...>
> To: <web-erp-users@...>
> Sent: Tuesday, September 22, 2009 12:30 PM
> Subject: [webERP-users] .pdf report saved as *.php
>
>
>>
>> Hi All
>> Whenever I try to create any pdf report, it is saved with the name of the
>> php module rather than xxx.pdf - eg the report is saved as
>> 'PrintCustOrder_generic.php', however it is a valid .pdf file, so if I
>> rename it to 'xxx.pdf' the report is fine.
>> Anyone have any suggestions how I can fix this?
>>
>> I am running webERP 3.11, under Apache 2.2.3, PHP5.1.6, MySQL 5.045, on a
>> fully up to date CentOS-5.3. I am also running Firefox 3.0.12
>>
>> Thanks
>> Bill
>> --
>> View this message in context:
>> http://www.nabble.com/.pdf-report-saved-as-*.php-tp25530681p25530681.html
>> Sent from the web-erp-users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry® Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9-12, 2009. Register
>> now!
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> web-ERP-users mailing list
>> web-ERP-users@...
>> https://lists.sourceforge.net/lists/listinfo/web-erp-users
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> web-ERP-users mailing list
> web-ERP-users@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

Re: .pdf report saved as *.php

by Rüdiger Kluge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have exactly the same Problem with 3.11.1
Is there any solution, eg. Browser settings, to solve the problem?

I'm using local:
Debian 5.03
Iceweasel (Firefox) 3.06
Kpdf 0.5.9

Regards
Ruediger

Re: .pdf report saved as *.php

by Tim Schofield-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is solved in the latest development code. However just
changing the extension to .pdf will be ok.

Tim


2009/12/22 Rüdiger Kluge <ruediger.kluge@...>:

>
> Hi,
>
> I have exactly the same Problem with 3.11.1
> Is there any solution, eg. Browser settings, to solve the problem?
>
> I'm using local:
> Debian 5.03
> Iceweasel (Firefox) 3.06
> Kpdf 0.5.9
>
> Regards
> Ruediger
>
> --
> View this message in context: http://old.nabble.com/.pdf-report-saved-as-*.php-tp25530681p26887521.html
> Sent from the web-erp-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> web-ERP-users mailing list
> web-ERP-users@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-users
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

Re: .pdf report saved as *.php

by Rüdiger Kluge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tim

Tim Schofield-4 wrote:
The problem is solved in the latest development code. However just
changing the extension to .pdf will be ok.
Tim
Ok, I will do this.
I tried the same on an other client:
MS XP pro
Seamonkey
foxit reader

In this combination the PDF is opened without problems. Foxit PDF reader seems not to look to the file extension, so change of the extension is not necessary. Kpdf and kghostview need the correct file extension an do not open PDF files with .php extension.

Thanks
Ruediger

Re: .pdf report saved as *.php

by Tim Schofield-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Rüdiger,

Yes some pdf clients are smarter than others and can recognise a pdf
file whatever the extension.

Tim

2009/12/22 Rüdiger Kluge <ruediger.kluge@...>:

>
> Hi Tim
>
>
> Tim Schofield-4 wrote:
>>
>> The problem is solved in the latest development code. However just
>> changing the extension to .pdf will be ok.
>> Tim
>>
>
> Ok, I will do this.
> I tried the same on an other client:
> MS XP pro
> Seamonkey
> foxit reader
>
> In this combination the PDF is opened without problems. Foxit PDF reader
> seems not to look to the file extension, so change of the extension is not
> necessary. Kpdf and kghostview need the correct file extension an do not
> open PDF files with .php extension.
>
> Thanks
> Ruediger
> --
> View this message in context: http://old.nabble.com/.pdf-report-saved-as-*.php-tp25530681p26893515.html
> Sent from the web-erp-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> web-ERP-users mailing list
> web-ERP-users@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-users
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

css/professional- rtl

by Nigel Horne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some time ago I mentioned how the space in the directory name "professional-
rtl" was causing me grief.  The space is still there in the latest CVS
version, when will it be fixed?

-Nigel


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

Re: css/professional- rtl

by Tim Schofield-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nigel, this is updated in svn on sourceforge.

Tim


2009/12/23 Nigel Horne <njh@...>:

> Some time ago I mentioned how the space in the directory name "professional-
> rtl" was causing me grief.  The space is still there in the latest CVS
> version, when will it be fixed?
>
> -Nigel
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> web-ERP-users mailing list
> web-ERP-users@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-users
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

Re: css/professional- rtl

by Nigel Horne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tim Schofield wrote:
> Hi Nigel, this is updated in svn on sourceforge.
>  
I'm using CVS: cvs -z3
-d:pserver:anonymous@...:/cvsroot/web-erp co -P
webERP.  Is that not synced in with SVN?
> Tim
>  
-Nigel

--
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter.
NJH Music, ICQ#20252325
njh@... http://www.bandsman.co.uk


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

Re: css/professional- rtl

by Tim Schofield-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nigel,

No its not. The svn repository has replaced the cvs one.

Thanks
Tim


2009/12/23 Nigel Horne <njh@...>:

> Tim Schofield wrote:
>> Hi Nigel, this is updated in svn on sourceforge.
>>
> I'm using CVS: cvs -z3
> -d:pserver:anonymous@...:/cvsroot/web-erp co -P
> webERP.  Is that not synced in with SVN?
>> Tim
>>
> -Nigel
>
> --
> Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter.
> NJH Music, ICQ#20252325
> njh@... http://www.bandsman.co.uk
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> web-ERP-users mailing list
> web-ERP-users@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-users
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users

Re: css/professional- rtl

by Nigel Horne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Hi Nigel,
>
> No its not. The svn repository has replaced the cvs one.

OK.  I'll give SVN a go - thanks.
>
> Thanks
> Tim

-Nigel
 

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
web-ERP-users mailing list
web-ERP-users@...
https://lists.sourceforge.net/lists/listinfo/web-erp-users