Ticket #4 (closed enhancement: fixed)

Opened 4 years ago

Last modified 7 weeks ago

Printing support request

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

Description

Printing support for epdfview.

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 13 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 11 months ago by anonymous

Thanks for the fix  virtual friend

Changed 7 months 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 7 months 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>

Changed 6 months ago by anonymous

<h1><a href=" http://www.dunksb.net/new-dunks-c-44.html"><strong>New Dunks</strong></a>, New Dunks<br> <a href=" http://www.airmaxsky.com/air-max-360-c-46.html"><strong>max air 360</strong></a>, max air 360<br> <a href=" http://www.jordansline.com/air-jordan-16-c-55.html"><strong>air jordan 16</strong></a>, air jordan 16<br> <a href=" http://www.air-max-kicks.com/air-max-2009-c-72.html"><strong>air max shoes</strong></a>, air max shoes<br></h1>

Changed 5 months ago by Zweeer

You will mostly get voicemails,  http://putana016.co.cc so leave a nice message which is very brief and explains you have a relevant website which wants to become link partners. When you get the webmaster on the phone live, tell him how great their website is, how you added a link to it on your blogroll, and how it would help their rankings to  http://putana013.co.cc link to your related site which is full of good content. Some people will tell you to go fuck yourself, so you just move on. There are going to be hundreds of thousands  http://putana014.co.cc of other sites to contact, so don't spend too much time with each one. I will ask them for their AIM handles so I can keep track of them. (did I mention I create a new AIM/Gmail for each new microsite?) There are lots of other ways to get links. I've tried most of them, and they all work. You can donate money to open source organizations which have a 'thank you' page  http://putana015.co.cc. Most of them will include a link if your donation is over a certain threshhold. Check for nofollows and disallows in the robots.txt first.

Changed 5 months ago by anonymous

Changed 5 months ago by anonymous

i love it.i must say that its useful.  http://www.mbtsells.com

Changed 4 months ago by nike air max

thanks so much for your article www.inikeairshoes.com

Changed 4 months ago by anonymous

Large ring boom fever, plus a variety of precious stones of various sizes, allowing slender means unparalleled distribution brightest light,a <a href=" http://www.watchtang.com/" title="Swiss Eta Watch">Swiss Eta Watch</a> absolutely must grab a shot to make eye! Exaggerated the big ring is no longer a child playing house toys, fashion has become essential to increase the sense of a single product form. Gold long <a href=" http://www.watchtang.com/chanel-c-1.html" title="oval ring">oval ring</a>, adding a mysterious sexy matte.Triangle Ring Crystal ring hollow design shine like a meteor in your hand. Time passes unconsciously during the <a href=" http://www.watchtang.com/breitling-c-5.html" title="watch hands">watch hands</a> running around.How time flies! I remind myself to be more efforts to cherish very moement and test more experience in the short life.

Changed 4 months ago by anonymous

<strong><a href=" http://www.shoesmass.com/nike-air-force-1-07-le-db-charity-p-34.html" title=" larger image Nike Air Force One Low Premium (Brazil) "> larger image Nike Air Force One Low Premium (Brazil) </a></strong>

<strong><a href=" http://www.shoesmass.com/nike-dunk-high-east-black-volt-speckled-p-97.html" title="Nike Dunk Low Pro SB De La Soul Edition">Nike Dunk Low Pro SB De La Soul Edition</a></strong>

<strong><a href=" http://www.shoesmass.com/nike-dunk-low-pro-sb-pairs-p-193.html" title="Nike Dunk Hi Pro SB Supreme Blue">Nike Dunk Hi Pro SB Supreme Blue</a></strong>

<strong><a href=" http://www.shoesmass.com/nike-dunk-high-i-love-paris-p-80.html" title="Nike Air Force One Low Premium (South Korea)">Nike Air Force One Low Premium (South Korea)</a></strong>

Changed 4 months ago by anonymous

<strong><a href=" http://www.shoesmass.com/nike-air-force-1-07-le-db-charity-p-34.html" title=" larger image Nike Air Force One Low Premium (Brazil) "> larger image Nike Air Force One Low Premium (Brazil) </a></strong>

<strong><a href=" http://www.shoesmass.com/nike-dunk-high-east-black-volt-speckled-p-97.html" title="Nike Dunk Low Pro SB De La Soul Edition">Nike Dunk Low Pro SB De La Soul Edition</a></strong>

<strong><a href=" http://www.shoesmass.com/nike-dunk-low-pro-sb-pairs-p-193.html" title="Nike Dunk Hi Pro SB Supreme Blue">Nike Dunk Hi Pro SB Supreme Blue</a></strong>

<strong><a href=" http://www.shoesmass.com/nike-dunk-high-i-love-paris-p-80.html" title="Nike Air Force One Low Premium (South Korea)">Nike Air Force One Low Premium (South Korea)</a></strong>

Changed 3 months ago by anonymous

<a href="  http://www.creativesupra.com/creative-recreation_c1/">creative recreations</a> originality and imagination, a

refreshment of one’s mind or body through activity that amuses and stimulates play.<a href="

 http://www.creativesupra.com/creative-recreation_c1/">creative recreations shoes</a> have been a hit amongst the hipsters

that love exclusive footwear. Shoes are not just shoes in the minds of collectors that idolize exclusive styles of Creative

Recreation. <a href="  http://www.creativesupra.com/creative-recreation-cesario-classic-white_p437.html/">creative recs</a> is

essentially breaking through barriers. Yes, this includes the bizzarre and the downright strange.

Changed 3 months ago by anonymous

[url=  http://www.creativesupra.com/creative-recreation_c1/]creative recreations/url originality and imagination, a

refreshment of one’s mind or body through activity that amuses and stimulates play.[url=

 http://www.creativesupra.com/creative-recreation_c1/]creative recreations shoes/url have been a hit amongst the hipsters

that love exclusive footwear. Shoes are not just shoes in the minds of collectors that idolize exclusive styles of Creative

Recreation. [url=  http://www.creativesupra.com/creative-recreation-cesario-classic-white_p437.html/]creative recs/url is

essentially breaking through barriers. Yes, this includes the bizzarre and the downright strange.

Changed 2 months ago by anonymous

Changed 7 weeks ago by anonymous

The <a href= http://www.crystalbridals.com/blog/hawaiian-wedding-dress.html>Hawaiian Wedding Dress</a> civil rights <a href= http://www.crystalbridals.com/blog/wedding-dress-pictures.html>Wedding Dress Pictures</a> group is expected <a href= http://www.crystalbridals.com/blog/angelo-wedding-dresses.html>Angelo Wedding Dresses</a> to approve a resolution at its annual convention Tuesday in Kansas City. <a href= http://www.crystalbridals.com/blog/strapless-beach-wedding-dresses.html>Strapless beach Wedding Dresses</a> By Kathleen Hennessey and Michael A. Memoli, Tribune Washington Bureau The NAACP is expected to approve a resolution at its annual convention

Changed 7 weeks ago by lkm <chemistry120@…>

<a href= http://www.louisvuittonlive.com>louis vuitton</a>

[url= http://www.louisvuittonlive.com]louis vuitton/url

<a href=" http://www.louisvuittonlive.com" title="louis vuitton">louis vuitton</a>

[url= http://www.louisvuittonlive.com louis vuitton]

Changed 7 weeks ago by lkm <chemistry120@…>

<a href=" http://www.louisvuittonlive.com">louis vuitton</a>

Note: See TracTickets for help on using tickets.