SELECT 'publicaciones'||publicaciones.itembuilder.getPath(i.pii, i.estado) || '/' || ii.idioma|| '/' ||d.fichero as PDF,ii.idioma FROM publicaciones.item i, publicaciones.item_idioma ii, publicaciones.documento d WHERE i.id = ii.id_item AND ii.idioma_defecto = 1 and ii.id = d.id_item_idioma and i.pii LIKE 'S2238785414000489' and i.estado like 'S300'
array (size=4)
  0 => string 'publicaciones/22387854/0000000300000003/v5_201503200833/S2238785414000489/v5_201503200833/en/main.pdf' (length=101)
  'PDF' => string 'publicaciones/22387854/0000000300000003/v5_201503200833/S2238785414000489/v5_201503200833/en/main.pdf' (length=101)
  1 => string 'en' (length=2)
  'IDIOMA' => string 'en' (length=2)
FPDF error: Some data has already been output, can't send PDF file