Free Support Forum - aspose.com

Multiple columns in page's section bug?

Hi,

I tried to create 2 columns in a page’s section but i couldn’t work. Please did i do it wrong?

Thx.

My code:

try {
Pdf pdf = new Pdf();
pdf.getPageSetup().setPageHeight(PageSize.A4Width);
pdf.getPageSetup().setPageWidth(PageSize.A4Height);
Section seccion = pdf.getSections().add();
seccion.isNewColumn(true);
seccion.getColumnInfo().setColumnCount(2);
seccion.getColumnInfo().setColumnWidths(“250 250”);
seccion.getColumnInfo().setColumnSpacing(“10”);
BorderInfo bi = new BorderInfo( BorderSide.All, 0.01f, Color.Fuchsia);
seccion.getPageSetup().setPageBorder(bi);
Text texto = new Text(seccion,“Prueba de blablabla…\r\n…\r\n”);
seccion.getParagraphs().add(texto);
texto.setTop(140f);
texto.setLeft(140f);
texto.setTextWidth(450f);
texto.setRotatingAngle(45f);
texto.getTextInfo().setBackGroundColor(Color.Black);
texto.getTextInfo().setTextColor(Color.Silver);
texto.getTextInfo().setTextBorder(bi);
seccion.isNewColumn(true);
texto = new Text(seccion,“Otra prueba de blablabla…\r\n…\r\n”);
seccion.getParagraphs().add(texto);
texto.setTop(100f);
texto.setLeft(100f);
texto.setTextWidth(450f);
texto.getTextInfo().setBackGroundColor(Color.Black);
texto.getTextInfo().setTextColor(Color.Silver);
texto.getTextInfo().setTextBorder(bi);

response.setHeader(“Content-Disposition”, “attachment;filename=“prueba.pdf””);
response.setContentType(“application/pdf”);
pdf.save(response.getOutputStream());
} catch (AsposeBaseException ex) {
Logger.getLogger(Descarga.class.getName()).log(Level.SEVERE, null, ex);
}

Hi,

Thank you for considering Aspose.

We have reproduced this error. We are investigating this issue and we will reply to you ASAP. Sorry for the inconvenience.

Hello,

“Multi columns” is not supported in aspose.pdf for java. We have logged it as “PDFJAVA-10060 in our bug track system. We are working on this issue now. But we don’t know when a solution will be found, because this function is very hard to support.

Thank you for your patience.

The issues you have found earlier (filed as 10060) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Thank you!