Header and page margins

Hi,



I have attached both sample program and pdf.

When building a page we set default page margins. But when header is added it is not considering those margins and header gets overlapped with the rest of the contents. How can this be fixed.



In general, is this the best way to communicate if we have issues in the library? or can we setup a meeting to go over the issues.

We are trying to upgrade from legacy API to the latest version. Because of lack of documentation and the issues we are encountering it is taking a lot of time to achieve our requirements. We were questioning whether to go for upgrade or not.

You guys are really helpful through forums. Just trying to speed thing up.



Thanks

Mamatha

Hi Mamatha,

Thanks for your inquiry. Please note header/footer margins should be smaller than Page margins so header/footer can be accommodated properly. You may try to increase page top margin, it will resolve the issue.

Document pdf = new Document();
pdf.getPageInfo().setMargin(new MarginInfo(50, 50, 50, 70));

Page page = pdf.getPages().add();

Please feel free to contact us for any further assistance.

Best Regards,

Hi Mamatha,

mamatha:
In general, is this the best way to communicate if we have issues in the library? or can we setup a meeting to go over the issues. We are trying to upgrade from legacy API to the latest version. Because of lack of documentation and the issues we are encountering it is taking a lot of time to achieve our requirements. We were questioning whether to go for upgrade or not. You guys are really helpful through forums. Just trying to speed thing up.

Thanks
Mamatha


Thanks for your inquiry. You can check new generator (com.aspose.pdf) documentation for migration to new generator. Furthermore, we only provide technical support via Aspose forums so you need to post your queries in related forum. We will try to provide information asap.

Best Regards,


Hi Tilal,



Suppose if we don’t have header on the first page and has header on the subsequent pages and if we increase page margins to accommodate the header then first page will have more white space.



In the legacy world we never had this issue. We used to set page top margins (50) and header top margins(50) in the xml template and used to add content dynamically through the code. Content used to come after the header.



Thanks

Mamatha

Hi Mamatha,


Thanks for your feedback. We have logged a ticket PDFNEWJAVA-35573 in our issue tracking system for further investigation and rectification. We will keep you updated about the issue resolution progress.

We are sorry for the inconvenience caused.

Best Regards,

Hi,

Can you please provide update on this.

Thanks
Mamatha

Hi Mamatha,


Thanks for your inquriy. I am afraid your issue is still pending for investigation, as our product team is busy in resolving other issues in the queue, reported earlier. We will notify you as soon as we made some significant progress towards your issue resolution.

Thanks for your patience and cooperation.

Best Regards,

Hi,

We need this feature ASAP. We were almost towards end of development cycle. We want to fix this before going to prod. Please look into this.

Thanks
Mamatha

Hi Mamatha,


We are sorry for the inconvenience. We have recorded your concern and raised your issue priority. We have also requested our product team to complete the issue investigation and share an ETA at their earliest. We will notify you as soon as we get a feedback.

Thanks for your patience and cooperation.

Best Regards,

Interesting. We’re evaluating this product and seeing it’s taking you 5 months through the issue queue for a production issue is a factor we should consider.


Thank you

robert.kerr:
Interesting. We’re evaluating this product and seeing it’s taking you 5 months through the issue queue for a production issue is a factor we should consider.
Hi Robert,

Thanks for contacting support.

The time taken by our development team depends upon the structure and complexity of input files and each scenarios is different from other. Furthermore, the issues are resolved in first come first serve basis as we believe its the fairest policy to all the customers.

Now concerning to the issue which you are facing, please share some details and resource files, so that we can test the scenario in our environment.

Hi Robert,


Thanks for your patience.

The product team has further evaluated earlier reported issue and as per our observations, the margins for header and other content are different in a new DOM. If we set the same margin for them, we will get overlapping. Set top-margin for header less then top-margin for PageInfo and you will not see any overlapping.

header.setMargin(new MarginInfo(50,50,50,30));