RSS/Atom feed Twitter
Site is read-only, email is disabled

Printing from a batch

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 7 messages available
Toggle history

Please log in to manage your subscriptions.

Printing from a batch Decimator Doseven 23 Feb 23:20
  Printing from a batch Sven Neumann 23 Feb 23:40
Printing from a batch Decimator Doseven 25 Feb 16:03
  Printing from a batch Sven Neumann 25 Feb 22:50
Printing from a batch Decimator Doseven 26 Feb 17:52
518366.4893.qm@web53010.mai... 07 Oct 20:19
  Printing from a batch Sven Neumann 24 Feb 21:09
Decimator Doseven
2009-02-23 23:20:08 UTC (about 15 years ago)

Printing from a batch

Could someone tell me the proper syntax for "file-print-gtk"?

I am building a script to clean up scanned pdfs. (the originals are carbon copies, blech)

I have a working script to clean up tiff files, and am now trying to make it work on pdfs.

I want to open the pdf file with gimp, run the operations, and then print it back to a pdf file.

I have only been able to find non-working scripts for this purpose.

Sven Neumann
2009-02-23 23:40:23 UTC (about 15 years ago)

Printing from a batch

Hi,

On Mon, 2009-02-23 at 14:20 -0800, Decimator Doseven wrote:

Could someone tell me the proper syntax for "file-print-gtk"?

The Prodecure Browser (as found in the GIMP Help menu) should tell you.

Sven

Sven Neumann
2009-02-24 21:09:08 UTC (about 15 years ago)

Printing from a batch

Hi,

On Mon, 2009-02-23 at 15:02 -0800, Decimator Doseven wrote:

It does not appear to. All it has is (file-print-gtk run-mode image), which does not do what I need and does not match what I've seen in the various(unfortunately non-working) scripts that I was able to find.

What does it not do that you need? I am pretty sure that the API of file-print-gtk did not change, so I wonder what those scripts would do differently.

Sven

PS: Next time, please reply to the list.

Decimator Doseven
2009-02-25 16:03:49 UTC (about 15 years ago)

Printing from a batch

It appears that I was mistaken, and the script used a command that gimp does not have: "file_print_gimp"

http://lists.xcf.berkeley.edu/lists/gimp-user/2006-April/007923.html

I assumed(obviously incorrectly) that the name of the command had changed.

In this case, is this there a command that allows me to change the destination printer for gimp? I have succeeded in making gimp print via a batch, using file-print-gtk, but it prints to the last used printer. I also need a command to modify the margins, as gimp currently cuts off part of the image.

Sven Neumann on Tue Feb 24 12:09:08 PST 2009

What does it not do that you need? I am pretty sure that the API of file-print-gtk did not change, so I wonder what those scripts would do differently.

Sven Neumann
2009-02-25 22:50:21 UTC (about 15 years ago)

Printing from a batch

Hi,

On Wed, 2009-02-25 at 07:03 -0800, Decimator Doseven wrote:

It appears that I was mistaken, and the script used a command that gimp does not have: "file_print_gimp"

http://lists.xcf.berkeley.edu/lists/gimp-user/2006-April/007923.html

I assumed(obviously incorrectly) that the name of the command had changed.

In this case, is this there a command that allows me to change the destination printer for gimp? I have succeeded in making gimp print via a batch, using file-print-gtk, but it prints to the last used printer. I also need a command to modify the margins, as gimp currently cuts off part of the image.

No, there isn't. It might make sense to add some additional parameters to the file-print-gtk and file-print-gtk-page-setup procedures. That would break the API and might cause problems for scripts using these. But then, the current API does not seem sufficient to actually use these procedures, so I guess we can afford the breakage.

It would help to make some suggestions for the parameters that need to be added.

Until we have changed this, you could work around the missing parameters by having your script modify the files print-settings and print-page-setup as found in the ~/.gimp-2.6 folder.

Sven

Decimator Doseven
2009-02-26 17:52:19 UTC (about 15 years ago)

Printing from a batch

On Wed Feb 25 13:50:21 PST 2009 Sven Neumann wrote:

It would help to make some suggestions for the parameters that need to

be added.

Until we have changed this, you could work around the missing parameters by having your script modify the files print-settings and print-page-setup as found in the ~/.gimp-2.6 folder.

Well, the most important parameters would be: Destination printer, copies, the four margins, DPI, paper size, and how to fit a large image on a page. Shrink, crop, tile over multiple pages, or tile multiple images on a page. Portrait or landscape would also be useful.