Free Support Forum - aspose.com

Borders are breaking in Doc to PDF conversion


#1

Hi Team,

I am facing an issue while writing html content in a docs file and converting it in a pdf file, I have given the border on some paragraph, these border must be close at the end of the page.
The border is open but it does not close at the end of the page, it must be close at the end of the every page. But on some page it is working fine and on some page it’s not.

Please see the border on page 3 and page 4 of attached below pdf.

404_1.pdf (1.3 MB)

Please help!!

Thanks in advance.


#2

@mukesh958

Could you please share your source HTML and .doc files with us along with complete sample code snippet. We will test the scenario in our environment and address it accordingly.


#3

@asad.ali
Thanks for your response!!
Please find the html content in the attached Html Content.zip file that we are exporting in PDF.
Html Content.zip (5.9 KB)


#4

@mukesh958,

After an initial test with the licensed latest version of Aspose.Words for .NET i.e. 19.5, we were unable to reproduce this issue on our end. We would suggest you please upgrade to the latest version of Aspose.Words for .NET. Hope, this helps.

See sample input/output documents. docs.zip (150.1 KB)

We used the following simple code on our end for testing:

Document doc = new Document("E:\\temp\\HTMLPage1.html");
doc.Save("E:\\Temp\\19.5.docx");
doc.Save("E:\\Temp\\19.5.pdf");

In case you still observe the problem on your end, please also provide a comparison screenshot highlighting the problematic areas in Aspose.Words generated PDF and attach it here for our reference. Please point out the exact problematic places for this issue. We will then investigate the issue on our end and provide you more information.


#5

@awais.hafeez

We are using “Aspose.Words” through JAVA. Please find the JAAR file of Aspose.Words in zip format that we are using in java…

Aspose.zip (7.6 MB)

If any upgration required in Aspose.Words jaar for java , let me know.


#6

@mukesh958,

You are using older version of Aspose.Words. Please use the latest version of Aspose.Words for Java 19.5.


#7

@tahir.manzoor-

Our Development environment is on JAVA 6, while we are using this latest Aspose.Words for Java 19.5, we are getting the following compilation issue…

[javac] warning: com\aspose\words\internal\zz6E.class(com\aspose\words\internal:zz6E.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\DocumentBase.class(com\aspose\words:DocumentBase.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\CompositeNode.class(com\aspose\words:CompositeNode.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\zzZOX.class(com\aspose\words:zzZOX.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\ParagraphFormat.class(com\aspose\words:ParagraphFormat.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\RunCollection.class(com\aspose\words:RunCollection.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\Inline.class(com\aspose\words:Inline.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\RowCollection.class(com\aspose\words:RowCollection.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: com\aspose\words\RowFormat.class(com\aspose\words:RowFormat.class): major version 51 is newer than 50, the highest major version supported by this compiler.

If it is java version problem then it is not possible for us to upgrade the JAVA as well as ASPOSE.WORDS version.
Please provide some alternative solution of this problem on JAVA 6.

Thanks!!


#8

@mukesh958,

Starting from Aspose.Words for Java 19.3, we had upgraded the release JAR of Aspose.Words for Java from JDK 6 to JDK 7. The public release of Aspose.Words for Java contains only one JAR i.e. is built with JDK 1.7. The best option for you is to move to modern/latest JDK. In the meantime, we can also provide you a JDK 1.6 JAR on demand for smooth transition. We are currently building a JAR using JDK 1.6 for you and will share it with you when it will be ready. Please stay tuned.


#9

@mukesh958,

You can download Aspose.Words for Java 19.5 JDK 1.6 version from the following link:

Hope, this helps.


#10

@awais.hafeez- We have compiled our code with the above provided Aspose.Words.jdk16.jar , but getting the same compilation issue.

warning: com\aspose\words\internal\zz6E.class(com\aspose\words\internal:zz6E.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com\aspose\words\DocumentBase.class(com\aspose\words:DocumentBase.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com\aspose\words\CompositeNode.class(com\aspose\words:CompositeNode.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com\aspose\words\zzZOX.class(com\aspose\words:zzZOX.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com\aspose\words\ParagraphFormat.class(com\aspose\words:ParagraphFormat.class): major version 51 is newer than 50, the highest major version supported by this compiler
It is recommended that the compiler be upgraded.
warning: com\aspose\words\RunCollection.class(com\aspose\words:RunCollection.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com\aspose\words\Inline.class(com\aspose\words:Inline.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com\aspose\words\RowCollection.class(com\aspose\words:RowCollection.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: com\aspose\words\RowFormat.class(com\aspose\words:RowFormat.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.

We are using JDK6 along with this Aspose.words jaar. This jaar is not fitted on the JAVA6 .

Thanks!!!


#11

@mukesh958,

We are checking this scenario and will get back to you soon.