Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customized Entry Preview creates empty PDF #6342

Closed
1 task
alfureu opened this issue Apr 25, 2020 · 4 comments
Closed
1 task

Customized Entry Preview creates empty PDF #6342

alfureu opened this issue Apr 25, 2020 · 4 comments

Comments

@alfureu
Copy link

alfureu commented Apr 25, 2020

JabRef 5.0--2020-03-06--2e6f433
Windows 10 10.0 amd64
Java 13.0.2

Steps to reproduce the behaviour:

  1. Define a custom Preview style in Entry Preview
  2. Right-click on Entry Preview and hit Print Entry Preview
  3. The created PDF file is empty
@libkoi
Copy link

libkoi commented May 31, 2020

Thanks for your issue, but there are some problem during my reproduce procedure - How did you define a customized preview style in Entry Preview tab inside "Preference"? And if you have correctly set the style of that preview?

@alfureu
Copy link
Author

alfureu commented May 31, 2020

I defined customized entry in the tab: JabRef Preferences >> Entry Preview >> select 'Preview' >> select 'Edit'

Here, I have a customized preview:

<font face="Lucida Sans">
<font size="4"><b>\begin{title} \format[HTMLChars]{\title} \end{title}</b><BR>
<table cellpadding="15%" width="85%" border="0">
	<tr valign="top">
	<td width="50%">
        <font color="grey">
	<font size="2">
            <p class=infobiblio>
                \begin{author} \format[Authors(LastFirst,MiddleInitial,NoPeriod,And,Comma,inf,EtAl- et al.,Oxford),HTMLChars]{\author}<BR>\end{author}
                \begin{journal} <em>\format[HTMLChars]{\journal}, </em>\end{journal}
                \begin{booktitle} <em>\format[HTMLChars]{\booktitle}, </em>\end{booktitle}
                \begin{school} \format[HTMLChars]{\school}, \end{school}
                \begin{institution} \format[HTMLChars]{\institution}, \end{institution}
                \begin{publisher} \format[HTMLChars]{\publisher}, \end{publisher}
                \begin{year}<b>\year</b>\end{year}\begin{chapter}, Ch\format[HTMLChars]{\chapter}\end{chapter}, \begin{volume}<i> \volume</i>\end{volume}\begin{pages}, \format[FormatPagesForHTML]{\pages} \end{pages}</BR>
            </p>
            <p class=infolinks>
                \begin{doi}<b>DOI:</b> <a href="\format[DOICheck]{\doi}" target="_blank">\format[DOIStrip,HTMLChars]{\doi}<br> </a>\end{doi}
            </p>
            <p class=infodata>
                \begingroup{file}\begin{file} <a href="\format[WrapFileLinks(\r,,pdf)]{\file}" target="_blank">PDF</a>\end{file}\endgroup{file}<BR>
                <a name="\bibtexkey">\begin{bibtexkey} \bibtexkey</a>\end{bibtexkey} (\bibtextype)<BR>
            </p>
            <p class=keyword>
                \begingroup{keywords} <font color="#800000">\format[HTMLChars]{\keywords} \endgroup{keywords}<BR>
		<font color="grey">
		\begin{url} <a href="\format{\url}" target="_blank">\url<br> </a>\end{url}
            </p>
            <p class=review>
                \begin{review}<BR><BR><b>Notes: </b> \format[HTMLChars]{\review} \end{review}</dd>
            </p>
        </font>
	</td>
	<td width="50%">
		<font color="black">
		<font size="2">
	    <p class=abstract>
        	\begin{abstract}<BR><BR><b>Abstract: </b> \format[HTMLChars]{\abstract} \end{abstract}
	    </p>
	</td>
	</tr>
</table>

Now, if you go back to the entry table, and you have selected the customized 'Preview', you right-click on the Preview and select 'Print Entry Preview'. The resulting PDF is empty.

@libkoi
Copy link

libkoi commented May 31, 2020

It seems that I am unable to reproduce this bug.. I follow that instructions and a PDF file with content inside is generated.
Snipaste_2020-06-01_00-18-09

@alfureu
Copy link
Author

alfureu commented May 31, 2020

Yup, it seems to be fixed since when I reported it. Closing.

@alfureu alfureu closed this as completed May 31, 2020
koppor pushed a commit that referenced this issue Apr 1, 2023
41531558a8 Fix unsigned newspaper articles throughout Chicago 17 (#6486)
7678212826 Create trames.csl (#6479)
0cae26ac85 Update hochschule-fur-soziale-arbeit-fhnw.csl (#6480)
85c4b693a2 Update to UP Harvard Theology & Religion (#6485)
c273aa7e43 Update ieee.csl (#6481)
fe67b80e47 Update open-window.csl (#6367)
f2229705ef Create iainutuban-tarbiyah.csl (#6361)
1867a56a26 Create business-and-human-rights-journal (#6359)
1371dbdf26 Update iso690-author-date-es.csl (#6477)
6953a43efd Update ieee.csl (#6478)
f56d5ef1cc Create czech-journal-of-international-relations.csl (#6453)
678b53f99c Update harvard-stellenbosch-university.csl (#6464)
3074938038 Update ucl-university-college-apa.csl (#6475)
27dab9ea0f Update iso690-author-date-es.csl (#6476)
a8aea63d00 Create elsevier-american-chemical-society.csl (#6342)
f8f290fa63 Update iso690-author-date-es.csl (#6472)
7fdc621eee Update journal-of-neolithic-archaeology (#6466)
7025568e70 Update offa.csl (#6465)
2d69299b19 Create uni-fribourg-theologie.csl (#6473)
8db531a73e Create travail-et-emploi.csl (#6351)
c8b54fc531 Make monash-university-harvard dependent style (#6470)
b95f59ff5c Update journal-of-the-marine-biological-association-of-the-united-kingdom.csl (#6456)
a12b513119 Update universite-du-quebec-a-montreal.csl (#6463)
048e6641e4 Update zeitschrift-fur-geschichtsdidaktik.csl (#6454)
f0d3d7ef15 Update journal-fur-kulturpflanzen-journal-of-cultivated-plants.csl (#6447)
3b814fe048 Update the-accounting-review.csl (#6459)
f24befd580 Update survey-of-ophthalmology.csl from ama.csl to its own independent style (#6460)
c868ab54f6 Create vancouver-alphabetical.csl (#6461)
782e39cfe1 Update american-institute-of-physics.csl (#6457)
a56cf03e3c Fix Chicago Cases & Newspaper sorting (#6458)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: 41531558a873b2533f2d17d8d6484c2408174fce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants