Blank page when printing reports generated from notes

Dear developers,
Dear all,

Thanks for this great tool that i'm using since the beginning of my PhD; great help. Hope this question will find its way through all the threads of the forum.

I face a problem when printing a report generated from a child note (related to a parent reference): html report looks normal, but when printed (or in print preview) a blank page is added between the parent title and the content of the note
--> for presentation and paper waste reasons, how to get rid of this empty page with just the parent title at the top?
(using windows 7 and Firefox last update).

Thank you for your help.
Best regards.
Emilie (from Brussels, Belgium)
  • this may be a printer setting issue. You can likely just tell your printer to only print pages 1 and 3 or am I misunderstanding this?
  • Dear adamsmith ;-)

    thank you for your quick answer.

    I don't think it is a printer issue: whether I print at the office or at home is the same; in addition, I do not have to possibility to select pages as any document (be it with firefox or Thunderbird) is considered to be one unique page (always "pages from: 1 to 1" even if you have 18 pages printed!).

    I think it is really part of zotero as I did not encounter this problem when printing other things in firefox or else.

    When generated in one firefox window the zotero report looks normal; but when preview or printed, you have this one blank page just under the title of the main document and the text of my note on the next page...

    hopeless?
  • ah yes, windows isn't very clever about printing from the browser...

    I can't tell you much - the reports are very simple&clean html and the print css is also very clean and simple: zotero://report/detail_print.css
    If this results in empty pages, your printer/browser combination is doing something odd. It's certainly not a general issue.
    The reports do copy over to Word/LibreOffice nicely, so you can use that as a workaround.
  • edited August 27, 2013
    (always "pages from: 1 to 1" even if you have 18 pages printed!).
    For what it's worth, at least on OS X, you can still enter valid page ranges even if it starts off as "1 to 1", as it often (always?) does.

    In any case, if you save the report as "Web Page, complete", ZIP the files, and either send the ZIP to support@zotero.org or upload it somewhere (e.g., Dropbox) and provide a link here, we can see whether we can reproduce this.
  • Besides what Dan says about saving the report and emailing it, what version of Zotero are you using?
  • You didn't include all the files in the ZIP. There should be an HTML file and a folder with CSS files.
  • Dear all,

    thank you very much for your answers.

    My zotero version is 4.0.12. I just send the report to zotero support in case there is something to find.

    I had not noticed I could change the "1 to 1" thing! So I Will definitely do that! As you can see I'm not that skilled with IT, so thank you very much for your help.
  • I'm not sure how you're creating that ZIP, but you've still sent only a ZIP of just the HTML file. If you save "Web Page, complete" (not "Web Page, HTML only") you should get an .html file and an accompanying folder with .css files in it. For us to try to reproduce this we'd need a ZIP that included both the HTML file and the folder.
  • Dear Dan,

    I saved the page as you explain: "page web, complète" (in french), but there is only one file. Than I compress it with a tool available when I right-click the mouse.

    I just send another file of "code source", maybe it is what is needed? (Firefox menu < web development < code source)
    If not, do not take more of your time for this.
    Thank you again.
    Best regards,

    Maybe the answer is in this one:
    <link rel="stylesheet" type="text/css" media="print" href="zotero://report/detail_print.css"/>

    body {
    font: 12pt "Times New Roman", Times, Georgia, serif;
    margin: 0;
    width: auto;
    color: black;
    }

    /* Page Breaks (page-break-inside only recognized by Opera) */
    h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
    }

    ul, ol, dl {
    page-break-inside: avoid;
    }

    h2 {
    font-size: 1.3em;
    line-height: 1.3em;
    }

    a {
    color: #000;
    text-decoration: none;
    }
  • edited August 28, 2013
    Hard to say without seeing the note that follows the page break (Dan would be able to tell), but if your note is pretty long and is essentially an ordered (ol) or unordered (ul) list, then the page-break-inside:avoid could cause it to be moved to the next page to avoid page breaks within the list.
  • Emilie,

    lorsque vous enregistrez la page du rapport depuis Firefox en cliquant sur "Fichier" -> "Enregistrer sous", cela crée un fichier avec le nom que vous lui donnez (par défaut : "Rapport Zotero.htm"). Mais il est automatiquement crée un *dossier* au même emplacement qui a pour nom par défaut "Rapport Zotero_fichiers". Dans ce dossier, il y a trois fichiers (detail.css, detail_print.css et detail_screen.css).

    C'est l'ensemble qu'il faut envoyer par email (après l'avoir zippé: sous windows, sélectionnez le fichier et le dossier, clic-droit -> "Envoyer vers" -> "Dossier compressé". Cela créera un nouveau fichier, par défaut "Rapport Zotero.zip" à envoyer).
Sign In or Register to comment.