473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CSS Acrobat @Media

Site under discussion

http://www.sturgood.com/dna/index.html

illustration of problem

http://www.sturgood.com/dna/scrnshot..._problems.html

I have posted and searched in adobe.acrobat.windows. no response and
seemingly no interest.

Acrobat does not do css well, it is following the literal html flow,
and basing display off the padding.

Padding was used to give room for image and link box.

I wanted the user to be able to download the whole site as a pdf on
their computer and print, because,

duh

the print command in IE6 prints it the same way.

So, either way, I cannot get these pages to print as displayed.

Is the @media print rule somehow my salvation, or am I missing
something really simple?

Acrobat does this page of the site really well

http://www.sturgood.com/dna/trace_demo.html
will print the table landscape nicely.

I am assuming a good @media print rule will do the same thing for
printing the page from the browser (?)

Reason for this dilemma is that we will be posting a lot of tabular
data from dna results, and people will want to print it out. I am
hoping to not have to provide print of each table separately.

thanks for any tips or pointers

johnSteve
Jul 20 '05 #1
10 2592
st****@bresnan.net wrote:
Site under discussion

http://www.sturgood.com/dna/index.html
content type text/html
illustration of problem
http://www.sturgood.com/dna/scrnshot..._problems.html

I have posted and searched in adobe.acrobat.windows. no response and
seemingly no interest.
? I'm not sure what Acrobat reader has to do with www stylesheets.
Acrobat does not do css well,>
Does it do css at all?
I wanted the user to be able to download the whole site as a pdf on
their computer and print, because,

duh

the print command in IE6 prints it the same way.
You've completely lost me. Are your documents normally in pdf?
Is the @media print rule somehow my salvation, or am I missing
something really simple?
Or <link media="print" href="style.css" type="text/css">
we will be posting a lot of tabular data from dna results, and people
will want to print it out. I am hoping to not have to provide print
of each table separately.


Print stylesheets can help you avoid having a separate "printable"
document, as long as you author your pages correctly.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
st****@bresnan.net wrote:
Site under discussion

http://www.sturgood.com/dna/index.html
content type text/html
illustration of problem
http://www.sturgood.com/dna/scrnshot..._problems.html

I have posted and searched in adobe.acrobat.windows. no response and
seemingly no interest.
? I'm not sure what Acrobat reader has to do with www stylesheets.
Acrobat does not do css well,>
Does it do css at all?
I wanted the user to be able to download the whole site as a pdf on
their computer and print, because,

duh

the print command in IE6 prints it the same way.
You've completely lost me. Are your documents normally in pdf?
Is the @media print rule somehow my salvation, or am I missing
something really simple?
Or <link media="print" href="style.css" type="text/css">
we will be posting a lot of tabular data from dna results, and people
will want to print it out. I am hoping to not have to provide print
of each table separately.


Print stylesheets can help you avoid having a separate "printable"
document, as long as you author your pages correctly.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
See:

http://www.macromedia.com/devnet/mx/..._to_print.html

Read the paragraph beginning under the heading "Media Attributes:
Screen, Print, and All"

It appears Macromedia composes an entirely separate style sheet suited
for (and targeting) only PDF file creations:

http://www.communitymx.com/cssfiles/pdfprint.css

You may think it's a pain to write up yet another CSS file for "print
only" (or whatever), but it is the most effective way to control the
appearance of your web page as it will appear on paper. One thing I
can do with a <link rel="stylesheet" href="print.css" type="text/css"
media="print"> line is eliminate from print versions the extraneous
and superfluous:

http://www.consultmillennia.com/clientservices.html

For example, printing the above page will render it on paper without
navigation links. Who needs them on a printed page? Even if you did
print them, they wouldn't go anywhere. The CSS "print" file also
displays a unique logo graphic designed specifically for the width of
a printed page, not 800x600 resolution. (Before I made this
modification, one-fourth of the original "screen" graphic disappeared
off the right side of the page.)

If, however, you want your printed page to look exactly as it appears
on the web, you're going to have to do many modifications within the
the print-only CSS so that your attributes conform to the dimensions
of the printed page.

Jul 20 '05 #4
See:

http://www.macromedia.com/devnet/mx/..._to_print.html

Read the paragraph beginning under the heading "Media Attributes:
Screen, Print, and All"

It appears Macromedia composes an entirely separate style sheet suited
for (and targeting) only PDF file creations:

http://www.communitymx.com/cssfiles/pdfprint.css

You may think it's a pain to write up yet another CSS file for "print
only" (or whatever), but it is the most effective way to control the
appearance of your web page as it will appear on paper. One thing I
can do with a <link rel="stylesheet" href="print.css" type="text/css"
media="print"> line is eliminate from print versions the extraneous
and superfluous:

http://www.consultmillennia.com/clientservices.html

For example, printing the above page will render it on paper without
navigation links. Who needs them on a printed page? Even if you did
print them, they wouldn't go anywhere. The CSS "print" file also
displays a unique logo graphic designed specifically for the width of
a printed page, not 800x600 resolution. (Before I made this
modification, one-fourth of the original "screen" graphic disappeared
off the right side of the page.)

If, however, you want your printed page to look exactly as it appears
on the web, you're going to have to do many modifications within the
the print-only CSS so that your attributes conform to the dimensions
of the printed page.

Jul 20 '05 #5
On Sun, 25 Apr 2004 06:45:26 GMT, Steve Sundberg wrote:
printing the above page will render it on paper without
navigation links. Who needs them on a printed page?


Yes indeed! Those wonderful printed
pages with the non-relevant links
trimmed, and the page devoted to
content, content, content. :-)

'Reclaim the Screen/Page Acreage!'

[ That, in itself, was the final
inducement I needed to get me off my
behind and start using them. ]

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #6
On Sun, 25 Apr 2004 06:45:26 GMT, Steve Sundberg wrote:
printing the above page will render it on paper without
navigation links. Who needs them on a printed page?


Yes indeed! Those wonderful printed
pages with the non-relevant links
trimmed, and the page devoted to
content, content, content. :-)

'Reclaim the Screen/Page Acreage!'

[ That, in itself, was the final
inducement I needed to get me off my
behind and start using them. ]

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #7
On Sun, 25 Apr 2004 06:45:26 GMT, de****@mm.com (Steve Sundberg)
wrote:
See:

http://www.macromedia.com/devnet/mx/..._to_print.html

Read the paragraph beginning under the heading "Media Attributes:
Screen, Print, and All" Thanks that was an interesting link.You may think it's a pain to write up yet another CSS file for "print
only" (or whatever), but it is the most effective way to control the
appearance of your web page as it will appear on paper. One thing I
can do with a <link rel="stylesheet" href="print.css" type="text/css"
media="print"> line is eliminate from print versions the extraneous
and superfluous:

I did think it was a pain, until I did it. Once I realized that the
padding was the starting point for the text in Acrobat, as well as
printing through the browser, I thought I could link to a print style
sheet that reduced the padding and changed the display for the image
and link box to "none"

it is very effective.

http://www.sturgood.com/dna/scrnshot..._problems.html

johnSteve

Jul 20 '05 #8
On Sun, 25 Apr 2004 06:45:26 GMT, de****@mm.com (Steve Sundberg)
wrote:
See:

http://www.macromedia.com/devnet/mx/..._to_print.html

Read the paragraph beginning under the heading "Media Attributes:
Screen, Print, and All" Thanks that was an interesting link.You may think it's a pain to write up yet another CSS file for "print
only" (or whatever), but it is the most effective way to control the
appearance of your web page as it will appear on paper. One thing I
can do with a <link rel="stylesheet" href="print.css" type="text/css"
media="print"> line is eliminate from print versions the extraneous
and superfluous:

I did think it was a pain, until I did it. Once I realized that the
padding was the starting point for the text in Acrobat, as well as
printing through the browser, I thought I could link to a print style
sheet that reduced the padding and changed the display for the image
and link box to "none"

it is very effective.

http://www.sturgood.com/dna/scrnshot..._problems.html

johnSteve

Jul 20 '05 #9
On Sun, 25 Apr 2004 02:23:35 -0600, johnSteve <st****@bresnan.net>
wrote:
On Sun, 25 Apr 2004 06:45:26 GMT, de****@mm.com (Steve Sundberg)
wrote:
See:

http://www.macromedia.com/devnet/mx/..._to_print.html

Read the paragraph beginning under the heading "Media Attributes:
Screen, Print, and All"

Thanks that was an interesting link.
You may think it's a pain to write up yet another CSS file for "print
only" (or whatever), but it is the most effective way to control the
appearance of your web page as it will appear on paper. One thing I
can do with a <link rel="stylesheet" href="print.css" type="text/css"
media="print"> line is eliminate from print versions the extraneous
and superfluous:

I did think it was a pain, until I did it. Once I realized that the
padding was the starting point for the text in Acrobat, as well as
printing through the browser, I thought I could link to a print style
sheet that reduced the padding and changed the display for the image
and link box to "none"

it is very effective.

http://www.sturgood.com/dna/scrnshot..._problems.html


Glad to be of help, johnSteve.
Jul 20 '05 #10
On Sun, 25 Apr 2004 02:23:35 -0600, johnSteve <st****@bresnan.net>
wrote:
On Sun, 25 Apr 2004 06:45:26 GMT, de****@mm.com (Steve Sundberg)
wrote:
See:

http://www.macromedia.com/devnet/mx/..._to_print.html

Read the paragraph beginning under the heading "Media Attributes:
Screen, Print, and All"

Thanks that was an interesting link.
You may think it's a pain to write up yet another CSS file for "print
only" (or whatever), but it is the most effective way to control the
appearance of your web page as it will appear on paper. One thing I
can do with a <link rel="stylesheet" href="print.css" type="text/css"
media="print"> line is eliminate from print versions the extraneous
and superfluous:

I did think it was a pain, until I did it. Once I realized that the
padding was the starting point for the text in Acrobat, as well as
printing through the browser, I thought I could link to a print style
sheet that reduced the padding and changed the display for the image
and link box to "none"

it is very effective.

http://www.sturgood.com/dna/scrnshot..._problems.html


Glad to be of help, johnSteve.
Jul 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
0
by: Andrew | last post by:
My VB Application opens an Access Report and has an option to generate the report in PDF once the report is closed. This is accomplished by: - Switching over to the Acrobat Printer ( i.e....
4
by: Andrew | last post by:
My VB Application opens an Access Report and has an option to generate the report in PDF once the report is closed. This is accomplished by: - Switching over to the Acrobat Printer (i.e....
4
by: William LaMartin | last post by:
I have a vb.net win form where I want to output some text to a printer. Everything works fine when printing to my laser or inkjet printers. However when I print to the Acrobat PDFWriter printer...
3
by: Joris De Groote | last post by:
Hi, I use Adobe Acrobat to read tekst from PDF files. After that the file has been read, I move the file in a folder (using the date I got from the text I got from Acrobat). Now here is my...
2
riptide2049
by: riptide2049 | last post by:
I really have a problem here. I have a code that is suppost to take the href of a link from the right class;value of a link maked toreturn false. the value is a Media file the file is sent to...
10
by: Mauro | last post by:
I'm trying to use the following VB function to transform a pdf document to a tiff one: http://forums.microsoft.com/msdn/showpost.aspx?postid=1665127&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=1 ...
6
by: Andrew Poulos | last post by:
I'm testing the embedding of a PDF in a page <embed src="test.pdf" style="position:absolute; left:10px; top:10px; width:290px; height:390px;"> </embed> I installed acrobat reader version...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all people, everybody, We have multiple versions of Acrobat Reader from 5.x to 8.x, I want to create a method in C# or VB.NET to check to see if the registry key for the versions...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.