Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

2014-06-16

Systemd Cheatsheet

Recently I started to use the new init system called systemd. I decided to write a simple "pdf" cheatsheet which helps me to print it and learn it.

See the example:



Here is the PDF: systemd_cheatsheet.pdf
Here is the SVG: systemd_cheatsheet.svg
Here is the TeX: systemd_cheatsheet.tex

All source files can be found here: GitHub - cheatsheet-systemd

I used the following sources: Arch Linux Wiki - systemd, SysVinit_to_Systemd_Cheatsheet, RHEL7 - System_Administrators_Guide.

Enjoy ;-)

2009-06-02

Trim margins from PDF document

It's happened to me one time, that I want to trim margins from PDF document.

It was a Czech manual for Panasonic G1 camera. You can see huge margins there, because it was officially written for A5 paper and they create manual for A4 paper size.

See the picture:
One page from Czech Panasonic DMC-G1 manual
One page from Czech Panasonic DMC-G1 manual

I used pdfcrop script from Heiko Oberdiek, which can easily trim margins.
pdfcrop.pl --margins 10 panasonic_g1.pdf panasonic_g1-2.pdf

Here is the result:
Trimmed page from Czech Panasonic DMC-G1 manual
Trimmed page from Czech Panasonic DMC-G1 manual

I hope this can be useful for somebody who needs this...
KDE pdf viewer Okular, has the function "Trim Margins", which works very well, but you can not save the PDF...