ruta_destino = PDF.Colocar_Destino(ruta_destino);

        //si destino es diferente de null

        if (this.ruta_destino != null) {

            try {

                PdfPTable tabla2 = new PdfPTable(tabla.getColumnCount());

                for (int i = 0; i < tabla.getColumnCount(); i++) {

                    tabla2.addCell("" + nombresCols[i]);

                }

                for (int f = 0; f < datos.length; f++) {

                    for (int c = 0; c < tabla.getColumnCount(); c++) {

                        tabla2.addCell("" + datos[f][c]);

                    }

                }

                PDF.createPDFText(jTextArea1.getText(), ruta_destino, SizePage);

                JOptionPane.showMessageDialog(null, "Documento PDF creado");

            } catch (Exception ex) {

                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);

            }

        }