Giter Club home page Giter Club logo

Comments (4)

thegengen avatar thegengen commented on June 23, 2024

Hi there. Getting a nil here generally means that the job couldn't be created on Google CP. Could you tell me the the values of printer.connection_status and printer.details. Thanks!

from cloudprint.

t1ll avatar t1ll commented on June 23, 2024

Hi thegengen

First, i would like to thank you for your great library. Especially with the new authorisation handling it is really easy to connect a printer via google cloudprint ... great work :-)

Unfortunately i have the same problem as patojimenez explained: when i use the .print() function, i get nil returned.

I tried to get your information, but unfortunately printer.details is not defined. Thus, i just gathered capabilities and tags:

Capabilities:

{"printer"=>{"pwg_raster_config"=>{"reverse_order_streaming"=>false}, "copies"=>{"default"=>1, "max"=>100}, "page_range"=>{}, "media_size"=>{"option"=>[{"height_microns"=>279400, "is_continuous_feed"=>false, "vendor_id"=>"Letter", "name"=>"NA_LETTER", "width_microns"=>215900, "custom_display_name"=>"US Letter", "is_default"=>false}, {"height_microns"=>279400, "is_continuous_feed"=>false, "vendor_id"=>"Letter.FullBleed", "name"=>"NA_LETTER", "width_microns"=>215900, "custom_display_name"=>"US Letter (borderless)", "is_default"=>false}, {"height_microns"=>355600, "is_continuous_feed"=>false, "vendor_id"=>"Legal", "name"=>"NA_LEGAL", "width_microns"=>215900, "custom_display_name"=>"US Legal", "is_default"=>false}, {"height_microns"=>210001, "is_continuous_feed"=>false, "vendor_id"=>"A5", "name"=>"ISO_A5", "width_microns"=>148000, "custom_display_name"=>"A5", "is_default"=>false}, {"height_microns"=>297000, "is_continuous_feed"=>false, "vendor_id"=>"A4", "name"=>"ISO_A4", "width_microns"=>210001, "custom_display_name"=>"A4", "is_default"=>true}, {"height_microns"=>297000, "is_continuous_feed"=>false, "vendor_id"=>"A4.FullBleed", "name"=>"ISO_A4", "width_microns"=>210001, "custom_display_name"=>"A4 (borderless)", "is_default"=>false}, {"height_microns"=>256998, "is_continuous_feed"=>false, "vendor_id"=>"B5", "name"=>"JIS_B5", "width_microns"=>182001, "custom_display_name"=>"JIS B5", "is_default"=>false}, {"height_microns"=>152400, "is_continuous_feed"=>false, "vendor_id"=>"4x6", "name"=>"NA_INDEX_4X6", "width_microns"=>101600, "custom_display_name"=>"4 x 6", "is_default"=>false}, {"height_microns"=>152400, "is_continuous_feed"=>false, "vendor_id"=>"4x6.FullBleed", "name"=>"NA_INDEX_4X6", "width_microns"=>101600, "custom_display_name"=>"4 x 6 (borderless)", "is_default"=>false}, {"height_microns"=>177800, "is_continuous_feed"=>false, "vendor_id"=>"5x7", "name"=>"NA_5X7", "width_microns"=>127000, "custom_display_name"=>"5 x 7", "is_default"=>false}, {"height_microns"=>177800, "is_continuous_feed"=>false, "vendor_id"=>"5x7.FullBleed", "name"=>"NA_5X7", "width_microns"=>127000, "custom_display_name"=>"5 x 7 (borderless)", "is_default"=>false}, {"height_microns"=>254000, "is_continuous_feed"=>false, "vendor_id"=>"8x10", "name"=>"NA_GOVT_LETTER", "width_microns"=>203200, "custom_display_name"=>"8 x 10", "is_default"=>false}, {"height_microns"=>254000, "is_continuous_feed"=>false, "vendor_id"=>"8x10.FullBleed", "name"=>"NA_GOVT_LETTER", "width_microns"=>203200, "custom_display_name"=>"8 x 10 (borderless)", "is_default"=>false}, {"height_microns"=>127000, "is_continuous_feed"=>false, "vendor_id"=>"89x127mm", "name"=>"CUSTOM", "width_microns"=>88998, "custom_display_name"=>"L", "is_default"=>false}, {"height_microns"=>127000, "is_continuous_feed"=>false, "vendor_id"=>"89x127mm.FullBleed", "name"=>"CUSTOM", "width_microns"=>88998, "custom_display_name"=>"L (borderless)", "is_default"=>false}, {"height_microns"=>279400, "is_continuous_feed"=>false, "vendor_id"=>"Letter.ArtPaper35.2", "name"=>"NA_LETTER", "width_microns"=>215900, "custom_display_name"=>"US Letter (Art Paper Margin 35)", "is_default"=>false}, {"height_microns"=>297000, "is_continuous_feed"=>false, "vendor_id"=>"A4.ArtPaper35.2", "name"=>"ISO_A4", "width_microns"=>210001, "custom_display_name"=>"A4 (Art Paper Margin 35)", "is_default"=>false}, {"height_microns"=>148000, "is_continuous_feed"=>false, "vendor_id"=>"Postcard", "name"=>"JPN_HAGAKI", "width_microns"=>99998, "custom_display_name"=>"Postcard", "is_default"=>false}, {"height_microns"=>148000, "is_continuous_feed"=>false, "vendor_id"=>"Postcard.FullBleed", "name"=>"JPN_HAGAKI", "width_microns"=>99998, "custom_display_name"=>"Postcard (borderless)", "is_default"=>false}, {"height_microns"=>148000, "is_continuous_feed"=>false, "vendor_id"=>"DoublePostcard", "name"=>"CUSTOM", "width_microns"=>200000, "custom_display_name"=>"Postcard Double", "is_default"=>false}, {"height_microns"=>241300, "is_continuous_feed"=>false, "vendor_id"=>"Env10", "name"=>"NA_NUMBER_10", "width_microns"=>104771, "custom_display_name"=>"Envelope #10", "is_default"=>false}, {"height_microns"=>219999, "is_continuous_feed"=>false, "vendor_id"=>"EnvDL", "name"=>"PRC_5", "width_microns"=>109999, "custom_display_name"=>"Envelope DL", "is_default"=>false}, {"height_microns"=>234999, "is_continuous_feed"=>false, "vendor_id"=>"EnvYou4", "name"=>"JPN_YOU4", "width_microns"=>105000, "custom_display_name"=>"Envelope You4", "is_default"=>false}, {"height_microns"=>189999, "is_continuous_feed"=>false, "vendor_id"=>"98x190mm", "name"=>"NA_MONARCH", "width_microns"=>98001, "custom_display_name"=>"Yougata 6", "is_default"=>false}, {"height_microns"=>224828, "is_continuous_feed"=>false, "vendor_id"=>"130x224.83mm.Disctray.11", "name"=>"CUSTOM", "width_microns"=>129998, "custom_display_name"=>"Disc tray J", "is_default"=>false}]}, "color"=>{"option"=>[{"vendor_id"=>"RGB16", "type"=>"STANDARD_COLOR", "is_default"=>true}]}, "vendor_capability"=>[{"id"=>"CNIJProfileID", "display_name"=>"ProfileID", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"CanonIJPrinter2005.icc", "is_default"=>true, "value"=>"1"}, {"display_name"=>"Canon MG7500 series MP2.icc", "is_default"=>false, "value"=>"2"}, {"display_name"=>"Canon MG7500 series FC2.icc", "is_default"=>false, "value"=>"3"}, {"display_name"=>"Canon MG7500 series SG2 LU2.icc", "is_default"=>false, "value"=>"4"}, {"display_name"=>"Canon MG7500 series SG3 LU3.icc", "is_default"=>false, "value"=>"5"}, {"display_name"=>"Canon MG7500 series GL2.icc", "is_default"=>false, "value"=>"6"}, {"display_name"=>"Canon MG7500 series GL3.icc", "is_default"=>false, "value"=>"7"}, {"display_name"=>"Canon MG7500 series PT1.icc", "is_default"=>false, "value"=>"8"}, {"display_name"=>"Canon MG7500 series PT2.icc", "is_default"=>false, "value"=>"9"}, {"display_name"=>"Canon MG7500 series PT3.icc", "is_default"=>false, "value"=>"10"}]}}, {"id"=>"PageRegion", "display_name"=>"PageRegion", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"US Letter", "is_default"=>false, "value"=>"Letter"}, {"display_name"=>"US Letter (borderless)", "is_default"=>false, "value"=>"Letter.FullBleed"}, {"display_name"=>"US Legal", "is_default"=>false, "value"=>"Legal"}, {"display_name"=>"A5", "is_default"=>false, "value"=>"A5"}, {"display_name"=>"A4", "is_default"=>true, "value"=>"A4"}, {"display_name"=>"A4 (borderless)", "is_default"=>false, "value"=>"A4.FullBleed"}, {"display_name"=>"JIS B5", "is_default"=>false, "value"=>"B5"}, {"display_name"=>"4 x 6", "is_default"=>false, "value"=>"4x6"}, {"display_name"=>"4 x 6 (borderless)", "is_default"=>false, "value"=>"4x6.FullBleed"}, {"display_name"=>"5 x 7", "is_default"=>false, "value"=>"5x7"}, {"display_name"=>"5 x 7 (borderless)", "is_default"=>false, "value"=>"5x7.FullBleed"}, {"display_name"=>"8 x 10", "is_default"=>false, "value"=>"8x10"}, {"display_name"=>"8 x 10 (borderless)", "is_default"=>false, "value"=>"8x10.FullBleed"}, {"display_name"=>"L", "is_default"=>false, "value"=>"89x127mm"}, {"display_name"=>"L (borderless)", "is_default"=>false, "value"=>"89x127mm.FullBleed"}, {"display_name"=>"US Letter (Art Paper Margin 35)", "is_default"=>false, "value"=>"Letter.ArtPaper35.2"}, {"display_name"=>"A4 (Art Paper Margin 35)", "is_default"=>false, "value"=>"A4.ArtPaper35.2"}, {"display_name"=>"Postcard", "is_default"=>false, "value"=>"Postcard"}, {"display_name"=>"Postcard (borderless)", "is_default"=>false, "value"=>"Postcard.FullBleed"}, {"display_name"=>"Postcard Double", "is_default"=>false, "value"=>"DoublePostcard"}, {"display_name"=>"Envelope #10", "is_default"=>false, "value"=>"Env10"}, {"display_name"=>"Envelope DL", "is_default"=>false, "value"=>"EnvDL"}, {"display_name"=>"Envelope You4", "is_default"=>false, "value"=>"EnvYou4"}, {"display_name"=>"Yougata 6", "is_default"=>false, "value"=>"98x190mm"}, {"display_name"=>"Disc tray J", "is_default"=>false, "value"=>"130x224.83mm.Disctray.11"}]}}, {"id"=>"CNIJCartridge", "display_name"=>"BJ Cartridge", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Color", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJMediaType", "display_name"=>"Media Type", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Plain Paper", "is_default"=>true, "value"=>"0"}, {"display_name"=>"Photo Paper Plus Glossy II", "is_default"=>false, "value"=>"50"}, {"display_name"=>"Photo Paper Pro Platinum", "is_default"=>false, "value"=>"51"}, {"display_name"=>"Photo Paper Pro Luster", "is_default"=>false, "value"=>"63"}, {"display_name"=>"Photo Paper Plus Semi-gloss", "is_default"=>false, "value"=>"42"}, {"display_name"=>"Glossy Photo Paper", "is_default"=>false, "value"=>"68"}, {"display_name"=>"Matte Photo Paper", "is_default"=>false, "value"=>"28"}, {"display_name"=>"Other Fine Art Paper", "is_default"=>false, "value"=>"41"}, {"display_name"=>"Envelope", "is_default"=>false, "value"=>"8"}, {"display_name"=>"Hagaki A", "is_default"=>false, "value"=>"56"}, {"display_name"=>"Ink Jet Hagaki", "is_default"=>false, "value"=>"27"}, {"display_name"=>"Hagaki K", "is_default"=>false, "value"=>"54"}, {"display_name"=>"Hagaki", "is_default"=>false, "value"=>"7"}, {"display_name"=>"High Resolution Paper", "is_default"=>false, "value"=>"16"}, {"display_name"=>"Printable disc (recommended)", "is_default"=>false, "value"=>"31"}, {"display_name"=>"Printable disc (others)", "is_default"=>false, "value"=>"32"}, {"display_name"=>"T-Shirt Transfers", "is_default"=>false, "value"=>"18"}, {"display_name"=>"Other Photo Paper", "is_default"=>false, "value"=>"36"}]}}, {"id"=>"CNIJMediaSupply", "display_name"=>"Paper Source", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Cassette", "is_default"=>true, "value"=>"40"}, {"display_name"=>"Disc tray", "is_default"=>false, "value"=>"26"}]}}, {"id"=>"CNIJPrintQuality", "display_name"=>"Quality", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Super Fine", "is_default"=>false, "value"=>"0"}, {"display_name"=>"Fine", "is_default"=>false, "value"=>"5"}, {"display_name"=>"Normal(Fine)", "is_default"=>true, "value"=>"10"}, {"display_name"=>"Normal", "is_default"=>false, "value"=>"15"}, {"display_name"=>"Draft", "is_default"=>false, "value"=>"20"}]}}, {"id"=>"CNIJDitherPattern", "display_name"=>"Halftoning", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Dither", "is_default"=>false, "value"=>"2560"}, {"display_name"=>"Diffusion", "is_default"=>true, "value"=>"2595"}]}}, {"id"=>"CNIJGrayScale", "display_name"=>"Grayscale Printing", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"OFF", "is_default"=>true, "value"=>"0"}, {"display_name"=>"ON", "is_default"=>false, "value"=>"1"}]}}, {"id"=>"CNIJGamma2", "display_name"=>"Brightness", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Light", "is_default"=>false, "value"=>"14"}, {"display_name"=>"Normal", "is_default"=>true, "value"=>"18"}, {"display_name"=>"Dark", "is_default"=>false, "value"=>"22"}]}}, {"id"=>"CNIJAmountOfExtension", "display_name"=>"Amount of Extension", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>false, "value"=>"0"}, {"display_name"=>"1", "is_default"=>false, "value"=>"1"}, {"display_name"=>"2", "is_default"=>true, "value"=>"2"}, {"display_name"=>"3", "is_default"=>false, "value"=>"3"}]}}, {"id"=>"CNIJMarginType", "display_name"=>"MarginType", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>true, "value"=>"0"}, {"display_name"=>"1", "is_default"=>false, "value"=>"1"}]}}, {"id"=>"CNIJPaperGapCommand", "display_name"=>"PaperGapCommand", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"10", "is_default"=>true, "value"=>"10"}]}}, {"id"=>"CNIJDiscTrayForm", "display_name"=>"DiscTrayForm", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJBanner", "display_name"=>"Banner", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"5", "is_default"=>true, "value"=>"5"}]}}, {"id"=>"CNIJSGColorMode", "display_name"=>"SGColorMode", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"127", "is_default"=>true, "value"=>"127"}]}}, {"id"=>"CNIJISaveMode", "display_name"=>"ISaveMode", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"30", "is_default"=>true, "value"=>"30"}]}}, {"id"=>"CNIJMediaGroup", "display_name"=>"MediaGroup", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"99", "is_default"=>true, "value"=>"99"}]}}, {"id"=>"CNIJDuplexSurface", "display_name"=>"DuplexSurface", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>true, "value"=>"0"}, {"display_name"=>"1", "is_default"=>false, "value"=>"1"}]}}, {"id"=>"CNIJDataDirection", "display_name"=>"DataDirection", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>true, "value"=>"0"}]}}, {"id"=>"CNIJSpecialMode", "display_name"=>"SpecialMode", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>true, "value"=>"0"}]}}, {"id"=>"CNIJManualSelectSupply", "display_name"=>"ManualSelectSupply", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"10", "is_default"=>true, "value"=>"10"}]}}, {"id"=>"CNIJIntent2", "display_name"=>"Color Mode", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Standard", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJBlackAdjustment", "display_name"=>"BlackAdjustment", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJEmergencyMode", "display_name"=>"EmergencyMode", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"127", "is_default"=>true, "value"=>"127"}]}}, {"id"=>"CNIJLongLifeMode", "display_name"=>"LongLifeMode", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"30", "is_default"=>true, "value"=>"30"}]}}, {"id"=>"CNIJCartridgeSelect", "display_name"=>"CartridgeSelect", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>true, "value"=>"0"}]}}, {"id"=>"CNIJPrintMode2", "display_name"=>"Print Quality", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"High", "is_default"=>false, "value"=>"1"}, {"display_name"=>"Standard", "is_default"=>true, "value"=>"2"}, {"display_name"=>"Draft", "is_default"=>false, "value"=>"3"}, {"display_name"=>"Custom", "is_default"=>false, "value"=>"5"}]}}, {"id"=>"CNIJPZVividPosiProcess", "display_name"=>"Vivid Photo", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>true, "value"=>"0"}]}}, {"id"=>"CNIJGrayScaleCheckBox", "display_name"=>"Grayscale Printing", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"OFF", "is_default"=>true, "value"=>"0"}, {"display_name"=>"ON", "is_default"=>false, "value"=>"1"}]}}, {"id"=>"CNIJPQualitySlider", "display_name"=>"Quality", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Draft", "is_default"=>false, "value"=>"1"}, {"display_name"=>"Normal", "is_default"=>false, "value"=>"2"}, {"display_name"=>"Normal(Fine)", "is_default"=>true, "value"=>"3"}, {"display_name"=>"Fine", "is_default"=>false, "value"=>"4"}, {"display_name"=>"Super Fine", "is_default"=>false, "value"=>"5"}]}}, {"id"=>"CNIJHalfToneRadio", "display_name"=>"Halftoning", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Dither", "is_default"=>false, "value"=>"1"}, {"display_name"=>"Diffusion", "is_default"=>true, "value"=>"2"}]}}, {"id"=>"CNIJMediaSupplyMenuItem", "display_name"=>"MediaSupplyMenuItem", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJProfileType", "display_name"=>"ProfileType", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>false, "value"=>"0"}, {"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJPDEEnable", "display_name"=>"PDEEnable", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>false, "value"=>"0"}, {"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJRGB2GrayConvert", "display_name"=>"RGB2GrayConvert", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"0", "is_default"=>true, "value"=>"0"}, {"display_name"=>"1", "is_default"=>false, "value"=>"1"}]}}, {"id"=>"CNIJPreviewSampleType", "display_name"=>"Sample Type", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Standard", "is_default"=>true, "value"=>"1"}, {"display_name"=>"Landscape", "is_default"=>false, "value"=>"3"}, {"display_name"=>"Graphics", "is_default"=>false, "value"=>"4"}]}}, {"id"=>"CNIJColorPatternCheckBox", "display_name"=>"View Color Pattern", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"OFF", "is_default"=>true, "value"=>"0"}, {"display_name"=>"ON", "is_default"=>false, "value"=>"1"}]}}, {"id"=>"CNIJColorAdjustMode", "display_name"=>"ColorAdjustMode", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJMediaSense", "display_name"=>"MediaSense", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"10", "is_default"=>true, "value"=>"10"}]}}, {"id"=>"CNIJStapleSide", "display_name"=>"Stapling Side", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"Long-side stapling (Left)", "is_default"=>true, "value"=>"1"}, {"display_name"=>"Long-side stapling (Right)", "is_default"=>false, "value"=>"2"}, {"display_name"=>"Short-side stapling (Top)", "is_default"=>false, "value"=>"3"}, {"display_name"=>"Short-side stapling (Bottom)", "is_default"=>false, "value"=>"4"}]}}, {"id"=>"CNIJExtDDIStapleMarginSupport", "display_name"=>"ExtDDIStapleMarginSupport", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJExtDDISupportAppType", "display_name"=>"ExtDDISupportAppType", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}, {"id"=>"CNIJTableSwitchInfo", "display_name"=>"TableSwitchInfo", "type"=>"SELECT", "select_cap"=>{"option"=>[{"display_name"=>"1", "is_default"=>true, "value"=>"1"}]}}], "duplex"=>{"option"=>[{"type"=>"NO_DUPLEX", "is_default"=>true}, {"type"=>"LONG_EDGE", "is_default"=>false}, {"type"=>"SHORT_EDGE", "is_default"=>false}]}, "fit_to_page"=>{"option"=>[{"type"=>"NO_FITTING", "is_default"=>true}, {"type"=>"FIT_TO_PAGE"}]}, "supported_content_type"=>[{"content_type"=>"application/pdf"}], "dpi"=>{"option"=>[{"horizontal_dpi"=>300, "vendor_id"=>"300x300dpi", "vertical_dpi"=>300, "custom_display_name"=>"300 x 300 dpi", "is_default"=>false}, {"horizontal_dpi"=>600, "vendor_id"=>"600x600dpi", "vertical_dpi"=>600, "custom_display_name"=>"600 x 600 dpi", "is_default"=>true}]}}, "version"=>"1.0"}

Tags:

["^own", "^connector", "^can_share", "^can_update", "^can_delete", "__cp__chrome_version=51.0.2704.103 unknown", "__cp__copies=1", "__cp__device-uri=dnssd://Canon%20MG7500%20series._ipp._tcp.local./?uuid=00000000-0000-1000-8000-D8492FD813B6", "__cp__finishings=3", "__cp__job-cancel-after=10800", "__cp__job-hold-until=no-hold", "__cp__job-priority=50", "__cp__job-sheets=none,none", "__cp__marker-change-time=1468417636", "__cp__marker-colors=#2C2C2C,#525252,#DFD31D,#101010,#39D2E7,#D945DD", "__cp__marker-high-levels=100,100,100,100,100,100", "__cp__marker-levels=0,10,0,0,0,0", "__cp__marker-low-levels=15,15,15,15,15,15", "__cp__marker-names=Black(BK),Gray,Yellow,Black(PGBK),Cyan,Magenta", "__cp__marker-types=inkCartridge,inkCartridge,inkCartridge,inkCartridge,inkCartridge,inkCartridge", "__cp__number-up=1", "__cp__printer-commands=PrintSelfTestPage,ReportLevels", "__cp__printer-info=Canon MG7500 series", "__cp__printer-is-accepting-jobs=true", "__cp__printer-is-shared=false", "__cp__printer-location=", "__cp__printer-make-and-model=Canon MG7500 series", "__cp__printer-state=3", "__cp__printer-state-change-time=1468417663", "__cp__printer-state-reasons=marker-supply-low-warning", "__cp__printer-type=77631516", "__cp__printer-uri-supported=ipp://localhost/printers/Canon_MG7500_series", "__cp__system_driverinfo=C", "__cp__system_name=Mac OS X", "__cp__system_version=10.11.5", "__cp__tagshash=9ec9567734ab18a8381ba972a4d351ca"]

The printer is a normal printer but connected to google cloud print via chrome. I also tried to use the google "Save to Google Drive"-printer which is installed by default, but that did not work either.

When i digged into your code i saw some options which you are sending together with the "/submit" request: For example you pass a ticket option, even converted to_json. Is it possible that this infos are (recently made) mandatory and that they are missing?

I tried to print via text/html and via prawn-generated pdfs... both ways made no difference.

Many thanks for your help!!
till

from cloudprint.

t1ll avatar t1ll commented on June 23, 2024

Update:

I just tried to include a ticket value based on a example by google.

pdf = Prawn::Document.new
pdf.text "Hello World 123"

response = @printer.print(title:"test", content: pdf.render, content_type: "application/pdf", ticket: {"version": "1.0", "print": {}})

By using this code i managed to place the job.
I am pretty sure it has todo with the ticket

from cloudprint.

thegengen avatar thegengen commented on June 23, 2024

Thanks for the detailed report! I'll try to get this sorted out over the weekend.

from cloudprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.