If you didn't want to go down the pdf path you could just use a different
stylesheet for the printed page.

Using measurements like cm instead of px or pt in your css file, you can
format your material for exact paper sizes.

This way the content can be pulled out of the database using PHP, and
formatted for screen and print using plain old HTML and 2 different
cascading style sheets or 1 style sheet....like so:

<style>
@media screen
{
p.test {font-family:verdana,sans-serif; font-size:14px}
}

@media print
{
p.test {font-family:times,serif; font-size:10px}
}
@media screen,print
{
p.test {font-weight:bold}
}
</style>
http://www.w3schools.com/css/css_mediatypes.asp



-----Original Message-----
From: Howard Lowndes [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 4:01 AM
To: Mail List - SLUG; Mail List - MURLUG
Subject: [SLUG] Web page/Formatted print - ideas sought


I want to develop an application that uses a background database but 
delivers the displayed data in a web browser.  OK, no big deal so far.

The problem is that I also want to be able to deliver printable material
which will need a degree of formatting to suit a preprinted form.  This
printable material could comprise any number of formatted output sheets to
be printed as overlays on the preprinted forms.

Given that I want to use a web browser as the main user interface, what
would be the best language in which to write the app?  I'm guessing PHP
rather than Perl; I see that that has a set of PDF functions that might
give me what I want.

Are there any good pointers out there?

-- 
Howard.
LANNet Computing Associates - Your Linux people <http://www.lannetlinux.com>
------------------------------------------
Flatter government, not fatter government - Get rid of the Australian
states.
------------------------------------------
There are 10 types of people in the world, those who understand binary, 
and those who don't.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

*************************************************************
This mail, including any attached files may contain
confidential and privileged information for the sole
use of the intended recipient(s). Any review, use, 
distribution or disclosure by others is strictly prohibited.
If you are not the intended receipient (or authorised to 
receive information for the recipient), please contact 
the sender by reply e-mail and delete all copies of
this message.
*************************************************************
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to