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


Groups > comp.os.linux.misc > #36205

Re: printing a webpage to pdf (that isn't crap)?

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.os.linux.misc
Subject Re: printing a webpage to pdf (that isn't crap)?
Date 2022-11-24 14:04 +0000
Organization A little, after lunch
Message-ID <tlntlf$lppm$3@dont-email.me> (permalink)
References <tlnqbb$1ssh$1@gioia.aioe.org> <OnCdnVs9u7AO7uL-nZ2dnZfqn_idnZ2d@giganews.com>

Show all headers | View raw


On 24/11/2022 13:37, Robert Heller wrote:
> At Thu, 24 Nov 2022 21:07:53 +0800 P-P-Pete <nerdy@boffin.edu> wrote:
> 
>>
>> Need to convert current bank balances to pdf.
>> The banks only issue a statement every 1 or 2 months. They allow one
>> to save latest history as Excel, text, MYOB etc, but not pdf. Can obtain
>> latest balances via internet banking pages, but when print them to pdf,
>> they are shit-house. Formatting is way out and parts are truncated. Get
>> the same result in Firefox or Chromium. I presume it depends on some
>> rendering core in the linux distro? I am using Debian.
> 
> No, more likely really awful webpage code. The banking webpages are probably
> loaded with "clever" JavaScript & css and "lack" proper style sheets for print
> media. There is not much you can do about that.  Either the bank's IT dept is
> totally clueless or (likely) they don't really want you to *print* their
> webpages and so have deliberately coded the webpages to be "unprintable".
> Both Firefox and Chromium generally do a good job of rendering webpages as
> PDF, but if the webpages are either badly crafted or specificly designed to be
> "unprintable", there is not much Firefox or Chromium can do.
> 
Amen to all that, however there remains one other option and that is to 
use a screen snapshot and import that into e.g. Gimp and save as a PDF 
(image)


> Your best option would be to install unoconv (which will pull in LibreOffice)
> and then you can download the Excel file and then do:
> 
> /usr/bin/unoconv file.xlsx
> 
> This will create file.pdf
> 
> unoconv can convert any format supported by LibreOffice to many other formats,
> including pdf.
> 
> "man unoconv" will give you all of options for unoconv.
> 
That's a utility I didnt know of.

Interesting


-- 
β€œIt is dangerous to be right in matters on which the established 
authorities are wrong.”

― Voltaire, The Age of Louis XIV

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

printing a webpage to pdf (that isn't crap)? P-P-Pete <nerdy@boffin.edu> - 2022-11-24 21:07 +0800
  Re: printing a webpage to pdf (that isn't crap)? The Natural Philosopher <tnp@invalid.invalid> - 2022-11-24 13:16 +0000
    Re: printing a webpage to pdf (that isn't crap)? Robert Heller <heller@deepsoft.com> - 2022-11-24 14:16 +0000
  Re: printing a webpage to pdf (that isn't crap)? Robert Heller <heller@deepsoft.com> - 2022-11-24 13:37 +0000
    Re: printing a webpage to pdf (that isn't crap)? The Natural Philosopher <tnp@invalid.invalid> - 2022-11-24 14:04 +0000
      Re: printing a webpage to pdf (that isn't crap)? not@telling.you.invalid (Computer Nerd Kev) - 2022-11-25 08:10 +1000
  Re: printing a webpage to pdf (that isn't crap)? "Carlos E.R." <robin_listas@es.invalid> - 2022-11-24 15:16 +0100
  Re: printing a webpage to pdf (that isn't crap)? Andreas Kohlbach <ank@spamfence.net> - 2022-11-24 22:59 -0500

csiph-web