This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Printing problems!

Tags: None
(comma "," separated)
Andi1612
Registered Member
Posts
3
Karma
0

Printing problems!

Sat Apr 23, 2016 11:00 am
Hi,
I'm using okular 0.24.2 and have a problem with printing a no regular sized pdf page (not a A4 page).
If I want to print a page, which doesn't have the regular (A4) size, how can I tell Okular to scale the page, so that it fits the given size (e.g. A4).
I'm searching something like in the printer dialogue of showFoto (last tab).
Thanks!

btw: Is there no way to attach a screenshot in a message in this forum ?
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Printing problems!

Sat Apr 23, 2016 11:22 am
forum image posting
re: images, the forum doesn't host images you must use a 3rd part image hosting site

to facilitate tagging there are buttons if you use the post's preview button


the tags are:
Code: Select all
for images [img] http://address_of_image [/img]
to resize the image (width size limit of 720 pixels) [thumb=500] http:/address_of_image [/thumb]


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Printing problems!  Topic is solved

Sat Apr 23, 2016 11:33 am
you will need to do this with the command line, possibly the convert command (Google'ing will probably show other options)

http://linproject.blogspot.com/2012/09/ ... to-a4.html


OpenSuse Leap 42.1 x64, Plasma 5.x

Andi1612
Registered Member
Posts
3
Karma
0

Re: Printing problems!

Sat Apr 23, 2016 1:09 pm
Thanks for your hint.
Using the convert command is possible, but a kind of complicate...
I found https://docupub.com/pdfresize/ an online converter. But in this case, you give up your privacy.
Scaling a pdf for printing should be a basic feature of a pdf viewer like okular(shouldn't it).
It would be great, if a gifted programmer could spend some time to implement this feature. :)
Andi1612
Registered Member
Posts
3
Karma
0

Re: Printing problems!

Sat Apr 23, 2016 1:30 pm
Finally, I found something with using ghostscript:
gs \
-o output.pdf \
-sDEVICE=pdfwrite \
-sPAPERSIZE=a4 \
-dFIXEDMEDIA \
-dPDFFitPage \
-dCompatibilityLevel=1.4 \
input.pdf

Greetings!
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Printing problems!

Sat Apr 23, 2016 1:31 pm
another alternative would be a service menu, there is a set but that functionality doesn't seem to be there


OpenSuse Leap 42.1 x64, Plasma 5.x



Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]