After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726778 - Cannot export to PDF
Cannot export to PDF
Status: RESOLVED FIXED
Product: ocrfeeder
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: ocrfeeder-maint
ocrfeeder-maint
Depends on:
Blocks:
 
 
Reported: 2014-03-20 14:48 UTC by Alberto Garcia
Modified: 2014-07-05 22:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alberto Garcia 2014-03-20 14:48:11 UTC
This happens with 0.7.11, but not 100% of the times. A way to
reproduce seems to be to select several regions of text.

Here are the steps:

- Load one or more pictures
- Recognize text
- Export as PDF (searchable PDF)

Traceback (most recent call last):
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 320 in exportDialog
    self.EXPORT_FORMATS[format][1])
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 304 in exportToFormat
    name)
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetModeler.py", line 729 in exportPagesWithGenerator
    document_generator.addPage(page)
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/feeder/documentGeneration.py", line 431 in addPage
    self.addBoxes(page_data.data_boxes)
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/feeder/documentGeneration.py", line 79 in addBoxes
    self.addBox(data_box)
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/feeder/documentGeneration.py", line 67 in addBox
    self.addText(data_box)
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/feeder/documentGeneration.py", line 404 in addText
    text.textLines('\n'.join(lines))
  • File "/usr/lib/python2.7/dist-packages/reportlab/pdfgen/textobject.py", line 436 in textLines
    lines = '\n'.split(asUnicode(stuff).strip())
ValueError: empty separator

Comment 1 Joaquim Rocha 2014-07-05 22:03:26 UTC
Thanks for reporting. It was happening when attempting to export to PDF a document having a text area with no text. It will be fixed in the next version.