'pdf', 'content_type' => 'application/pdf', ); } $format = (string) ( $printer['printnode_format'] ?? 'pdf' ); if ( 'raw' === $format ) { return array( 'kind' => 'escpos', 'content_type' => 'application/octet-stream', ); } return array( 'kind' => 'pdf', 'content_type' => 'application/pdf', ); } $wire = Provider::wire_format( $provider, $engine ); if ( null === $wire ) { return array( 'kind' => '', 'content_type' => '', ); } return array( 'kind' => $wire, 'content_type' => Provider::content_type( $provider ), ); } }