Clarification regarding PageMarginOriginX/PageMarginOriginY for OneNote 2010 format

AlexeiSo 81 Reputation points
2021-06-18T13:26:18.96+00:00

Hello!

In MS-ONE the properties PageMarginOriginX/PageMarginOriginY are described in chapters 2.3.59/2.3.60.
These properties affect the rendering of a page.

Now we interpret them as following:

  1. If we process TitleNode then we don't use these properties.
  2. For any other direct child node of a PageNode we do the following steps:
    childNode.HorizontalOffset -= PageMarginOriginX;
    childNode.VerticalOffset -= PageMarginOriginY;

We have mixed results with this approach.
Some pages are rendered well and there is no meaningful difference between pdf file generated by our library and OneNote app.
But others are not rendered so well: we observe differences in relative positions of the elements.

So it would be great to get clarification regarding how we should apply these properties to evaluate positions of elements on a page.

Sincerely, Alexei.

Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
138 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tom Jebo 151 Reputation points
    2021-06-21T18:13:49.307+00:00

    @AlexeiSo , just checking to see if you saw my question. Let me know.

    Tom


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.