Hi,
I created a document with page border. How to take such page border styles using aspose words for java API.
Hi,
I created a document with page border. How to take such page border styles using aspose words for java API.
Hello
Thanks for your inquiry. Could you please attach your input document here for testing? I will investigate the problem on my side and provide you more information.
Best regards,
Hi,
Thanks for your reply. Please find the attachment below. Provide me with some sample code.
Hello
Thank you for additional information. Please try using the following code:
Document doc = new Document("C:\\Temp\\pageborder.docx");
PageSetup ps = doc.getSections().get(0).getPageSetup();
System.out.println(ps.getBorders().getLineStyle());
System.out.println(ps.getBorders().getLineWidth());
System.out.println(ps.getBorders().getColor());
System.out.println(ps.getBorders().getDistanceFromText());
System.out.println(ps.getBorders().getShadow());
Also please see the following link to learn more:
https://reference.aspose.com/words/java/com.aspose.words/pagesetup/#getBorders
Best regards,