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

Index Card type PDF export fail #364

Closed
cydanil opened this issue Jul 12, 2021 · 0 comments · Fixed by #365
Closed

Index Card type PDF export fail #364

cydanil opened this issue Jul 12, 2021 · 0 comments · Fixed by #365

Comments

@cydanil
Copy link
Collaborator

cydanil commented Jul 12, 2021

Steps to Reproduce

  1. Select one or more recipes to export
  2. Choose export to PDF
  3. Select an output file
  4. Select any of the Page Layout or Paper Size with Index Card values.

Expected Behavior

Should save an index card sized PDF.

Current Behavior

Traceback (most recent call last):
  File "/home/cydanil/gourmet/src/gourmet/GourmetRecipeManager.py", line 1017, in <lambda>
    lambda *args: self.do_export(export_all=False)),
  File "/home/cydanil/gourmet/src/gourmet/GourmetRecipeManager.py", line 698, in do_export
    self.exportManager.offer_multiple_export(
  File "/home/cydanil/gourmet/src/gourmet/exporters/exportManager.py", line 114, in offer_multiple_export
    instance = self.do_multiple_export(recs, fn, exp_type)
  File "/home/cydanil/gourmet/src/gourmet/exporters/exportManager.py", line 155, in do_multiple_export
    myexp, exporterInstance = self.get_multiple_exporter(recs,fn,exp_type,setup_gui,extra_prefs)
  File "/home/cydanil/gourmet/src/gourmet/exporters/exportManager.py", line 142, in get_multiple_exporter
    exporterInstance = myexp.get_multiple_exporter({'rd':self.app.rd,
  File "/home/cydanil/gourmet/src/gourmet/plugins/import_export/pdf_plugin/pdf_exporter_plugin.py", line 19, in get_multiple_exporter
    return pdf_exporter.PdfExporterMultiDoc(args['rd'],
  File "/home/cydanil/gourmet/src/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 677, in __init__
    self.setup_document(out,**pdf_args)
  File "/home/cydanil/gourmet/src/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 239, in setup_document
    self.scale_stylesheet(perc_scale)
  File "/home/cydanil/gourmet/src/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 279, in scale_stylesheet
    setattr(sty,attr,int(perc*getattr(sty,attr)))
AttributeError: 'ListStyle' object has no attribute 'firstLineIndent'

Possible Solution

Environment

  • Operating System: Linux Mint
  • Version or commit id: 1.0.0
  • Installed as Flatpak or Python package?: source
@cydanil cydanil linked a pull request Jul 12, 2021 that will close this issue
6 tasks
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

Successfully merging a pull request may close this issue.

1 participant