I’m working on a project where we need to create a .tif file from HTML. Currently we are using the Word dll and having trouble with the margins being to big.
We are using the .net version 11.7.0.0 of Aspose Word. My company has a long term plan to upgrade because we really need the new CSS/Html support in the PDF DLL. For the short term though how would I set the Margin information on a Word document? None of the example code seems to work because its all for a newer version.
The closest I could get was to try using the PDF dll where I found a PageInfo object, but I can’t figure out where to plug that into the PDF document because I can’t find any sections on it like the documentation says there should be.
How would I set this margin information for either Word or Pdf?
Thanks for your inquiry. It is nice to hear from you that you have found the solution of your query. You can also achieve your requirements by iterating through all sections of document and set page margins. Please check the following code snippet.
Aspose.Pdf for .NET is a PDF document creation component that enables your .NET applications to read, write and manipulate PDF documents without using Adobe Acrobat. Please post your queries related to Aspose.Pdf in Aspose.Pdf forum.