Skip to content

Commit

Permalink
Updating PDF build quality
Browse files Browse the repository at this point in the history
  • Loading branch information
profvjreddi committed Jan 7, 2025
1 parent 887a435 commit 5e1ebed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/quarto_publish/gs_compress_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import subprocess
import sys

def convert_pdf(input_file, output_file, settings='/screen', compatibility='1.4', debug=False):
def convert_pdf(input_file, output_file, settings='/printer', compatibility='1.4', debug=False):
command = [
'gs',
'-sDEVICE=pdfwrite',
Expand Down Expand Up @@ -30,7 +30,7 @@ def main():
parser = argparse.ArgumentParser(description="Convert PDF using Ghostscript with various options.")
parser.add_argument('-i', '--input', required=True, help="Input PDF file")
parser.add_argument('-o', '--output', required=True, help="Output PDF file")
parser.add_argument('-s', '--settings', default='/screen', help="PDF settings (default: /screen)")
parser.add_argument('-s', '--settings', default='/printer', help="PDF settings (default: /ebook)")
parser.add_argument('-c', '--compatibility', default='1.4', help="PDF compatibility level (default: 1.4)")
parser.add_argument('-d', '--debug', action='store_true', help="Enable debug mode")

Expand Down

0 comments on commit 5e1ebed

Please sign in to comment.