Submitted by Paul_J_Miller on 2018/11/08 08:04
When one prints a document (the contents of the Document Pane) either to .PDF or onto paper from a document formatted with a .CSS file using a vertical linear gradient as it's background colour then the linear gradient is repeated for each page rather than being for the whole document.
 
This is not unattractive just unexpected.
 
I suspect it would not be easy to solve.
 

Comments

Hi Paul,
 
I'll look into it. Printing is done by Internet Explorer, so it is probably where to look for
 
That said, should it not be desirable to be able to choose a different style sheet when printing, or at least, turn off some coloring, such as background ?
 
Pierre_Admin
IQ Designer
 

Paul_J_Miller

2018/11/08 11:30

In reply to by Pierre_Admin

[quote=Pierre_Admin]
Hi Paul,
 
I'll look into it. Printing is done by Internet Explorer, so it is probably where to look for
 
That said, should it not be desirable to be able to choose a different style sheet when printing, or at least, turn off some coloring, such as background ?
 
Pierre_Admin
IQ Designer
 
[/quote]
 
This is only a minor point and if the printing is done by a third party program which is not under your control then there probably isn't much you can do about it.
 
Yes it is desirable to be able to switch off the background colours especially when printing to paper, this saves on ink consumption.  The white of paper doesn't emit light it merely reflects ambient light so the contrast ratio is not so much of a problem.
 
When printing to a PDF file it is desirable to be able to control the contrast ratio between the text and the background.  Black text on White background is not optimum for reading on an LCD screen in my opinion, the white can be too bright.  I think the 'Ofis' style sheets have the ratio just about right.
 
The ability to select a different style sheet for printing than was used for editing might be a little over the top.  If the style sheet was good enough for composition and editing then a PDF using the same style sheet is probably good enough for reading.
 

Hi Paul,
 
I was able to reproduce it no problem using Print Preview
I guess it depends on your selected printer, but when I try it here, if I uncheck "Print Background Colors and images", the printout is black text on a white background and images show. Very nice.
 
Also, if you do File > Open in Browser and then print from there, it works as you expected (using Chrome at least)
 
HTH !
 
Pierre_Admin
IQ Designer
 

Paul_J_Miller

2018/11/08 16:24

In reply to by Pierre_Admin

For printing onto paper black on white is not a problem.  I can do that from within InfoQube.
 
For print to PDF it would be nice to print as the document appears in InfoQube but having the linear gradient on each page is not that big a deal.
 
Open in Browser is not something I have used because of a problem with the way InfoQube opens my default browser.
 
My default browser is Vivaldi.  When I use the Open in Browser command the article (item) is opened in Vivaldi but the displayed page is shown without screen scaling.  The window itself is the correct size but the contents of the page and all the menus and toolbars are in a section in the top left hand corner scaled down to an illegible size.  However the activation areas for the toolbar buttons and menus and any links on the page are all in their correct places with respect to the overall window size, i.e. they do not correspond to the displayed page.
 
Opening HTML files on the local disk with Vivaldi works exactly as expected.
 
Saving the document as a HTML file and opening it with various browsers gives the following :-
 
  1. Internet Exploiter.  On screen, works as expected.  CSS styling displayed as expected but on printing the linear gradient is rendered on each page rather than being for the whole document.  Graphics images in the document rendered correctly in full colour.
  2. Microsoft Edge.  On screen works as expected.  Graphics images in the document rendered correctly in full colour.  On printing graphic images rendered correctly in full colour but the headers are rendered in black and white (not grey) and the background colour is ignored, you get white.
  3. Vivaldi.  On screen, works as expected.  CSS styling displayed as expected but on printing the linear gradient is rendered on the first page only.  The rest of the pages are on a white background. The graphic images are rendered in full colour as are the headers.
  4. Firefox. Is the worst of all.  It cannot handle CSS styling in a local file unless it is in the same directory as the HTML file or in a directory with the same name as the HTML file with 'files' added to the end of the name which is in the same directory as the HTML file.  The graphic images are not displayed, it cannot handle graphic images unless they are in the same directory as the HTML file or in a directory with the same name as the HTML file with 'files' added to the end of the name which is in the same directory as the HTML file.  You get plain headings and plain black on white text.  The printing is the same.
 
Looks like the printing with Internet Exploiter is the best option.
 
The problem with linear gradients in the background isn't a big deal.
 

Pierre_Admin

2018/11/08 16:59

In reply to by Paul_J_Miller

OK,
 
For the record, I tried it, saved as a file and viewing in Chrome.
I could not test the scaling, but the gradient was fine (both normal and print-preview)
 
Pierre_Admin
IQ Designer