Still trying to generate my pdf file …
While using Acrobat reader pro to convert my xls file into pdf, a warning poped telling me it should be convert to PDF 1A-b format.
I tried to set the Compliance in Aspose, but I get an Exception I don’t understand. please check following code and Exception
Workbook bookSrc = new Workbook(fileName+".xls");
PdfSaveOptions save = new PdfSaveOptions();
save.setCompliance(PdfCompliance.PDF_A_1_B);
bookSrc.save(fileName+".pdf", save);
com.aspose.cells.CellsException: can’t parse argument number 0:yyyy-MM-ddTHH:mm:ssZ
at com.aspose.cells.wU.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at PDF.ConvertPDF.main(ConvertPDF.java:23)
thank you
I got the same problem!
Hi Kristof,
Amjad Sahi:Hi Kristof,Please give us more details about the issue, attach your Excel file, output PDF file, sample codes etc.. Also give us your environment details, e.g OS, locale settings, JDK version etc. We will check it soon.
What about PDF Compliance exception ?
Hi Bnpparis!
We have found and solved the issues mentioned in this thread, and will provide the fiix in 2~3 days.
Thanks
Hi Aspose team
Amjad Sahi:Hi,We have fixed the issues now.
I don’t think so…
I’m using .Cells 7.0.2.3 with JRE 1.4, with following code :
Locale.setDefault(Locale.US);
CellsHelper.setFontDir(“c:\windows\fonts”);
Workbook bookSrc = new Workbook(fileName+“.xls”);
PdfSaveOptions save1 = new PdfSaveOptions();
save1.setCompliance(PdfCompliance.PDF_A_1_B);
bookSrc.save(fileName+“1.pdf”, save1);
PdfSaveOptions save2 = new PdfSaveOptions();
bookSrc.save(fileName+“2.pdf”, save2);
Attached files :
- test.xls : source file
- test1.pdf : generated file using aspose with PdfCompliance.PDF_A_1_B
- test2.pdf : generated file using aspose without PdfCompliance.PDF_A_1_B
- test Good.pdf : generated file using acrobat reader pro
While test1 or test2 is not equals to test Good, we cannot consider issues are fixed.
Another detail, I ticked the “private” check box - the thread is public now …
Kind regards
Hi,
Any news since 3 weeks ?
Hi,
We are still evaluating those issues. We will try to provide a fix to remove those blocks in the generated pdf soon. But for the underline, because font's underline only can be supported by JDK1.6 and later versions, we are afraid currently we cannot make it display in PDF for JDK14.
Thank you.
HI Aspose Team.
It’s much better with 7.0.4 version but still not usable for production usage.
Please check attached file for a new bug I’ve detected
As you can see in PDF file,
- some spaces are missing (employsapproximately5,400persons)
- Right margin is not correct (the “m” and “n” are truncate)
- A part of diagramm is missing (Civil part in this exemple)
source code :
Workbook book = new Workbook(“c:\test.xls”);
book.save(“c:\test.pdf”, FileFormatType.PDF);
Using .Cell 7.0.4 with JDK 1.4
Kind regards
Hi,
- Right margin is not correct (the “m” and “n” are truncate) – ISSUE
- A part of diagramm is missing (Civil part in this exemple) – ISSUE
Hi,
Please try this new fix: Aspose.Cells for Java v7.0.4.7
We have fixed the issue about truncated ‘m’ and ‘n’, please try this new fix. For the issue of lost chart image, we are still working on it and we are afraid we need more time to fix it.
The issues you have found earlier (filed as CELLSJAVA-40094) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
I’m really glad to know you have delete my previous post.
As you didn’t answered last time, can you confirm your fix doesn’t work with JDK 1.4 ?
Key features : Aspose.Cells for Java is available for Java 1.4 or 1.5 and will run wherever Java is installed
Kind regards
Hi,
Well, I confirm you, your fix doesn’t work with JDK 1.4. As fonts are not the same between 1.4 and 1.5, we can say that the bug is due to fonts.
Last question:
In textbox, why line is not wrapped by works like in the xls file ?
Hi,