Blob Blame History Raw
diff --git a/Makefile.in b/Makefile.in
index b45bd86..bfda05d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2298,6 +2298,7 @@ am__dist_ppd_DATA_DIST = prnt/ps/hp-laserjet_4v-ps.ppd.gz \
 	ppd/hpcups/hp-officejet_pro_8630.ppd.gz \
 	ppd/hpcups/hp-officejet_pro_8640.ppd.gz \
 	ppd/hpcups/hp-officejet_pro_8660.ppd.gz \
+	ppd/hpcups/hp-officejet_pro_8720.ppd.gz \
 	ppd/hpcups/hp-officejet_pro_k5300.ppd.gz \
 	ppd/hpcups/hp-officejet_pro_k5400.ppd.gz \
 	ppd/hpcups/hp-officejet_pro_k550.ppd.gz \
@@ -4384,6 +4385,7 @@ cups_ppd_printers = \
    ppd/hpcups/hp-officejet_pro_8630.ppd.gz \
    ppd/hpcups/hp-officejet_pro_8640.ppd.gz \
    ppd/hpcups/hp-officejet_pro_8660.ppd.gz \
+   ppd/hpcups/hp-officejet_pro_8720.ppd.gz \
    ppd/hpcups/hp-officejet_pro_k5300.ppd.gz \
    ppd/hpcups/hp-officejet_pro_k5400.ppd.gz \
    ppd/hpcups/hp-officejet_pro_k550.ppd.gz \
diff --git a/cups_drv.inc b/cups_drv.inc
index cf37e52..ed4be87 100644
--- a/cups_drv.inc
+++ b/cups_drv.inc
@@ -596,6 +596,7 @@ cups_ppd_printers = \
    ppd/hpcups/hp-officejet_pro_8630.ppd.gz \
    ppd/hpcups/hp-officejet_pro_8640.ppd.gz \
    ppd/hpcups/hp-officejet_pro_8660.ppd.gz \
+   ppd/hpcups/hp-officejet_pro_8720.ppd.gz \
    ppd/hpcups/hp-officejet_pro_k5300.ppd.gz \
    ppd/hpcups/hp-officejet_pro_k5400.ppd.gz \
    ppd/hpcups/hp-officejet_pro_k550.ppd.gz \
diff --git a/data/models/models.dat b/data/models/models.dat
index aa1a610..db827f9 100644
--- a/data/models/models.dat
+++ b/data/models/models.dat
@@ -57825,6 +57825,72 @@ usb-pid=e811
 usb-vid=3f0
 wifi-config=3
 
+[hp_officejet_pro_8720]
+align-type=0
+clean-type=0
+color-cal-type=0
+copy-type=0
+embedded-server-type=1
+fax-type=6
+fw-download=False
+icon=hp_color_laserjet_cp2025.png
+io-mfp-mode=1
+io-mode=1
+io-support=14
+job-storage=0
+linefeed-cal-type=0
+model1=HP OfficeJet Pro 8720 All-in-One Printer
+model2=HP OfficeJet Pro 8725 All-in-One Printer
+monitor-type=0
+panel-check-type=0
+pcard-type=0
+plugin=0
+plugin-reason=0
+power-settings=0
+ppd-name=hp-officejet_pro_8720
+pq-diag-type=0
+r-type=1
+r0-agent1-kind=4
+r0-agent1-sku=F6U11A/F6U15A
+r0-agent1-type=1
+r0-agent2-kind=4
+r0-agent2-sku=F6U08A/F6U12A
+r0-agent2-type=4
+r0-agent3-kind=4
+r0-agent3-sku=F6U09A/F6U13A
+r0-agent3-type=5
+r0-agent4-kind=4
+r0-agent4-sku=F6U10A/F6U14A
+r0-agent4-type=6
+r1-agent1-kind=4
+r1-agent1-sku=F6U19A
+r1-agent1-type=1
+r1-agent2-kind=4
+r1-agent2-sku=F6U16A
+r1-agent2-type=4
+r1-agent3-kind=4
+r1-agent3-sku=F6U17A
+r1-agent3-type=5
+r1-agent4-kind=4
+r1-agent4-sku=F6U18A
+r1-agent4-type=6
+scan-src=3
+scan-type=7
+status-battery-check=0
+status-dynamic-counters=0
+status-type=10
+support-released=True
+support-subtype=48c3
+support-type=2
+support-ver=3.16.5
+tech-class=SPDOfficejetProAsize
+family-class=PCL3-Class1A
+tech-subclass=Normal
+tech-type=4
+usb-pid=7b12
+usb-vid=3f0
+wifi-config=3
+
 # align-type
 # ----------
 # Align cartridges type
diff --git a/prnt/drv/hpcups.drv.in b/prnt/drv/hpcups.drv.in
index e613a99..7b41088 100644
--- a/prnt/drv/hpcups.drv.in
+++ b/prnt/drv/hpcups.drv.in
@@ -12030,6 +12030,257 @@ Manufacturer "HP"
 
 }// End Pyramid15
 
+//////// SPDOfficejetProAsize
+{
+    Attribute "hpPrinterLanguage" "" "pcl3gui2"
+    Attribute "cupsEvenDuplex" "" "True"
+    Attribute "cupsBackSide" "" "Rotated"
+    Attribute "cupsFlipDuplex" "" "True"
+    Attribute "HPMechOffset" "" "117"
+    Attribute "hpPrinterPlatform" "" "SPDOfficejetProAsize"
+    Attribute "HPSPDClass" "" 1
+
+    Group "General/General"
+
+    Option "ColorModel/Output Mode" PickOne AnySetup 10.0
+    *Choice "RGB/Color" "<</cupsColorSpace 1/cupsBitsPerColor 8/cupsRowStep 0>>setpagedevice"
+    Choice "CMYGray/High Quality Grayscale" "<</cupsColorSpace 1/cupsBitsPerColor 8/cupsRowStep 1>>setpagedevice"
+    Choice "KGray/Black Only Grayscale" "<</cupsColorSpace 1/cupsBitsPerColor 8/cupsRowStep 2>>setpagedevice"
+
+    // cupsMediaType values map to MEDIATYPE from global_types.h
+    Option "MediaType/Media Type" PickOne AnySetup 10.0
+    *Choice "Plain/Plain Paper" "<</MediaType/cupsMediaType 0>>setpagedevice"
+    Choice "Glossy/HP Photo Papers" "<</MediaType/cupsMediaType 5>>setpagedevice"
+    Choice "CoatedBrochure/HP Matte Brochure or Professional Paper" "<</MediaType/cupsMediaType 2>>setpagedevice"
+    Choice "CoatedMatte/HP Matte Presentation Paper" "<</MediaType/cupsMediaType 2>>setpagedevice"
+    Choice "BrochureGlosy/HP Glossy Brochure or Professional Paper" "<</MediaType/cupsMediaType 8>>setpagedevice"
+    Choice "FastGlossy/Other photo inkjet papers" "<</MediaType/cupsMediaType 5>>setpagedevice"
+    Choice "Coated/Other matte inkjet Papers" "<</MediaType/cupsMediaType 2>>setpagedevice"
+    Choice "Brochure/Other glossy inkjet Paper" "<</MediaType/cupsMediaType 8>>setpagedevice"
+    Choice "BrochureHagaki/Inkjet hagaki" "<</MediaType/cupsMediaType 8>>setpagedevice"
+
+     // cupsCompression values map to QUALITY_MODE from global_types.h
+    Option "OutputMode/Print Quality" PickOne AnySetup 10.0
+    *Choice "Normal/Normal" "<</OutputType(0)/HWResolution[600 600]>>setpagedevice"
+     Choice "FastDraft/Draft" "<</OutputType(-2)/HWResolution[300 300]>>setpagedevice"
+     Choice "Best/Best" "<</OutputType(1)/HWResolution[600 600]>>setpagedevice"
+     Choice "Photo/High-Resolution Photo" "<</OutputType(2)/HWResolution[1200 1200]>>setpagedevice"
+
+
+    Option "InputSlot/Media Source" PickOne AnySetup 10.0
+       *Choice "Upper/Main Tray" "<</MediaPosition 1>>setpagedevice"
+
+    Option "Duplex/Double-Sided Printing" PickOne AnySetup 10.0
+       Choice "DuplexNoTumble/Long Edge (Standard)" "<</Duplex true/Tumble false>>setpagedevice"
+       Choice "DuplexTumble/Short Edge (Flip)" "<</Duplex true/Tumble true>>setpagedevice"
+       *Choice "None/Off" "<</Duplex false/Tumble false>>setpagedevice"
+
+
+     //Constraints
+     //MediaType & OutputMode
+     UIConstraints "*MediaType FastGlossy *OutputMode FastDraft"
+     UIConstraints "*MediaType Glossy *OutputMode FastDraft"
+     UIConstraints "*MediaType CoatedBrochure *OutputMode FastDraft"
+     UIConstraints "*MediaType CoatedMatte *OutputMode FastDraft"
+     UIConstraints "*MediaType Coated *OutputMode FastDraft"
+     UIConstraints "*MediaType BrochureGlosy *OutputMode FastDraft"
+     UIConstraints "*MediaType Brochure *OutputMode FastDraft"
+
+     //PaperSizes & MediaTypes
+     UIConstraints "*PageSize Photo3x5.FB *MediaType Plain"
+     UIConstraints "*PageSize Photo4x6.FB *MediaType Plain"
+     UIConstraints "*PageSize Photo2L.FB *MediaType Plain"
+     UIConstraints "*PageSize Photo5x7.FB *MediaType Plain"
+     UIConstraints "*PageSize 8x10.FB *MediaType Plain"
+     UIConstraints "*PageSize Photo3x5 *MediaType Plain"
+     UIConstraints "*PageSize Photo4x6 *MediaType Plain"
+     UIConstraints "*PageSize Photo2L *MediaType Plain"
+     UIConstraints "*PageSize Photo5x7 *MediaType Plain"
+     UIConstraints "*PageSize Photo8x10 *MediaType Plain"
+
+     UIConstraints "*PageSize A5 *MediaType FastGlossy"
+     UIConstraints "*PageSize JB5 *MediaType FastGlossy"
+     UIConstraints "*PageSize B5 *MediaType FastGlossy"
+     UIConstraints "*PageSize Executive *MediaType FastGlossy"
+     UIConstraints "*PageSize A4 *MediaType FastGlossy"
+     UIConstraints "*PageSize Letter *MediaType FastGlossy"
+     UIConstraints "*PageSize Legal *MediaType FastGlossy"
+     UIConstraints "*PageSize CardA4 *MediaType FastGlossy"
+     UIConstraints "*PageSize CardLetter *MediaType FastGlossy"
+     UIConstraints "*PageSize Card3x5 *MediaType FastGlossy"
+     UIConstraints "*PageSize Card4x6 *MediaType FastGlossy"
+     UIConstraints "*PageSize Card5x8 *MediaType FastGlossy"
+     UIConstraints "*PageSize 8.5x13 *MediaType FastGlossy"
+     UIConstraints "*PageSize Statement *MediaType FastGlossy"
+
+     UIConstraints "*PageSize EnvChou4 *MediaType FastGlossy"
+     UIConstraints "*PageSize EnvA2 *MediaType FastGlossy"
+     UIConstraints "*PageSize EnvC6 *MediaType FastGlossy"
+     UIConstraints "*PageSize EnvChou3 *MediaType FastGlossy"
+     UIConstraints "*PageSize EnvMonarch *MediaType FastGlossy"
+     UIConstraints "*PageSize Env10 *MediaType FastGlossy"
+     UIConstraints "*PageSize EnvDL *MediaType FastGlossy"
+     UIConstraints "*PageSize EnvC5 *MediaType FastGlossy"
+     UIConstraints "*PageSize Env6 *MediaType FastGlossy"
+
+     UIConstraints "*PageSize A5 *MediaType Glossy"
+     UIConstraints "*PageSize JB5 *MediaType Glossy"
+     UIConstraints "*PageSize B5 *MediaType Glossy"
+     UIConstraints "*PageSize Executive *MediaType Glossy"
+     UIConstraints "*PageSize A4 *MediaType Glossy"
+     UIConstraints "*PageSize Letter *MediaType Glossy"
+     UIConstraints "*PageSize Legal *MediaType Glossy"
+     UIConstraints "*PageSize CardA4 *MediaType Glossy"
+     UIConstraints "*PageSize CardLetter *MediaType Glossy"
+     UIConstraints "*PageSize Card3x5 *MediaType Glossy"
+     UIConstraints "*PageSize Card4x6 *MediaType Glossy"
+     UIConstraints "*PageSize Card5x8 *MediaType Glossy"
+     UIConstraints "*PageSize 8.5x13 *MediaType Glossy"
+     UIConstraints "*PageSize Statement *MediaType Glossy"
+
+     UIConstraints "*PageSize EnvChou4 *MediaType Glossy"
+     UIConstraints "*PageSize EnvA2 *MediaType Glossy"
+     UIConstraints "*PageSize EnvC6 *MediaType Glossy"
+     UIConstraints "*PageSize EnvChou3 *MediaType Glossy"
+     UIConstraints "*PageSize EnvMonarch *MediaType Glossy"
+     UIConstraints "*PageSize Env10 *MediaType Glossy"
+     UIConstraints "*PageSize EnvDL *MediaType Glossy"
+     UIConstraints "*PageSize EnvC5 *MediaType Glossy"
+     UIConstraints "*PageSize Env6 *MediaType Glossy"
+
+    // 4x6 or smaller
+      CustomMedia "Photo3.5x5/Photo 3.5x5in" 252 360 8.4 8.4 8.4 8.4 "<</cupsInteger0 121/PageSize[252 360]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 121/PageSize[252 360]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo3.5x5.FB/Borderless Photo 3.5x5in" 252 360 0 0 0 0 "<</cupsInteger0 121/PageSize[252 360]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 121/PageSize[252 360]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Card3x5/Index Card 3x5in" 216 360 8.4 8.4 8.4 8.4 "<</cupsInteger0 78/PageSize [216 360]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 78/PageSize[216 360]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Card4x6/Index Card 4x6in" 288 432 8.4 8.4 8.4 8.4 "<</cupsInteger0 74/PageSize [288 432]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 74/PageSize[288 432]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo3x5/Photo 3x5in" 216 360 8.4 8.4 8.4 8.4 "<</cupsInteger0 78/PageSize [216 360]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 78/PageSize[216 360]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo3x5.FB/Borderless Photo 3x5in" 216 360 0 0 0 0 "<</cupsInteger0 78/cupsReal0 0/cupsReal1 0/PageSize [216 360]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 78/cupsReal0 0/cupsReal1 0/PageSize[216 360]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo4x6/Photo 4x6in" 288 432 8.4 8.4 8.4 8.4 "<</cupsInteger0 74/PageSize[288 432]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 74/PageSize[288 432]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo4x6.FB/Borderless Photo 4x6in" 288 432 0 0 0 0 "<</cupsInteger0 74/cupsReal0 0/cupsReal1 0/PageSize[288 432]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 74/cupsReal0 0/cupsReal1 0/PageSize[288 432]/ImagingBBox null>>setpagedevice"
+      CustomMedia "A6/A6 105x148mm" 297.36 419.76 8.4 8.4 8.4 8.4 "<</cupsInteger0 73/PageSize[297.36 419.76]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 73/PageSize[297.36 419.76]/ImagingBBox null>>setpagedevice"
+      CustomMedia "A6.FB/A6 Borderless 105x148mm" 297.36 419.76 0 0 0 0 "<</cupsInteger0 73/PageSize[297.36 419.76]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 73/cupsReal0 0/cupsReal1 0/PageSize[297.36 419.76]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Hagaki/Hagaki 100x148mm" 283.46 419.52 8.4 8.4 8.4 8.4 "<</cupsInteger0 71/PageSize[283.46 419.52]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 71/cupsReal0 0/cupsReal1 0/PageSize[283.46 419.52]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Hagaki.FB/Hagaki Borderless 100x148mm" 283.46 419.52 0 0 0 0 "<</cupsInteger0 71/PageSize[283.46 419.52]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 71/cupsReal0 0/cupsReal1 0/PageSize[283.46 419.52]/ImagingBBox null>>setpagedevice"
+
+      // 5x7
+      CustomMedia "Photo5x7/Photo 5x7in" 360 504 8.4 8.4 8.4 8.4 "<</cupsInteger0 122/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 122/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo5x7.FB/Photo Borderless 5x7in" 360 504 0 0 0 0 "<</cupsInteger0 122/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 122/cupsReal0 0/cupsReal1 0/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Card5x8/Index Card 5x8in" 360 576 8.4 8.4 8.4 8.4 "<</cupsInteger0 75/PageSize[360 576]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 75/PageSize[360 576]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Card5x8.FB/Borderless Index Card 5x8in" 360 576 0 0 0 0 "<</cupsInteger0 75/PageSize[360 576]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 75/cupsReal0 0/cupsReal1 0/PageSize[360 576]/ImagingBBox null>>setpagedevice"
+      CustomMedia "A5/A5 148x210mm" 419.76 595.44 8.4 8.4 8.4 8.4 "<</cupsInteger0 25/PageSize[419.76 595.44]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 25/PageSize[419.76 595.44]/ImagingBBox null>>setpagedevice"
+      CustomMedia "A5.FB/A5 Borderless 148x210mm" 419.76 595.44 0 0 0 0 "<</cupsInteger0 25/PageSize[419.76 595.44]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 25/cupsReal0 0/cupsReal1 0/PageSize[419.76 595.44]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Oufuku/Oufuku-Hagaki 200x148mm" 566.64 419.76 8.4 8.4 8.4 8.4 "<</cupsInteger0 72/PageSize[566.64 419.76]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 72/PageSize[566.64 419.76]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Oufuku.FB/Borderless Oufuku-Hagaki 200x148mm" 566.64 419.76 0 0 0 0 "<</cupsInteger0 72/PageSize[566.64 419.76]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 72/cupsReal0 0/cupsReal1 0/PageSize[566.64 419.76]/ImagingBBox null>>setpagedevice"
+
+
+      // Standard
+      CustomMedia "8.5x13/8.5x13in" 612 936 8.4 8.4 8.4 8.4 "<</cupsInteger0 10/PageSize[612 936]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 10/PageSize[612 936]/ImagingBBox null>>setpagedevice"
+      CustomMedia "B5/B5 176x250mm" 498.96 708.48 8.4 8.4 8.4 8.4 "<</cupsInteger0 101/PageSize[498.96 708.48]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 101/PageSize[498.96 708.48]/ImagingBBox null>>setpagedevice"
+      CustomMedia "JB5/JB5 182x257mm" 516.24 728.64 8.4 8.4 8.4 8.4 "<</cupsInteger0 45/PageSize[516.24 728.64]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 45/PageSize [516.24 728.64]/ImagingBBox null>>setpagedevice"
+      CustomMedia "JB5.FB/JB5 Borderless 182x257mm" 516.24 728.64 0 0 0 0 "<</cupsInteger0 45/PageSize[516.24 728.64]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 45/cupsReal0 0/cupsReal1 0/PageSize [516.24 728.64]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Executive/Executive 7.25x10.5in" 522 756 8.4 8.4 8.4 8.4 "<</cupsInteger0 1/PageSize[522 756]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 1/PageSize[522 756]/ImagingBBox null>>setpagedevice"
+      *CustomMedia "Letter/Letter 8.5x11in" 612 792 8.4 8.4 8.4 8.4 "<</cupsInteger0 2/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 2/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Letter.FB/Letter Borderless 8.5x11in" 612 792 0 0 0 0 "<</cupsInteger0 2/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 2/cupsReal0 0/cupsReal1 0/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+      CustomMedia "CardLetter/Index Card Letter 8.5x11in" 612 792 8.4 8.4 8.4 8.4 "<</cupsInteger0 2/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 2/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+      CustomMedia "CardLetter.FB/Borderless Index Card Letter 8.5x11in" 612 792 0 0 0 0 "<</cupsInteger0 2/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 2/cupsReal0 0/cupsReal1 0/PageSize[612 792]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Statement/Statement 5.5x8.5in" 396 612 8.4 8.4 8.4 8.4 "<</cupsInteger0 15/PageSize[396 612]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 15/PageSize[396 612]/ImagingBBox null>>setpagedevice"
+
+      CustomMedia "A4/A4 210x297mm" 595.44 841.68 8.4 8.4 8.4 8.4 "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+      CustomMedia "A4.FB/A4 Borderless 210x297mm" 595.44 841.68 0 0 0 0 "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 26/cupsReal0 0/cupsReal1 0/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+      CustomMedia "CardA4/Index Card A4 210x297mm" 595.44 841.68 8.4 8.4 8.4 8.4 "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+      CustomMedia "CardA4.FB/Borderless Index Card A4 210x297mm" 595.44 841.68 0 0 0 0 "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 26/cupsReal0 0/cupsReal1 0/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
+
+      CustomMedia "Legal/Legal 8.5x14in" 612 1008 8.4 8.4 8.4 8.4 "<</cupsInteger0 3/PageSize[612 1008]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 3/PageSize[612 1008]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo2L/Photo 2L 127x178mm" 360 504 8.4 8.4 8.4 8.4 "<</cupsInteger0 126/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 126/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Photo2L.FB/Photo 2L Borderless 127x178mm" 360 504 0 0 0 0 "<</cupsInteger0 126/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 126/cupsReal0 0/cupsReal1 0/PageSize[360 504]/ImagingBBox null>>setpagedevice"
+
+      CustomMedia "Photo8x10/Photo 8x10in" 576 720 8.4 8.4 8.4 8.4 "<</cupsInteger0 7/PageSize[576 720]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 7/PageSize[576 720]/ImagingBBox null>>setpagedevice"
+      CustomMedia "8x10.FB/Borderless 8x10in" 576 720 0 0 0 0 "<</cupsInteger0 7/PageSize[576 720]/ImagingBBox null>>setpagedevice"
+         "<</cupsInteger0 7/cupsReal0 0/cupsReal1 0/PageSize[576 720]/ImagingBBox null>>setpagedevice"
+
+
+    {
+      // Custom page sizes from 1x4in to legal
+      HWMargins 8.4 8.4 8.4 8.4
+      VariablePaperSize Yes
+      MinSize 3in 5in
+      MaxSize 8.5in 14in
+
+
+    }
+
+
+         // Envelope
+      CustomMedia "EnvA2/A2 Envelope 4.37x5.75in" 314.64 414 8.4 8.4 8.4 8.4 "<</cupsInteger0 109/PageSize[314.64 414]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 109/PageSize[314.64 414]/ImagingBBox null>>setpagedevice"
+      CustomMedia "EnvC6/C6 Envelope 114x162mm" 323.28 459.36 8.4 8.4 8.4 8.4 "<</cupsInteger0 92/PageSize[323.28 459.36]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 92/PageSize[323.28 459.36]/ImagingBBox null>>setpagedevice"
+      CustomMedia "EnvChou4/#4 Japanese Envelope 90x205mm" 254.88 581.04 8.4 8.4 8.4 8.4 "<</cupsInteger0 111/PageSize[254.88 581.04]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 111/PageSize[254.88 581.04]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Env6/#6 Envelope 3.63x6.5in" 261.36 468 8.4 8.4 8.4 8.4 "<</cupsInteger0 83/PageSize[261.36 468]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 83/PageSize[261.36 468]/ImagingBBox null>>setpagedevice"
+      CustomMedia "EnvMonarch/Monarch Envelope 3.875x7.5in" 279 540 8.4 8.4 8.4 8.4 "<</cupsInteger0 80/PageSize[279 540]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 80/PageSize[279 540]/ImagingBBox null>>setpagedevice"
+      CustomMedia "EnvDL/DL Envelope 110x220mm" 311.76 623.52 8.4 8.4 8.4 8.4 "<</cupsInteger0 90/PageSize[311.76 623.52]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 90/PageSize[311.76 623.52]/ImagingBBox null>>setpagedevice"
+      CustomMedia "Env10/#10 Envelope 4.125x9.5in" 297 684 8.4 8.4 8.4 8.4 "<</cupsInteger0 81/PageSize[297 684]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 81/PageSize[297 684]/ImagingBBox null>>setpagedevice"
+      CustomMedia "EnvChou3/#3 Japanese Envelope 120x235mm" 339.84 666 8.4 8.4 8.4 8.4 "<</cupsInteger0 110/PageSize[339.84 666]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 110/PageSize[339.84 666]/ImagingBBox null>>setpagedevice"
+      CustomMedia "EnvC5/C5 Envelope 162x229mm" 459.36 649.44 8.4 8.4 8.4 8.4 "<</cupsInteger0 91/PageSize[459.36 649.44]/ImagingBBox null>>setpagedevice"
+             "<</cupsInteger0 91/PageSize[459.36 649.44]/ImagingBBox null>>setpagedevice"
+
+          // <%SPDOfficejetProAsize:Normal%>
+          {
+            ModelName "HP Officejet Pro 8720"
+            Attribute "NickName" "" "HP Officejet Pro 8720, hpcups $Version"
+            Attribute "ShortNickName" "" "HP Officejet Pro 8720 hpijs"
+            Attribute "1284DeviceID" "" "MFG:HP;MDL:hp officejet pro 8720;DES:hp officejet pro 8720;"
+            PCFileName "hp-officejet_pro_8720.ppd"
+            Attribute "Product" "" "(HP Officejet Pro 8720 All-in-one Printer)"
+            Attribute "Product" "" "(HP Officejet Pro 8725 All-in-one Printer)"
+          }
+
+}// End SPDOfficejetProAsize
+
 //////// OJ7000
 {
   Attribute "hpPrinterLanguage" "" "pcl3gui2"
diff --git a/prnt/drv/hpijs.drv.in b/prnt/drv/hpijs.drv.in
index 5200629..6464c51 100644
--- a/prnt/drv/hpijs.drv.in
+++ b/prnt/drv/hpijs.drv.in
@@ -14702,6 +14702,21 @@ lity:PenSet=2,Quality:FullBleed=1"
   }
 } // end CopperheadIPH15
 
+{
+
+  // <%SPDOfficejetProAsize:Normal%>
+  {
+    ModelName "HP Officejet Pro 8720 hpijs"
+    Attribute "NickName" "" "HP Officejet Pro 8720 hpijs, $Version"
+    Attribute "ShortNickName" "" "HP Officejet Pro 8720 hpijs"
+    Attribute "1284DeviceID" "" "MFG:HP;MDL:hp officejet pro 8720;DES:hp officejet pro 8720;"
+    PCFileName "hp-officejet_pro_8720-hpijs.ppd"
+    Attribute "Product" "" "(HP Officejet Pro 8720 All-in-one Printer)"
+    Attribute "Product" "" "(HP Officejet Pro 8725 All-in-one Printer)"
+  }
+
+}
+
 ////////// Saipan
 {
   Attribute "DefaultResolution" "" "1200dpi"