Borderless printing via GCP

1,060 views
Skip to first unread message

lein...@gmail.com

unread,
Oct 13, 2014, 4:54:23 AM10/13/14
to gcp-dev...@googlegroups.com

I have a Canon MG6650 what is capable of borderless printing when printing via PC directly, but via GCP I'm not able to
print PDF without border (even when sending with margin settings "0"). The printer is registered via Chrome as a non-cloud-printer.

What I found:
- when I'm using the /printer IF the returned capabilities are not containing the psk:PageBorderless capability
- I can print borderless via GCP when I'm setting the printer to print borderless "by default" in printer settings

--> so now I'm guessing: would it be possible somehow to send a request via GCP what sets borderless print for this printer?

My questions:

1. I've tried to update the printer capabilities with the /update IF, however it reported success this capability is not added:

...
   
{
         
"name": "psk:PageBorderless",
         
"psf:SelectionType": "psk:PickOne",
         
"psk:DisplayName": "Borderless print",
         
"type": "Feature",
         
"options": [
           
{
             
"name": "psk:Borderless",
             
"psk:DisplayName": "On"
           
},
           
{
             
"name": "psk:None",
             
"default": true,
             
"psk:DisplayName": "Off"
           
}
         
]
   
},
...

So what happened now? Can I add a new capability to the printer via /update IF (what is supported by the printer but not listed by GCP) and will it be used during print? It seems not...


2. When I'm sending a capability - what is not listed in the printer capabilities - via the /submit IF then is it tried to be sent to the printer? when I'm sending such a capability there is no error, but it seems to be ignored...


3. what would be the proper request format for borderless printing anyway? I'm trying currently with print ticket (via /submit):


{              
'version': '1.0',              
'print': {                  
 
'vendor_ticket_item': [{'id':'psk:PageBorderless','value':'psk:Borderless'}],                  
...
 
'margins': {'top_microns':0, 'right_microns':0, 'bottom_microns' : 0, 'left_microns':0},         'fit_to_page':{'type':4}
}
}


Thank you & BR,
Tamás

Robert Toscano

unread,
Oct 15, 2014, 7:16:12 PM10/15/14
to gcp-dev...@googlegroups.com
Does this capability show up in the advanced section of our print dialog? https://www.google.com/cloudprint/dialog.html

For question 1: You're not using a supported capability format in the /update API. You can only provide the printer capabilities in PPD, XPS, or CDD. The format that is returned in the /printer API is a legacy format which we no longer support.

For question 2: Yes capabilities which are not supported by the printer are ignored.

For question 3: To answer this, I'll have to see the printer's CDD file. Can you post the output of the /printer API but with the parameter use_cdd=true?

--
You received this message because you are subscribed to the Google Groups "Google Cloud Print Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcp-developer...@googlegroups.com.
Visit this group at http://groups.google.com/group/gcp-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/gcp-developers/16324c2f-2c22-4487-b45f-00ffba62f6b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lein...@gmail.com

unread,
Oct 16, 2014, 9:25:22 AM10/16/14
to gcp-dev...@googlegroups.com
Dear Robert,

thank you for your answer,
based on your answer I was able to add the new capability to the printer capability list (see below the updated one), but still the borderless printing is not ok .

I'm sending command:
{    
'version': '1.0',    'print': {        
'vendor_ticket_item': [{'id':'PageMargins','value':'BORDERLESS'}],        
...
'media_size': { 'width_microns' : 210000, 'height_microns' : 297000 },       'page_orientation': {'type': 0 },        'margins': {'top_microns' : 0, 'right_microns' : 0, 'bottom_microns' : 0, 'left_microns' : 0},        
'fit_to_page':{'type':4}    }
}

Note: after the update it is still not possible select borderless in the Chrome as a print option ( I guess it might be normal), but also the printed page is not borderless (left side is on the border, but on the top and on the right side there is are some white space remained). Is it the command what is wrong or the printer capabilities are not set correctly?

Currently I'm getting the following capabilities:

{
 
"success": true,
 
"xsrf_token": "XXXX",
 
"request": {
 
"time": "0",
 
"users": [
   
"XXXX"
 
],
 
"params": {
   
"extra_fields": [
   
""
   
],
   
"use_cdd": [
   
"true"
   
],
   
"input_type": [
   
""
   
],
   
"printerid": [
   
"XXXX"
   
]
 
},
 
"user": "XXX"
 
},
 
"printers": [
 
{
   
"tags": [
   
"^recent",
   
"^own",
   
"^connector",
   
"^can_share",
   
"^can_update",
   
"^can_delete",
   
"__cp__chrome_version\u003d37.0.2062.124 m",
   
"__cp__printer-location\u003d",
   
"__cp__printer-make-and-model\XXXCanon MG6600 series Printer",
   
"__cp__system_driverinfo\XXXCanon MG6600 series Printer;XXX",
   
"__cp__system_name\u003dWindows NT",
   
"__cp__system_version\u003d6.1 SP1",
   
"__cp__tagshash\XXX"
   
],
   
"createTime": "1411398153516",
   
"ownerName": "myguser",
   
"accessTime": "1413185610487",
   
"supportedContentTypes": "application/pdf",
   
"updateTime": "1413446075921",
   
"status": "0",
   
"ownerId": "XXXX",
   
"gcpVersion": "1.0",
   
"capsHash": "2d0557705c604ccd51aa6a36a6a0a026",
   
"isTosAccepted": false,
   
"access": [
   
{
     
"scope": "XXX",
     
"membership": "MANAGER",
     
"email": "XXX",
     
"name": "myguser",
     
"role": "OWNER",
     
"type": "USER"
   
}
   
],
   
"type": "GOOGLE",
   
"id": "XXX",
   
"description": "",
   
"proxy": "XXXX",
   
"name": "Canon MG6600 series Printer",
   
"defaultDisplayName": "",
   
"local_settings": {
   
"current": {
     
"xmpp_timeout_value": 300
   
}
   
},
   
"capabilities": {
   
"printer": {
     
"copies": {
     
},
     
"supported_content_type": [
     
{
       
"content_type": "application/pdf"
     
}
     
],
     
"color": {
     
"option": [
       
{
       
"is_default": true,
       
"type": "STANDARD_COLOR",
       
"vendor_id": "2"
       
},
       
{
       
"type": "STANDARD_MONOCHROME",
       
"vendor_id": "1"
       
}
     
]
     
},
     
"collate": {
     
},
     
"media_size": {
     
"option": [
       
{
       
"custom_display_name": "Letter 8.5\"x11\" 22x28cm",
       
"height_microns": 279400,
       
"width_microns": 215900,
       
"name": "NA_LETTER",
       
"vendor_id": "1"
       
},
       
{
       
"custom_display_name": "Legal 8.5\"x14\" 22x36cm",
       
"height_microns": 355600,
       
"width_microns": 215900,
       
"name": "NA_LEGAL",
       
"vendor_id": "5"
       
},
       
{
       
"custom_display_name": "A5",
       
"height_microns": 210000,
       
"width_microns": 148000,
       
"name": "ISO_A5",
       
"vendor_id": "11"
       
},
       
{
       
"custom_display_name": "A4",
       
"height_microns": 297000,
       
"width_microns": 210000,
       
"name": "ISO_A4",
       
"is_default": true,
       
"vendor_id": "9"
       
},
       
{
       
"custom_display_name": "B5",
       
"height_microns": 257000,
       
"width_microns": 182000,
       
"name": "JIS_B5",
       
"vendor_id": "13"
       
},
       
{
       
"custom_display_name": "4\"x6\" 10x15cm",
       
"height_microns": 152400,
       
"width_microns": 101600,
       
"name": "NA_INDEX_4X6",
       
"vendor_id": "126"
       
},
       
{
       
"custom_display_name": "5\"x7\" 13x18cm",
       
"height_microns": 177800,
       
"width_microns": 127000,
       
"name": "NA_5X7",
       
"vendor_id": "127"
       
},
       
{
       
"custom_display_name": "8\"x10\" 20x25cm",
       
"height_microns": 254000,
       
"width_microns": 203200,
       
"name": "NA_GOVT_LETTER",
       
"vendor_id": "128"
       
},
       
{
       
"custom_display_name": "L 89x127mm",
       
"height_microns": 127000,
       
"width_microns": 89000,
       
"vendor_id": "129"
       
},
       
{
       
"custom_display_name": "2L 127x178mm",
       
"height_microns": 178000,
       
"width_microns": 127000,
       
"name": "NA_5X7",
       
"vendor_id": "130"
       
},
       
{
       
"custom_display_name": "Hagaki 100x148mm",
       
"height_microns": 148000,
       
"width_microns": 100000,
       
"name": "JPN_HAGAKI",
       
"vendor_id": "43"
       
},
       
{
       
"custom_display_name": "Hagaki 2 200x148mm",
       
"height_microns": 200000,
       
"width_microns": 148000,
       
"name": "JPN_OUFUKU",
       
"vendor_id": "69"
       
},
       
{
       
"custom_display_name": "Envelope Com 10",
       
"height_microns": 241300,
       
"width_microns": 104700,
       
"name": "NA_NUMBER_10",
       
"vendor_id": "20"
       
},
       
{
       
"custom_display_name": "Envelope DL",
       
"height_microns": 220000,
       
"width_microns": 110000,
       
"name": "ISO_DL",
       
"vendor_id": "27"
       
},
       
{
       
"custom_display_name": "Nagagata 3 4.72\"x9.25\"",
       
"height_microns": 235000,
       
"width_microns": 120000,
       
"name": "JPN_CHOU3",
       
"vendor_id": "73"
       
},
       
{
       
"custom_display_name": "Nagagata 4 3.54\"x8.07\"",
       
"height_microns": 205000,
       
"width_microns": 90000,
       
"name": "JPN_CHOU4",
       
"vendor_id": "74"
       
},
       
{
       
"custom_display_name": "Yougata 4 4.13\"x9.25\"",
       
"height_microns": 235000,
       
"width_microns": 105000,
       
"name": "JPN_YOU4",
       
"vendor_id": "91"
       
},
       
{
       
"custom_display_name": "Yougata 6 3.86\"x7.48\"",
       
"height_microns": 190000,
       
"width_microns": 98000,
       
"name": "NA_MONARCH",
       
"vendor_id": "131"
       
},
       
{
       
"custom_display_name": "11\"x17\" 279.4x431.8mm (Scaled)",
       
"height_microns": 431800,
       
"width_microns": 279400,
       
"name": "NA_LEDGER",
       
"vendor_id": "3"
       
},
       
{
       
"custom_display_name": "17\"x22\" 431.8x558.8mm (Scaled)",
       
"height_microns": 558800,
       
"width_microns": 431800,
       
"name": "NA_C",
       
"vendor_id": "24"
       
},
       
{
       
"custom_display_name": "A3 (Scaled)",
       
"height_microns": 420000,
       
"width_microns": 297000,
       
"name": "ISO_A3",
       
"vendor_id": "8"
       
},
       
{
       
"custom_display_name": "A3+ 13\"x19\" 33x48cm (Scaled)",
       
"height_microns": 483000,
       
"width_microns": 329000,
       
"vendor_id": "274"
       
},
       
{
       
"custom_display_name": "A2 (Scaled)",
       
"height_microns": 594000,
       
"width_microns": 420000,
       
"name": "ISO_A2",
       
"vendor_id": "66"
       
},
       
{
       
"custom_display_name": "B4 (Scaled)",
       
"height_microns": 364000,
       
"width_microns": 257000,
       
"name": "JIS_B4",
       
"vendor_id": "12"
       
},
       
{
       
"custom_display_name": "B3 (Scaled)",
       
"height_microns": 515000,
       
"width_microns": 364000,
       
"name": "JIS_B3",
       
"vendor_id": "257"
       
},
       
{
       
"custom_display_name": "10\"x12\" 25x30cm (Scaled)",
       
"height_microns": 304800,
       
"width_microns": 254000,
       
"vendor_id": "297"
       
},
       
{
       
"custom_display_name": "14\"x17\" 36x43cm (Scaled)",
       
"height_microns": 431800,
       
"width_microns": 355600,
       
"vendor_id": "296"
       
}
     
]
     
},
     
"page_orientation": {
     
"option": [
       
{
       
"is_default": true,
       
"type": "PORTRAIT"
       
},
       
{
       
"type": "LANDSCAPE"
       
},
       
{
 
      "type": "AUTO"
       
}
     
]
     
},
     
"duplex": {
     
"option": [
       
{
       
"is_default": true,
       
"type": "NO_DUPLEX"
       
},
       
{
       
"type": "LONG_EDGE"
       
},
       
{
       
"type": "SHORT_EDGE"
       
}
     
]
     
},
     
"margins": {
     
"option": [
       
{
       
"left_microns": 0,
       
"right_microns": 0,
       
"bottom_microns": 0,
       
"is_default": true,
       
"top_microns": 0,
       
"type": "BORDERLESS"
       
},
       
{
       
"left_microns": 0,
       
"right_microns": 0,
       
"bottom_microns": 0,
       
"top_microns": 0,
       
"type": "STANDARD"
       
},
       
{
       
"left_microns": 0,
       
"right_microns": 0,
       
"bottom_microns": 0,
       
"top_microns": 0,
       
"type": "CUSTOM"
       
}
     
]
     
}
   
},
   
"version": "1.0"
   
},
   
"displayName": "Canon MG6600 series Printer"
 
}
 
]
}


Thank you and Br.
Tamás

lein...@gmail.com

unread,
Oct 16, 2014, 9:57:35 AM10/16/14
to gcp-dev...@googlegroups.com, lein...@gmail.com

Also printing was done with default printer settings:



Also I've tested with 'fit_to_page' - 0,1,2,4 - it seems that there is no difference, all the time left side is on the border, top (3mm) and right (8mm) and bottom (5mm) is wrong.

Having setting the "Borderless" in the Windows printing preferences fixes the probelem.

Robert Toscano

unread,
Oct 22, 2014, 3:25:46 PM10/22/14
to gcp-dev...@googlegroups.com, lein...@gmail.com
It looks like the problem here is that the device is not advertising a 'borderless' vendor capability. In fact, it does not define any vendor capabilities in its capabilities. It seems that this should be achieved by providing the 'margins' ticket item as you have done. Let us investigate this a bit further.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Print Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcp-developer...@googlegroups.com.
Visit this group at http://groups.google.com/group/gcp-developers.

Tamas Horvath

unread,
Nov 4, 2014, 4:54:35 AM11/4/14
to gcp-dev...@googlegroups.com, lein...@gmail.com

Can I send any more information what could be helpful?

Also as I wrote before - my printer is a non-cloud-ready printer, registered via Chrome. I'd think that if it is possible
to get the printer details from Windows, then it could be also possible to get them when I'm registering the printer via Chrome. This
is why I'd expect the Borderless capability in the printer GCP capabilities: as the printer in Windows has it and Chrome prints via
my Windows for non-cloud-ready ones, or am I not right?


Thank you and Br.
Tamás

Reply all
Reply to author
Forward
0 new messages