Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge-to-edge printing on EPSON XP-8700 Series #1294

Open
tresf opened this issue Sep 21, 2024 · 5 comments
Open

Edge-to-edge printing on EPSON XP-8700 Series #1294

tresf opened this issue Sep 21, 2024 · 5 comments
Assignees

Comments

@tresf
Copy link
Contributor

tresf commented Sep 21, 2024

As the title suggests, QZ Tray cannot print edge-to-edge on this printer.

When attempting on a customer machine:

  • Margins specified as zero
  • DPI specified as 360
  • Page size defined as 5x7

... however the logs show:

  • Top and left margin of .11 inches
  • Page size as 4.75x6.75
{
  "call": "print",
  "params": {
    "printer": {
      "name": "EPSON XP-8700 Series"
    },
    "options": {
      "bounds": null,
      "colorType": "color",
      "copies": 1,
      "density": 0,
      "duplex": false,
      "fallbackDensity": null,
      "interpolation": "bicubic",
      "jobName": null,
      "legacy": false,
      "margins": {
        "top": 0,
        "right": 0,
        "bottom": 0,
        "left": 0
      },
      "orientation": "portrait",
      "paperThickness": null,
      "printerTray": null,
      "rasterize": false,
      "rotation": 0,
      "scaleContent": true,
      "size": {
        "width": 5,
        "height": 7
      },
      "units": "in",
      "forceRaw": false,
      "encoding": null,
      "spool": null
    },
    "data": [
      {
        "type": "image",
        "data": "my-image.jpg"
      }
    ]
  },
  "signature": "",
  "timestamp": 1726424077476,
  "uid": "xjlf9y",
  "position": {
    "x": 534,
    "y": 423.5
  },
  "signAlgorithm": "SHA1"
}
@tresf
Copy link
Contributor Author

tresf commented Sep 24, 2024

Quoting some investigation from the customer:

Note: This is a verbatim copy of an email, but 5x7 should be used instead per customer request.

I think the problem might be that for this printer definition there are two paper sizes that overlap, one is borderless. Here are some bits from the ppd file (attached).

*PageSize EPKG/4 x 6 in: "<</PageSize[288.00 432.00]/ImagingBBox null>>setpagedevice"
*PageSize EPKG.NMgn/4 x 6 in (Borderless): "<</PageSize[288.00 432.00]/ImagingBBox null/cupsBorderlessScalingFactor 1.05>>setpagedevice"

*PageRegion EPKG/4 x 6 in: "<</PageSize[288.00 432.00]/ImagingBBox null>>setpagedevice"
*PageRegion EPKG.NMgn/4 x 6 in (Borderless): "<</PageSize[288.00 432.00]/ImagingBBox null/cupsBorderlessScalingFactor 1.05>>setpagedevice"

*ImageableArea EPKG/4 x 6 in: "8.40 8.40 279.60 423.60"
*ImageableArea EPKG.NMgn/4 x 6 in (Borderless): "0.00 0.00 288.00 432.00"

*PaperDimension EPKG/4 x 6 in: "288.00 432.00"
*PaperDimension EPKG.NMgn/4 x 6 in (Borderless): "288.00 432.00"

I'm not sure where/when qztray maps from size onto one of these, if ever, but maybe whatever does this is hitting the first definition.

@tresf
Copy link
Contributor Author

tresf commented Oct 1, 2024

Logs from the offending machine:

2024-09-15T14:14:37,478 [DEBUG] Message: {"call":"print","params":{"printer":{"name":"EPSON XP-8700 Series"},"options":{"bounds":null,"colorType":"color","copies":1,"density":0,"duplex":false,"fallbackDensity":null,"interpolation":"bicubic","jobName":null,"legacy":false,"margins":{"top":0,"right":0,"bottom":0,"left":0},"orientation":"portrait","paperThickness":null,"printerTray":null,"rasterize":false,"rotation":0,"scaleContent":true,"size":{"width":5,"height":7},"units":"in","forceRaw":false,"encoding":null,"spool":null},"data":[{"type":"image","data":"my-image.jpg"}]},"signature":"","timestamp":1726424077476,"uid":"xjlf9y","position":{"x":534,"y":423.5},"signAlgorithm":"SHA1"}
2024-09-15T14:14:37,484 [DEBUG] Calculated dialog centered at: java.awt.Point[x=534,y=423]
2024-09-15T14:14:38,260 [INFO] Allowed An anonymous request to print to EPSON XP-8700 Series
2024-09-15T14:14:38,261 [DEBUG] Using qz.printer.action.PrintImage to print
2024-09-15T14:14:38,261 [DEBUG] Searching for PrintService matching EPSON XP-8700 Series
2024-09-15T14:14:38,262 [DEBUG] Matched default printer, skipping further search
2024-09-15T14:14:38,262 [WARN] Default resolution for EPSON XP-8700 Series is missing, using fallback: null
2024-09-15T14:14:38,262 [WARN] Cannot read null as a double for fallbackDensity, using default
2024-09-15T14:14:38,285 [DEBUG] Parsed 1 images for printing
2024-09-15T14:14:38,290 [INFO] Starting printing (1 copies)
2024-09-15T14:14:38,290 [WARN] Not using a supported DPI for printing
2024-09-15T14:14:38,290 [DEBUG] Available DPI: [null]
2024-09-15T14:14:38,333 [DEBUG] Scaling image up by x3.511386030917281
2024-09-15T14:14:39,780 [DEBUG] Paper area: 8,8:342,486
2024-09-15T14:14:39,781 [DEBUG] Memory: 138m/8192m
2024-09-15T14:14:40,766 [INFO] Printing complete

@tresf
Copy link
Contributor Author

tresf commented Oct 1, 2024

Updated original bug report with proper DPI and updated JSON.

@Vzor-
Copy link
Contributor

Vzor- commented Oct 21, 2024

An upstream bug has been reported with Bellsoft. I will update this issue with any progress.

@tresf
Copy link
Contributor Author

tresf commented Nov 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants