We are in the process of evaluating aspose as PDF converter for one of our esteemed client, and working with POCs as of now.
I have observed that the top margin is not customizable for the first page of the pdf generated with aspose.words for java.
Wanted to confirm, if its happening only with trial version of aspose.
Please find the attached files for the reference. If we observe .png file, the top margin of the first page of my pdf is huge, I tried setting it with
but still it shows some default margin. below is the sample code which am using to genreate the pdf.
InputStream is = new ByteArrayInputStream(mergedHtml.getBytes(“UTF-8”)); com.aspose.words.Document doc = new com.aspose.words.Document(is); com.aspose.words.DocumentBuilder builder = new com.aspose.words.DocumentBuilder(doc); builder.getPageSetup().setTopMargin(90); builder.getPageSetup().setBottomMargin(190); //lastly save the document builder.getDocument().save(“c:\pdffiles\MyPdfWords_File.pdf”);
Please advice me as how can we avoid this.
Thanks in advance!