This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 5 years ago

Closed 5 years ago

#388 closed defect (fixed)

Optimize creation of PDF for abstracts list

Reported by: jbenito Owned by: lsyroka
Priority: blocker Milestone: v0.98.1
Component: Abstracts Version: 0.97.0
Keywords: Cc:

Description

Try with iChep 2010 (or any other conf with at least 250 abstracts)

Change History (4)

comment:1 Changed 5 years ago by lsyroka

  • Owner set to lsyroka
  • Status changed from new to accepted

comment:2 Changed 5 years ago by pferreir

  • Status changed from in_work to in_merge

comment:3 Changed 5 years ago by jbenito

  • Milestone changed from v0.97 to v0.98

comment:4 Changed 5 years ago by Leszek Syroka <leszek.marek.syroka@…>

  • Resolution set to fixed
  • Status changed from in_merge to closed

In [9576e613375fa6a094e6b80496176b3cb46dcef9/indico]:

[FIX] Abtracts to PDF optimization

  • loading TTFonts only once
  • PDF is created in a single pass instead of three
  • TableOfContents? class is not used anymore, faster tableOfContentsEntry class is used instead
  • PDF is created from two separate PDFs, one with table of contents and second with a content itself
  • new class SimpleParagraph? added. It's much faster than normal paragraph, but has limited usability. Used in places where advanced options of paragraph like styles, line wrapping etc. are not needed.
  • layout of the PDF improved - content text and authors list are justified and some spacers were added.
  • IMPORTANT this fix needs pyPdf library, http://pybrary.net/pyPdf/, to merge content PDF with ToC PDF. This library is under BSD licence so, I think, we're allowed to use it.
  • fix#388
Note: See TracTickets for help on using tickets.