LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-03-2022, 12:57 PM   #1
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Compressing PDF files


I have a few very large pdf's, 400MB+ and I'm looking to compress them

I've tried ps2pdf, but it doesn't compress.

On https://acrobat.adobe.com/ they allow you to upload a file and compress it, this works great, 300MB down to 30MB.

Is there a Linux CLI that can do the same.
 
Old 10-03-2022, 01:54 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This didn't work?
 
1 members found this post helpful.
Old 10-03-2022, 04:59 PM   #3
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Thumbs up

Quote:
Originally Posted by Emerson View Post
This didn't work?
Cheers, that works just fine, I've created a simple script to do it called PDFCompress
Code:
#!/bin/bash
renice 19 -p $$ 
SETTING=ebook #ebook 150dpi - screen 75dpi - prepress 300dpi
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/$SETTING -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$1"-$SETTING.pdf "$1"
exit 0
###
# from here https://www.adobe.com/acrobat/hub/how-to/how-to-compress-pdf-in-linux
###

Last edited by GPGAgent; 10-03-2022 at 05:03 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best tool for compressing and un-compressing files? dwhswebhosting Linux - Server 8 03-24-2017 03:30 PM
[SOLVED] compressing files and adding files to a folder darkmouse Linux - Newbie 1 11-04-2012 06:55 PM
compressing pdf kpachopoulos General 2 05-10-2007 04:11 PM
zipping/compressing folders and files DiZASTiX Linux - Newbie 1 05-26-2003 08:48 PM
Compressing files GtkUser Linux - Software 1 04-02-2003 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration