Scribusoid

Author Topic: Can PDFfile->save() be executed silently?  (Read 328 times)

dagoss

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
  • Scribus User
Can PDFfile->save() be executed silently?
« on: March 02, 2017, 03:57:23 pm »
Is it possible to use PDFfile->save() in the UI in such a way that there is no user feedback?

In Scribus 1.5.2, it opens a small progress window that steals focus. I'd like to be able to use save() without that. Is that possible in a script?

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1111
  • Karma: 18
    • the graphics lab
Re: Can PDFfile->save() be executed silently?
« Reply #1 on: March 02, 2017, 05:01:23 pm »
hi dagoss

you should probably test it with 1.5.3 (or share your script so that i can easily test it with 1.5.3) since (iirc) a few GUI leftovers have been removed from the scripter in the the second half 2016.

if it's not already the case, you should also check if the dialog pops up also when you start the script from the command line and use the -g option (for no gui)

if the dialog is still there, you're welcome to write a ticket on https://bugs.scribus.net !

dagoss

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
  • Scribus User
Re: Can PDFfile->save() be executed silently?
« Reply #2 on: March 03, 2017, 08:35:39 pm »
I'm not on a system where 1.5.3 can be easily installed. I'd appreciate it if you could see if 1.5.3 fixes this.

The script is actually the venerable ScribusGenerator. It's using save() to export the PDF. The other day I had to do a data merge with over 1,000 records, so the constantly focus-stealing window caused me some grief.

 

palmate