PDF to PDF A/3-b with attachment - standalone Java - Linux - JDK16 - ZUGFerD

@SYALLA

Are you getting this .xml file as File object or you are receiving a Stream? You can please try renaming the file using Java functionality and then add it as attachment to the PDF.

Please note that the ticket is currently under the investigation phase and as soon as its analysis is done, we will be sharing its fix ETA with you. We highly appreciate your patience and comprehension in this regard. Please give us some time.

We are sorry for the inconvenience caused.

@SYALLA

Please, use specific build for java 1.6 ( aspose-pdf-21.7-jdk16.jar) from these link(s): Aspose.PDF | Java PDF Document Processing Class Library
or use maven dependency:

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-pdf</artifactId>
    <version>21.7</version>
    <classifier>jdk16</classifier>
</dependency> 

In case you are still facing any issue, please let us know.

Hi Asad,

Thank you very much for the update on this.
We have downloaded and tested the latest version but we have seen still characters overlapping issue exists in the terms and condition area of the output. And another issue with font of the characters the font as not same as original output and also the characters touches the edge of the output.

Kindly review attached original output and ZugferD output(i.e which was generated with latest version)Original Invoice output.pdf (81.4 KB)
ZugfeRD Output.pdf (181.3 KB)
for you reference.
Please check and resolve these issues.

Regards,
Srinivasu

@SYALLA

The latest version is 21.8 which has recently been released. Can you please try to use it to generate the PDF at your side and if you still notice any issue, please share the output PDF along with sample attached XML file with us. We will further proceed to assist you accordingly.

Hi Asad,

Seems the latest version is not working under JDK16 while compiling the code we have seen below error message .
Please check and provide the latest version for JDK16.

Error message: class file has wrong version 52.0, should be 50.0

Regards,
Srinivasu

@SYALLA

Please download and use JDK16 specific JAR of Aspose.PDF for Java 21.8 and let us know if you still face any issue.

Hi Asad.

Thanks for the update on this.

We have downloaded the latest version and tested the PDF output but still we have seen same issues which we have seen same issues.
Please find the attached tested output ,original output and xml file for your reference.
Kindly check on this and update on this.

Regards,
SrinivasuZugferdoutput21.8.pdf (181.3 KB)
Original Invoice output.pdf (81.4 KB)

@SYALLA

Could you please try installing the Arial Unicode MS font in your system and convert the document again? We have tested the scenario in our environment and noticed that the output was fine. Please check the attached PDF for your kind reference: output.pdf (224.3 KB)

Hi Asad,

I don’t think Arial Unicode MS font is the reason on this issue.
We have installing Arial Unicode MS font and test the code but we have seen same issue in the TEST instance.
But we have tested same code(i.e JAVA21.8 version) in DEV instance and the PDF output generated without any issues. Seems this issue with java compatibility which we have raised same issue earlier. The code is not working correctly for the java version “1.6.0_151”.

Please check below working and not working java versions and provide the new versions for not working java version.

Working java version:

java version “1.6.0_211”
Java™ SE Runtime Environment (build 1.6.0_211-b11)
Java HotSpot™ Client VM (build 20.211-b11, mixed mode, sharing)

Not working java version:


java version “1.6.0_151”
Java™ SE Runtime Environment (build 1.6.0_151-b32)
Java HotSpot™ Server VM (build 20.151-b32, mixed mode)

Regards,
Srinivasu

@nbopanna

Thanks for the feedback.

We believe that you are talking about the issue where font is being changed in the output PDF and formatting of the PDF is disturbed. Please share both files with us which were generated at your side in working and non-working versions i.e. java version “1.6.0_211” and java version “1.6.0_151”. We will investigate the issue accordingly and share our feedback with you.

Hi Asad,

Please find the attached working and not working PDF outputs.
Kindly review and update on this.

Regards,
SrinivasuOutput_1.6.0_211_Working.pdf (191.7 KB)
Output_1.6.0_151_not_Working.pdf (178 KB)

@nbopanna

We have logged an issue as PDFJAVA-40832 in our issue management system in order to review this scenario. We will further investigate it and let you know once the ticket is resolved. Please be patient and spare us some time.

We apologize for the inconvenience.

Hi Asad,

We are getting the .xml file from the server by using the path reference in the code.
the .xml file generated in the server with request id for each invoices. hence in PDF file your code attached .xml file directly with server generated file name i.e o182963351.xml.

Our business need change the name as “zugferd-invoice.xml” like description name.
is their any way to change the file name after we get the xml file from the server in your code? i.e FileSpecification class level? we trying the use setName(“zugferd-invoice.xml”) method but it is not working.

Kindly check on this and update.

Below is the code where we are getting the xml file by using the server directory.
FileSpecification fileSpecification = new FileSpecification(concDirxml + x, “zugferd-invoice.xml”);

Regards,
Srinivasu

@nbopanna

Regarding PDFJAVA-40832, we have got the same results for Jdk 1.8.0_211 /1.6.0_45 / 16.0.1. Also, notice that for JDK 1.6 you need to use specifically build a .jar file.

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-pdf</artifactId>
    <version>21.8</version>
    <classifier>jdk16</classifier>
</dependency>
<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>http://repository.aspose.com/repo/</url>
</repository>

We cannot get the java version “1.6.0_211” because it is not for public use and is not available for download on the Oracle site. Furthermore, we have logged an investigation ticket as PDFJAVA-40850 in our issue tracking system to investigate the feasibility of changing the file name using FileSpecification Class. We will let you know as soon as it is resolved.

Hi Asad,

As communicate earlier the code works fine in the java version “1.6.0_211” and not working for the java version “1.6.0_151”.

Kindly try to download the java version “1.6.0_151” and check the issues.

Regards,
Srinivasu

@nbopanna

We will try to perform further investigation against this scenario and let you know as soon as we have some updates to share.

@nbopanna

We again tried. We are afraid that we have no access to download Java™ SE Runtime Environment (build 1.6.0_151-b32) (Java 6 is now available only via My Oracle Support for E-Business Suite users.)

Could you please send an archive with the required JRE to reproduce the issue?

Hi Asad,

We have completed our development and successfully generated the zugfered PDF outputs.
But only we have stuck in TEST instance due to java version issue.
Currently we are working on this issue internally and update you . since the license got expired we are unable to check further on this is it possible to provide another one month temporary license to check further on this issue ? if possible please provide another one month temporary license.
And also provide an update on digital signature project status?

Regards,
Srinivasu

@SYALLA

Please create a post in our Purchase forum with request to extend your temporary license period and you will be assisted accordingly.

Hi Asad,

Happy New Year!

We have tried to so many ways to find out the issue but still we did not get any clue on characters over lapping issue.

I have provided the jre and jdk 1.6.0_211 version files.
Kindly check your end see whether you are able replicate the issue in your instance.

Regards
Srinivasu C:\Users\syalla\OneDrive - Data Intensity\Java\jdk1.6.0_211.zipjre1.6.0_211.zip