I am using Aspose.Words and Aspose.Cells but this question likely applies to other products as well.
Aspose.Words, for example, has a PageSetup object with page size/orientation/margin properties in each Section of a document . Aspose.Cells also has a PageSetup object.
How do I know if the page setup originated from the file itself or from Aspose's defaults?
Thanks for
your request. Aspose.Words always reads page setup from documents, as well as
Aspose.Cells. Defaults are used only if format does not support page setup. For
example HTML format as you mentioned.
You can
simply check the format of the loaded document and see if the format supports
page setup.
No, you
cannot change defaults used by Aspose.Words. However, you can easily change page
setup after loading the document.
Is there any easy way to test whether the format supports page setup (ie. SupportsPageSetup property) or do I need to keep a list of formats which support it?