I am looking for an open source command line tool to crop PDF file just like we can do in Adobe Acrobat Pro. I have tried PdfTk, ImageMagick, PyPDF, and GhostScript—all with no success so far.
Home
/
user-26758
Rakesh's questions
Are there any Open Source Tools to Remove PDF links in Ubuntu. I use PDFtk and i am not able to find any internal links in it. Due to the Internal links my python script that uses PyPdf to merge the PDF files into one file fails.
I have default ghostscript version 8.71 installed in my Ubuntu Machine i would like to update it to the latest version
I download the file from http://downloads.ghostscript.com/public/ghostpdl-9.01.tar.gz When i run make command i get error
o -c ./obj/gsromfs1.c
./obj/echogs -w ./obj/ldt.tr -n - gcc -o ./bin/gs
./obj/echogs -a ./obj/ldt.tr -n -s ./obj/gsromfs1.o ./obj/gs.o -s
cat ./obj/ld.tr >>./obj/ldt.tr
./obj/echogs -a ./obj/ldt.tr -s - -ldl -lm -rdynamic -ldl -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./obj/ldt.tr
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1
Are there any open-source command line tool for optimizing PDF in Ubuntu. I have used Ghost Script and i am able to convert the PDF into 72 dpi,
gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/screen \
-dNOPAUSE -dQUIET -dBATCH \
-sOutputFile=myOutput.pdf myInput.pdf
But what i would like to do is mention what dpi i want to convert the PDF to, like a 300 dpi PDF file to 90 dpi PDF file.