View Single Post
  #7  
Old July 25th 17, 06:49 AM posted to microsoft.public.windowsxp.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Print a Web Page

Paul wrote:
freen wrote:
I am trying to print a very long webpage with pictures and text.
I also tried printing as a PDF.
Nothing works.
Either I get only one page or I get several messed up pages but never
all would be pages.
I tried to save as .html and then print and that was all messed up also.

Is there some app that can do this?


Just declare a printer pagesize which is big enough to hold
the entire page.

PDF probably goes to 32676 (signed 16-bit coordinate space).
At 300 DPI, that's about a 108" page or so.

This is a portion of the Yahoo News page, printed on 24"x108"
paper, just to illustrate how much content you could get.
The web page was actually over 300" long, so even my print
driver isn't good enough for that. The output is actually
three pages, with the usual lack of a guarantee that page 2
and page 3 are complete. This is 1/10th actual scale (and, while
printed at 100DPI so I wouldn't run out of RAM).

https://s18.postimg.org/kyjya0gex/sample3.gif

If you had a "print to TIF" driver, perhaps the coordinate
space on that would exceed signed 16-bit numbers. Then the
problem is, is GDIplus up to the job, of whatever passes
for the successor to the 16-bit GDI (a part of Windows).

And if you comment is "well, that page isn't very clear",
I had to limit the content to fit within the postimg.org
limits. If I opened the output .ps file with GIMP
and I had a big enough GIMP-swap file, I could open it at
300DPI. My other machine is big enough to do crazy ****
like that. I've worked on .psb files on that machine,
which is something Irfanview can allow you to view.
PSB is the Photoshop option which allows really big
images to be processed.

To beat these web monkeys at their game, you need
as large a virtual surface for rendering, as possible.

The print driver on this machine is

HP DesignJet 750C

which uses a PostScript output driver for 36" roll-fed paper.
We used to have one at work. You would never do huge artwork
on it, because of material cost. And that driver has the
108" limit vertically.

There are also "Universal Print Drivers" that you can
abuse for the same purpose, with large page capability.
That's a bit trickier to trace down, then do a "Print to File"
install. The labeling method, doesn't really allow me after
the fact, to figure out where I got mine. Microsoft
writes those, then the various printer manufacturers customize
them. It's intended to reduce the work required to
continue supporting older printers.

Now, this one, only goes to 17"x36", which isn't really enough.
The "Custom" dialog shows the max dimensions.

https://s1.postimg.org/ujwhc5uxr/universal.gif

Back in my Unix days, you had display software which
allowed declaring virtual desktops. You couldn't view the
virtual desktop on your screen. Maybe you could open a web
browser in a 4000x3000 virtual desktop. And by setting the
starting X,Y,L,W you could make it fill practically the
whole virtual desktop. Then, you'd do the Unix equivalent
of PrintScreen. But it's pretty hard working with stuff
that you can't see, and "sampling" it to get your output.

Regular print drivers, tend to stop at Tabloid (11x17),
so your prints vary from Letter (8.5x11) to Tabloid (11"x17"),
which isn't a lot of options. But there are a few print
drivers that go to at least 108" in the long dimension,
which helps a little bit with the printing problem.

Paul


This is the best I was able to do in Linux,
using screen capture. This is a 1440x15900 pixel
image, shrunk by a factor of 14 so I can post it here.

This is roughly equivalent to a 160" tall window.
This is www.yahoo.com/news in Firefox .

https://s17.postimg.org/r2ixgy3lb/linux.gif

That's a bit better than the Windows one with the 108" window.
That's the best I could do in Windows.

https://s18.postimg.org/kyjya0gex/sample3.gif

And the Linux setup was none too stable. The XWD
screen dumper didn't work right, and it actually
required GIMP taking a picture of the Firefox
window, to make the image.

And the PDF made while in Linux, didn't look too bad.

The Linux I used, was Ubuntu Server, with xorg and twm
packages added, then Firefox and gimp packages. And a lot
of control-alt-F3 (console window) and control-alt-F7 (xorg
desktop), to avoid getting frozen out. A couple times,
I had to use the reset button. Good times etc.

About the biggest PDF page I could make via "Print"
in Linux Firefox, was a 48" high page.

Paul
Ads