This website does a great job of converting a PDF to an OCR PDF so you can search for text.
PDF to PNG
Convert PDF into PNG files
sudo apt update
sudo apt install poppler-utils
Usage
pdftoppm -png input.pdf output_name
Compress a PDF in Ubuntu using GhostScript
View Solution Article
How_to_Compress_PDF_in_Linux.pdf
Refer: compress-pdf-linux
Synopsis / Example
$ sudo apt install ghostscript
$ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf
dPDFSETTINGS Description
/prepress (default) Higher quality output (300 dpi) but bigger size
/ebook Medium quality output (150 dpi) with moderate output file size
/screen Lower quality output (72 dpi) but smallest possible output file size
Compare Two PDF in Ubuntu with diffpdf
Visual Compare
Usage diffpdf -a filename1.pdf filename2.pdf
Text Compare
Usage: diffpdf filename1.pdf filename2.pdf
Refer: http://manpages.ubuntu.com/manpages/xenial/man1/diffpdf.1.html
PDF to Image and Combine Two Images Together
Edit PDF Online
https://www.pdfescape.com/
Refer: https://askubuntu.com/questions/50170/how-to-convert-pdf-to-image/50180
pdftoppm input.pdf outputname -png -rx 300 -ry 300
Refer: https://askubuntu.com/questions/50170/how-to-convert-pdf-to-image
pdftoppm sbn_final_edocs_yoursuite_osq_deck10_ph_ADA.pdf outputname -png -f {page} -singlefile
Change {page} to the page number. It's indexed at 1, so -f 1 would be the first page.
pdftoppm sbn_final_edocs_yoursuite_osq_deck10_ph_ADA.pdf outputname -png -f 1 -singlefile
Convert PDF to Image File
pdftoppm sbn_final_edocs_yoursuite_osq_deck10_ph_ADA.pdf sbn_final_edocs_yoursuite_osq_deck10_ph_ADA -png -f 1 -singlefile
Combine Two Images Together for Onion Skin Review
composite -blend 50 block.png sbn_final_edocs_yoursuite_osq_deck10_ph_ADA.png sbn_final_edocs_yoursuite_osq_deck10_ph_ADA-check.png
Adding a page to eDocs
Michael May added Safety Docs to the OLCI PDF's with the help of Eric Filman. He applied changes to the following classes:
hal-ejb/src/main/config/chip/EdocsI18NMapping.xml
hal-ejb/src/main/java/com/hollandamerica/checkin/action/EdocsAction.java
hal-ejb/src/main/java/com/hollandamerica/checkin/action/EdocsHelper.java
hal-ejb/src/main/java/com/hollandamerica/common/biz/EdocsI18NHelper.java
See attachment for detail.
SBN PrelimFinal FTP process broken
From: Ruckman, Maurice (HAL)
Sent: Sunday, January 01, 2012 7:24 PM
To: HAL Service Request Center (HAL); Doan, Thomas (HAL Contractor)
Cc: De Vera, Marlon (HAL); Harris, Tyrone (HAL); Hofsetz, Therron (HAL); Augustine, Anila (HAL)
Subject: SBN PrelimFinal FTP process broken, Need UNIX help to resolve
Importance: High
SRC,
Please call out to the Unix, it will be necessary to have them delete some files to allow a schedule task to start again on the half hour. Please see attached email for previous example that happened on 12/16/2011 where Marlon opened a ticket to resolve. Please copy all recipients of this email with the work order.
Unix Team,
Please do the following, NOT on the half-hour, because a crontab is setup to run the scripts on the half-hour, such as 7:30pm, 8:30pm etc., just don’t want you in the middle of cleanup when the next job starts, and feel free to call me if there are any questions 206.650.7576:
Step #1:
Check if any bash jobs are running in HALPRDWAS02, named : 'LoadPrelimFinalDocs.sh' or 'LPFD*'. If so end task(s).
Step #2:
Delete all of the files in the following folder on halprdwas02
/prod/sbndocs/transfer/final/*
There are currently 68 files with a date/time stamp 12/31/2011 9:30am to 12/31/2011 9:32am
Step #3:
Delete the following lock file on halprdwas02
/prod/scripts/LoadPrelimFinalDocs.lock
Thomas,
Would you complete the necessary “emergency” documentation on Tuesday?
All,
The FTP Job failed on 12/31/2011 @ 10:30AM and its lock file was left in place, subsequently there are PDF files date stamped 12/31/2011 @ 9:30AM+ which were not processed. Have verified that all files in RRD archive folder are both on the production PDF server and exists in the Oracle database. Symptom emails “untitled” has been sent on the hour since that time with the message body of “LoadPrelimFinalDocs.sh IS STILL RUNNING! EXITING NOW!” when two of those happen back-to-back, it normally means there’s a problem.
Thanks,
Maurice Ruckman
Voice: (206) 626-7497 x67497
Cellular: (206) 650-7576
PHP to create PDF
Print PDF's without installing any special plug-ins for php. Necessary, because most hosting ISP's do not install PDF support by default.
http://www.fpdf.org/
