Since OpenDental programmers are dragging their feet in removing the gray background from Appointment Printout I implemented my own solution.
Step.1
Print the daily appointment to PDF file.
On windows PDFCreator is for free.
Download ImageMagick (it is free); I use Linux but it is available for windows as well.
Step 2. Run this command from a script, I use bash script on Linux but I'm sure you can use .bat file on Windows etc.
Code: Select all
convert -density 300 document.pdf -fuzz 10% -channel rgba -fill none -opaque "#d2d2d2" -opaque "#b8b8b8" daily_appointment.pdf
daily_appointment.pdf - is a converted document without gray background
-opaque "#d2d2d2" -opaque "#b8b8b8" are HEX gray colors. I opened the PDF document in gimp and read the HEX background colors.
If the fonts are choppy play with setting "-density 300" increase by 100 or 200 etc.
My bash script:
Code: Select all
#!/bin/sh
# line below get rid of gray shading in appintment screen print out from opendental and prints 5 copies to printer.
convert -density 300 document.pdf -fuzz 10% -channel rgba -fill none -opaque "#d2d2d2" -opaque "#b8b8b8" daily_appointment.pdf
lpr #5 daily_appointment.pdf
