Ticket #4 (closed enhancement: fixed)

Opened 4 years ago

Last modified 5 weeks ago

Printing support request

Reported by: tomk Owned by: jordi
Priority: major Version: 0.1.3
Keywords: Cc:

Description

Printing support for epdfview.

Attachments

Change History

Changed 4 years ago by baze

imho the most important missing feature in epdfview, since i have to print pdfs rather often. i'd really like to see this.

Changed 4 years ago by jordi

Unfortunately I don't have much experience on printing support under Linux. In fact I don't event have a printer!

I know about CUPS. Is it right to use? There are more print "interfaces" that I should know about?

Changed 4 years ago by baze

I think CUPS is the printing system most users use, so I'd say it is fine.

Changed 4 years ago by baze

afaik, there is going to be a printing dialog in gtk+ 2.10. perhaps that will make it easier.

Changed 4 years ago by oskar

The printing should simply ask "How man copies" convert the file to ".ps" and then execute lpr -r -#$numbercopies -T $namefortheprintjob $filename.ps

"-r" will delete the file after printing so epdfview doesn't need to deal with it "$nameforprintjob" should maybe be the filename without ".pdf" pdf2ps can be used to convert the pdf2ps

=> printing should only appear if "pdf2ps" and "lpr" is available, otherwise this approach wont work. People that have no lpr will most likely have no printer.

gtk+2.10 will have a full printing dialog, but is it really needed? Does a pdfviewer need a "print preview"-dialog? I mean the pdf-file is already a printpreview.

Except for "number of prints" the only thing that i could think of would be a select range (pages or chapter).

Changed 4 years ago by baze

specify the layout you want to print (2 pages on one, 4 on one, landscape/portrait) would be also nice, so I don't think a printing dialog would be bad.

Changed 4 years ago by jordi

Well, poppler can output the PDF files to PS so there's no need for the pdf2ps utility (that IIRC it comes with poppler).

I saw information about the print dialog in Gtk+-2.10 but currently I'm trying to keep compatibility with Gtk+2.6 so I probably will make a simpler print dialog for epdfview.

I didn't think about using lpr so I'll give it a try. I'm going to build a "preferences" dialog asking for the browser command to use for external links in PDF files (see #13), so I can add the print command to execute as well.

Changed 4 years ago by anonymous

  • type set to defect

you could just offer command line the user sets to print with a keyword like %f for the filename. then they could use gtklp for example, which is a gtk+ lpr gui.

Changed 4 years ago by jordi

  • status changed from new to closed
  • resolution set to fixed

I finally managed to add support for printing in ePDFView in revision [223].

I use CUPS directly rather than letting the user enter a command, because it's easier (from my POV) to let change options and CUPS is widely used anyways, I think...

I also like the idea of GtkLP, but I think that having the dialog inside ePDFView it feels more "integrated", even though my dialog is uglier ;-)

Changed 4 years ago by baze

  • priority changed from major to minor
  • status changed from closed to reopened
  • resolution fixed deleted
  • type changed from defect to enhancement

i kinda like you dialog ;) simple but has (almost) anything you need. only thing i miss: color output mode (greyscale/color) and not all CUPS defaults are used in epdfview (that's why i reopen):

i have media size set to "A4" as default in the cups printer preferences, but epdfview uses "Legal" for paper size. they slightly differ on my test printouts i just made. if you read the default printer and use the printer specific paper sizes, it would be nice to have epdfview use the cups default settings too. and add an output mode combobox for the color/greyscale thingy too, please :)

but anyway, very nice work!

Changed 4 years ago by anonymous

  • status changed from reopened to closed
  • resolution set to fixed

Thanks!

I've added a resolution and color mode combo boxes in commit [233]. Now I think the print support is done.

I think it's better now to open new bugs for missing print functionalities rather than reopening this bug. What do you think? :-)

Changed 4 years ago by baze

yeah, you're right, sorry for that. but i think too, that it's complete now. works fine too.

Changed 7 months ago by anonymous

i kinda like you dialog ;) simple but has (almost) anything you need. only thing i miss: color output mode (greyscale/color) and not all CUPS defaults are used in epdfview (that's why i reopen):nike air yeezy

i have media size set to "A4" as default in the cups printer preferences, but epdfview uses "Legal" for paper size. they slightly differ on my test printouts i just made. if you read the default printer and use the printer specific paper sizes, it would be nice to have epdfview use the cups default settings too. and add an output mode combobox for the color/greyscale thingy too, please :)

Changed 5 months ago by anonymous

Thanks for the fix virtual friend

Changed 5 weeks ago by anonymous

<h1><a href="http://www.jordansbox.com"><strong>nike air jordan</strong></a>, nike air jordan</h1><br> <h1><a href="http://www.airmaxbox.com/air-max-skyline-c-62.html"><strong>Air Max Skyline</strong></a>, Air Max Skyline</h1><br> <h1><a href="http://www.lebronshoesbox.com"><strong>lebron shoes</strong></a>, lebron shoes</h1><br> <h1><a href="http://adidas-us.com"><strong>adidas shoes</strong></a>, adidas shoes</h1><br>

Changed 5 weeks ago by anonymous

<h1><a href="http://www.airshoesjordan.com/air-jordan-15-c-54.html"><strong>air jordan 15</strong></a>, air jordan 15</h1><br> <h1><a href="http://www.air-max-cheap.com/air-max-lebron-vii-c-76.html"><strong>air max leBron 7</strong></a>, air max leBron 7</h1><br> <h1><a href="http://www.nike-lebron.org/zoom-lebron-vi-c-45.html"><strong>lebron 6</strong></a>, lebron 6</h1><br> <h1><a href="http://www.nike-lebron.org/air-max-lebron-vii-c-46.html"><strong>lebron 7</strong></a>, lebron 7</h1><br>

Add/Change #4 (Printing support request)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.