How to crop/trim margin automatically ?
Hello
I have converted a slide of powerpoint from PPT to PDF. Now I need to get a bash script that will detect the margin and remove the empty margins. pdfcrop is in extras of latex, but pdfcrop "myfile.pdf" does not do that automatically (to detect the white margins). Would you know a cool tool that would perform this? thank you |
How about "imagemagick -trim"?
|
Quote:
the best is as follows. open wine and powerpoint, place the image to the lower bottom/right side of the slide, and run Code:
pdfcrop mypptfile.ppt You can use libreoffice headless + pdfcrop with a macro in latex, and you have both powerpoint and latex at the same time just using linux and wine hq!! |
You can however convert all pages of the PDF to a tiff of your preferred quality, either with ghost-script or convert, then apply convert -trim anyway and re-create your PDF file with tiff2pdf. No wine- or LibreOffice-tricks are needed. The quality is under your control.
|
Quote:
I just had to bring the stuffs into the ppt to the lower part and pdfcrop trim it. It seems that pdfcrop start from top/left and goes down (it trims the white starting from top/left) |
All times are GMT -5. The time now is 07:24 AM. |