プロジェクト

全般

プロフィール

Vote #73668

完了

Empty page attached when exporting PDF

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
74
issue_org_id:
13632
author_id:
66219
assigned_to_id:
0
comments:
16
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When exporting a PDF file, regardless whether from a ticket, ticket listing or wiki page, an empty page is added as last page of the export.


journals

Sorry, forgot:

<pre>
Environment:
Redmine version 2.1.2.stable
Ruby version 1.8.7 (amd64-freebsd9)
Rails version 3.2.8
Environment production
Database adapter MySQL
Redmine plugins:
redmine_inline_attach_screenshot 0.4.2
redmine_latex_mathjax 0.1.0
redmine_lightbox 0.0.1
redmine_people 0.0.1
</pre>
--------------------------------------------------------------------------------
Can't reproduce on issue list with 2.3.0, might be caused by a plugin?
--------------------------------------------------------------------------------
I try to deactivate the plugins and report again. This may take some days, i am on a trip for the weekend.
--------------------------------------------------------------------------------
Using the programm PDF-XChange I can confirm this bug. Acrobat Reader or FoxitReader do not add an empty page.
@Jan Stoetzer: Which pdf viewer are you using?
--------------------------------------------------------------------------------
The internal pdf viewer from firefox (version 19.0.2) breaks when trying to display a pdf that was exported from redmine.
--------------------------------------------------------------------------------
I used "SumatraPDF":http://blog.kowalczyk.info/software/sumatrapdf/free-pdf-reader-de.html on Win7.
This happens regardless whether the plugins are activated or not.

Edit:
* I just tested it which the default PDF-Viewer of Ubuntu10 (I do not know its name), the effect does not appear there.
* The internal PDF viewer of Firefox 19 (Linux and windows) does not display the PDF at all, the Open/Save dialogue is opened immediately.
--------------------------------------------------------------------------------
* Yes, I can confirm that SumatraPDF displays an additional empty page.
* When firefox opens pdf in the open/save dialog it doesn't say anything about the internal PDF viewer. If you want to test the internal pdf viewer you have to make sure that the pdf is not forced to be downloaded. Therefor I put the pdf into my localhost server an call it like <code>localhost/my_pdf_file.pdf</code>

It seems that the exported pdf files are corrupted and some viewers have problems with displaying these pdf files.

--------------------------------------------------------------------------------
I can confirm that this happens to me as well. Currently running 1.4.3.stable, but it is the same with all of the installations I've used. PDF-Xchange Viewer always shows an empty page.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Status: Confimed

+Summery+
Defect on: PDF-XChange, SumatraPDF
No defect on: Acrobat Reader, FoxitReader

The online "pdf analyzer":https://www.pdf-tools.com/osa/repair.aspx also confims that the exported pdf isn't well formed.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I wrote patch for trunk.

> Defect on: PDF-XChange, SumatraPDF

I checked that the problem had been corrected on PDF-XChange and SumatraPDF.

> The online "pdf analyzer":https://www.pdf-tools.com/osa/repair.aspx also confims that the exported pdf isn't well formed.

I checked that the problem had been corrected on pdf analyzer, too.

<pre>
Successful completion
The file was successfully analyzed, and no corruptions have been detected.
</pre>

I finished tests on following environments.

* CentOS 6 CRuby 1.8.7, 1.9.3

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed in trunk r12189 and 2.3-stable r12191, thanks.
--------------------------------------------------------------------------------
Good work, thank you for fixing this.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリPDF export_39 にセット
  • 対象バージョン2.3.4_74 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0