public function printAction()
 {
     // desabilitando layout
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $etiquetaPdf = new Sgdoce_EtiquetaPdf();
     $sqLoteEtiqueta = $this->getRequest()->getPost('lote');
     $dto = Core_Dto::factoryFromData(array('sqLoteEtiqueta' => $sqLoteEtiqueta), 'search');
     $entityLote = $this->getService('LoteEtiqueta')->find($sqLoteEtiqueta);
     $arrDigitais = $this->getService()->listEtiquetaImprimir($dto);
     $textoEtiquetaKey = 'textoEtiqueta';
     $etiquetaPdf->setEtiquetaComNUP($entityLote->getInLoteComNupSiorg());
     if ($entityLote->getInLoteComNupSiorg()) {
         $textoEtiquetaKey = 'textoEtiquetaComNup';
     }
     $textoEtiqueta = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption($textoEtiquetaKey);
     if ($arrDigitais) {
         $this->getService('LoteEtiqueta')->saveUserPrintedDigital($sqLoteEtiqueta, \Core_Integration_Sica_User::getUserId());
     }
     $etiquetaPdf->setTextoEtiqueta($textoEtiqueta)->setDigitais($arrDigitais)->generate();
 }