diff --git a/compress_pdf.py b/compress_pdf.py index 2fc2f98..0fe2b1f 100644 --- a/compress_pdf.py +++ b/compress_pdf.py @@ -1,24 +1,16 @@ import os import sys -# dir_path = "/absolute/path/to/directory/" -dir_path = "/mnt/B4A49A87A49A4BAC/Downloads/" +dir_path = "/absolute/path/to/directory/" # Make sure dir_path is ending in / num_of_pages = 2 -# out_file = dir_path+"14010XXXX_CV.pdf" -out_file = dir_path+"140101045_CV.pdf" +out_file = dir_path+"14010XXXX_CV.pdf" -IS_PY3 = sys.version_info[0] == 3 -if IS_PY3: - _range = range -else: - _range = xrange - cmd = "gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile="+out_file # cmd = "gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile="+out_file -for i in _range(num_of_pages): - filename = dir_path+str(i+1)+".pdf" +for i in range(1,num_of_pages+1): + filename = dir_path+str(i)+".pdf" cmd = cmd+" "+filename os.system(cmd) \ No newline at end of file diff --git a/css/editor.css b/css/editor.css index a2c3cc3..40783a7 100644 --- a/css/editor.css +++ b/css/editor.css @@ -60,6 +60,16 @@ body { a { color: #666; } +a.blue { + color: blue; + text-decoration: none; + border-bottom: 1px dotted blue; +} +a.blue:hover { + color: blue; + text-decoration: none; + border-bottom: 1px solid blue; +} ul { margin-left: 20px; diff --git a/index.html b/index.html index 3d80f6a..0d054bc 100644 --- a/index.html +++ b/index.html @@ -591,6 +591,11 @@

Print as PDF

  • Adjust margin in the Chrome's print dialog box. You may need it if a section is getting split between two pages. Print each page separately with different margins if needed.
  • If URLs or some stray text is being shown in print preview, disable the options "Include headers and footers","Include background graphics" etc in the print dialog box.
  • +

    Merge and compress PDFs

    +