Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8882 > unrolled thread

PHP: convert a page to pdf

Started bybadmus aliu <bajab247@gmail.com>
First post2013-03-28 01:40 -0700
Last post2013-03-29 12:16 +0000
Articles 8 on this page of 28 — 8 participants

Back to article view | Back to comp.lang.php


Contents

  PHP: convert a page to pdf badmus aliu <bajab247@gmail.com> - 2013-03-28 01:40 -0700
    Re: PHP: convert a page to pdf The Natural Philosopher <tnp@invalid.invalid> - 2013-03-28 10:57 +0000
      Re: PHP: convert a page to pdf The Natural Philosopher <tnp@invalid.invalid> - 2013-03-28 11:15 +0000
    Re: PHP: convert a page to pdf Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-28 09:14 -0400
    Re: PHP: convert a page to pdf Michael Vilain <vilain@NOspamcop.net> - 2013-03-28 09:50 -0700
      Re: PHP: convert a page to pdf The Natural Philosopher <tnp@invalid.invalid> - 2013-03-28 17:31 +0000
      Re: PHP: convert a page to pdf adrian@poppyrecords.invalid.invalid (Adrian Tuddenham) - 2013-03-28 17:32 +0000
        Re: PHP: convert a page to pdf The Natural Philosopher <tnp@invalid.invalid> - 2013-03-28 18:04 +0000
          Re: PHP: convert a page to pdf adrian@poppyrecords.invalid.invalid (Adrian Tuddenham) - 2013-03-28 19:14 +0000
            Re: PHP: convert a page to pdf The Natural Philosopher <tnp@invalid.invalid> - 2013-03-28 19:42 +0000
              Re: PHP: convert a page to pdf [OT] adrian@poppyrecords.invalid.invalid (Adrian Tuddenham) - 2013-03-28 21:38 +0000
                Re: PHP: convert a page to pdf [OT] The Natural Philosopher <tnp@invalid.invalid> - 2013-03-28 22:30 +0000
                  Re: PHP: convert a page to pdf [OT] adrian@poppyrecords.invalid.invalid (Adrian Tuddenham) - 2013-03-29 08:44 +0000
                    Re: PHP: convert a page to pdf [OT] The Natural Philosopher <tnp@invalid.invalid> - 2013-03-29 12:59 +0000
                      Re: PHP: convert a page to pdf [OT] Tim Streater <timstreater@greenbee.net> - 2013-03-29 13:18 +0000
                        [OT] Pre-emptive multi-tasking (was: PHP: convert a page to pdf [OT]) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-29 15:01 +0100
                          Re: [OT] Pre-emptive multi-tasking (was: PHP: convert a page to pdf [OT]) Tim Streater <timstreater@greenbee.net> - 2013-03-29 16:57 +0000
                            Re: [OT] Pre-emptive multi-tasking The Natural Philosopher <tnp@invalid.invalid> - 2013-03-29 17:13 +0000
                              Re: [OT] Pre-emptive multi-tasking Tim Streater <timstreater@greenbee.net> - 2013-03-29 17:20 +0000
                        Re: PHP: convert a page to pdf [OT] The Natural Philosopher <tnp@invalid.invalid> - 2013-03-29 14:41 +0000
                          Re: PHP: convert a page to pdf [OT] Tim Streater <timstreater@greenbee.net> - 2013-03-29 16:36 +0000
                      Re: PHP: convert a page to pdf [OT] adrian@poppyrecords.invalid.invalid (Adrian Tuddenham) - 2013-03-29 13:57 +0000
                    Re: PHP: convert a page to pdf [OT] Michael Vilain <vilain@NOspamcop.net> - 2013-03-29 11:22 -0700
          Re: PHP: convert a page to pdf Tim Streater <timstreater@greenbee.net> - 2013-03-28 21:19 +0000
      Re: PHP: convert a page to pdf Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-28 18:39 +0100
        Re: PHP: convert a page to pdf The Natural Philosopher <tnp@invalid.invalid> - 2013-03-28 18:06 +0000
        Re: PHP: convert a page to pdf Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-28 15:21 -0400
      Re: PHP: convert a page to pdf Andy <str_343@hotmail.com> - 2013-03-29 12:16 +0000

Page 2 of 2 — ← Prev page 1 [2]


#8909 — Re: PHP: convert a page to pdf [OT]

FromTim Streater <timstreater@greenbee.net>
Date2013-03-29 16:36 +0000
SubjectRe: PHP: convert a page to pdf [OT]
Message-ID<timstreater-7A28CB.16365529032013@news.individual.net>
In reply to#8908
In article <kj4971$ggr$2@news.albasani.net>,
 The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 29/03/13 13:18, Tim Streater wrote:
> > In article <kj4381$3kv$1@news.albasani.net>,
> > The Natural Philosopher <tnp@invalid.invalid> wrote:
> >
> >> cant you come up with something better than that? like " *nix had
> >> proper pre-emptive multi tasking years before os9 and windows failed
> >> to implement it correctly"
> >
> > And plenty of OSes had it before unix. So your point is *what* precisely?
> >
> well exactly. Good ideas live on., bad ideas like OS9, die rapidly.

There was nothing particularly bad about it. It had just come to the end 
of its life. I used it for network management and also to do software 
development in the mid/late 90s, typically with up times of a month or 
two.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

[toc] | [prev] | [next] | [standalone]


#8906 — Re: PHP: convert a page to pdf [OT]

Fromadrian@poppyrecords.invalid.invalid (Adrian Tuddenham)
Date2013-03-29 13:57 +0000
SubjectRe: PHP: convert a page to pdf [OT]
Message-ID<1l0hy6f.q7qdwpao3y6yN%adrian@poppyrecords.invalid.invalid>
In reply to#8904
The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 29/03/13 08:44, Adrian Tuddenham wrote:
> > The Natural Philosopher <tnp@invalid.invalid> wrote:
> >
> >> On 28/03/13 21:38, Adrian Tuddenham wrote:
> >>
> >>>
> >>> Mac OS 8 and 9 are still perfectly adequate for non-entertainment work
> >>> and have many good features which were thrown away when Mac introduced
> >>> OSX.  And yes, I do run it natively on all but one of my machines.
> >>>
> >> How's your pet brontosauraus?
> >
> > As an engineer, my choices are based on what does the job best, not on
> > what is currently fashionable.  My car has pneumatic tyres (Dunlop
> > 1888), my house is fitted with ordinary water taps (Brecknell 1859) and
> > my video projector uses an arc lamp (Davy 1801).
> >
> > If you want to use the most up-to-date computer system, bear in mind
> > that  OSX is based on UNIX from 1969, whereas MacOS is much newer,
> > having been first released in 1984.
> >
> >
> all ultimately  'written' in machine code, which predates the lot of them.
> 
> 
> Sheesh. a religious nutcase.
> 
> "Olde is better" (cf tyres)
> "New is better" Cf OS9).

I am trying to explain to you that "old" and "new" are non-concepts
where engineering is concerned.   You are trying to categorise things
according to a false dictum. 

The wheel and the lever are among the oldest machines known to mankind;
'phone apps are among the newest.   Neither of these is inherently bad
or good because of when it was invented, they are good where they are
appropriate and do the job well.


-- 
~ Adrian Tuddenham ~
(Remove the ".invalid"s and add ".co.uk" to reply)
www.poppyrecords.co.uk

[toc] | [prev] | [next] | [standalone]


#8913 — Re: PHP: convert a page to pdf [OT]

FromMichael Vilain <vilain@NOspamcop.net>
Date2013-03-29 11:22 -0700
SubjectRe: PHP: convert a page to pdf [OT]
Message-ID<vilain-788168.11225829032013@news.individual.net>
In reply to#8899
In article <1l0hjp2.rte4bo90sg64N%adrian@poppyrecords.invalid.invalid>,
 adrian@poppyrecords.invalid.invalid (Adrian Tuddenham) wrote:

> The Natural Philosopher <tnp@invalid.invalid> wrote:
> 
> > On 28/03/13 21:38, Adrian Tuddenham wrote:
> > 
> > >
> > > Mac OS 8 and 9 are still perfectly adequate for non-entertainment work
> > > and have many good features which were thrown away when Mac introduced
> > > OSX.  And yes, I do run it natively on all but one of my machines.
> > >
> > How's your pet brontosauraus?
> 
> As an engineer, my choices are based on what does the job best, not on
> what is currently fashionable.  My car has pneumatic tyres (Dunlop
> 1888), my house is fitted with ordinary water taps (Brecknell 1859) and
> my video projector uses an arc lamp (Davy 1801).
> 
> If you want to use the most up-to-date computer system, bear in mind
> that  OSX is based on UNIX from 1969, whereas MacOS is much newer,
> having been first released in 1984.

To return the discussion to the OP's question.

I _think_ they're trying to convert a data-generated webapp page to PDF, 
but I could be wrong here.

If they're trying to do it on a client computer (e.g. your bank 
generates a statement on the page and you want to capture it as a PDF), 
then there are solutions like printing the page as PDF on MacOS X or 
some sort of plugin on Windows.  Linux, I have no clue.

If they're trying to actually create a feature of the webapp to generate 
a PDF, then they're have to incorporate various libraries into their php 
or mod_php interpreter and modify the page to include a button that will 
run code to generate the page using those libraries and draw the PDF.  
At least that's what had to be done last I checked.  It may have changed.

As to who's the better engineer here?  I don't know.  Just get a ruler, 
measure, and report your findings.  Let time decide who will rot first.

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

[toc] | [prev] | [next] | [standalone]


#8895

FromTim Streater <timstreater@greenbee.net>
Date2013-03-28 21:19 +0000
Message-ID<timstreater-0C4FCF.21194628032013@news.individual.net>
In reply to#8890
In article <kj20n9$cib$1@news.albasani.net>,
 The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 28/03/13 17:32, Adrian Tuddenham wrote:

> > Some MacOS applications such as PageMaker 6.5 have an option to export
> > as a PDF; but it isn't really a direct conversion, it still goes through
> > the PostScript- Distiller route.

> shows how backward OSX is..

No it doesn't. You can print directly to PDF from any application. PM no 
longer runs on OS X.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

[toc] | [prev] | [next] | [standalone]


#8889

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-03-28 18:39 +0100
Message-ID<3185527.45xQ6MTJ3Y@PointedEars.de>
In reply to#8886
Michael Vilain wrote:

> badmus aliu <bajab247@gmail.com> wrote:
>> can anyone help me on how to convert a database driven page to pdf using
>> php
> 
> On MacOS, just print the generated page and save to PDF.
> 
> On Windows or Linux, you'll have to code a solution using various
> libraries.

Utter nonsense.  GNU/Linux systems have the built-in capability to generate 
PDFs that is used by graphical browsers (like Chromium).  Windows systems 
usually have that capability by installing PDF printer drivers (that often 
come with PDF software, like Adobe Acrobat).

This question does not appear to have anything to do with PHP programming, 
but it might be badly worded.


PointedEars
-- 
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
  -- Richard Cornford, cljs, <cife6q$253$1$8300dec7@news.demon.co.uk> (2004)

[toc] | [prev] | [next] | [standalone]


#8891

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2013-03-28 18:06 +0000
Message-ID<kj20qm$cib$2@news.albasani.net>
In reply to#8889
On 28/03/13 17:39, Thomas 'PointedEars' Lahn wrote:
> Michael Vilain wrote:
>
>> badmus aliu <bajab247@gmail.com> wrote:
>>> can anyone help me on how to convert a database driven page to pdf using
>>> php
>>
>> On MacOS, just print the generated page and save to PDF.
>>
>> On Windows or Linux, you'll have to code a solution using various
>> libraries.
>
> Utter nonsense.  GNU/Linux systems have the built-in capability to generate
> PDFs that is used by graphical browsers (like Chromium).  Windows systems
> usually have that capability by installing PDF printer drivers (that often
> come with PDF software, like Adobe Acrobat).
>
> This question does not appear to have anything to do with PHP programming,
> but it might be badly worded.
>
>
> PointedEars
>
no thomas, the response was clueless that's all. The OP wanted to take 
some database output and prepare a PDF from it ON THE SERVER.

saying 'you can print the browsers page as a pdf' was true, but irrelevant.



-- 
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to 
lead are elected by the least capable of producing, and where the 
members of society least likely to sustain themselves or succeed, are 
rewarded with goods and services paid for by the confiscated wealth of a 
diminishing number of producers.

[toc] | [prev] | [next] | [standalone]


#8893

FromJerry Stuckle <jstucklex@attglobal.net>
Date2013-03-28 15:21 -0400
Message-ID<kj254i$uve$1@dont-email.me>
In reply to#8889
On 3/28/2013 1:39 PM, Thomas 'PointedEars' Lahn wrote:
> Michael Vilain wrote:
>
>> badmus aliu <bajab247@gmail.com> wrote:
>>> can anyone help me on how to convert a database driven page to pdf using
>>> php
>>
>> On MacOS, just print the generated page and save to PDF.
>>
>> On Windows or Linux, you'll have to code a solution using various
>> libraries.
>
> Utter nonsense.  GNU/Linux systems have the built-in capability to generate
> PDFs that is used by graphical browsers (like Chromium).  Windows systems
> usually have that capability by installing PDF printer drivers (that often
> come with PDF software, like Adobe Acrobat).
>

Which is hardly a server-side solution, is it?

> This question does not appear to have anything to do with PHP programming,
> but it might be badly worded.
>
>
> PointedEars
>

What part of "Convert a page to pdf USING PHP" don't you understand?

Looks like your pointed head is in it's normal location.  You might try 
standing up and taking a load off your brain.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#8901

FromAndy <str_343@hotmail.com>
Date2013-03-29 12:16 +0000
Message-ID<str_343-4AB87A.12165129032013@[74.209.136.95.rev.sfr.net]>
In reply to#8886
In article <vilain-82CAD9.09502028032013@news.individual.net>,
 Michael Vilain <vilain@NOspamcop.net> wrote:

> In article <a2b28350-6f57-43bc-935e-66a179409287@googlegroups.com>,
>  badmus aliu <bajab247@gmail.com> wrote:
> 
> > can anyone help me on how to convert a database driven page to pdf using 
> > php 
> 
> On MacOS, just print the generated page and save to PDF.
> 
> On Windows or Linux, you'll have to code a solution using various 
> libraries.

we have good results using pdflib there is a free version with less 
features, although enough to do most jobs, and a paid version which is 
very comprehensive
http://www.pdflib.com/

regards
Andy

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.php


csiph-web