Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add page margin feature #6

Open
antoniolucasnobar opened this issue Nov 5, 2020 · 0 comments
Open

add page margin feature #6

antoniolucasnobar opened this issue Nov 5, 2020 · 0 comments

Comments

@antoniolucasnobar
Copy link
Owner

provide a way to user define page margins: maybe passing an options object to the convert method.

to think about: Is it possible to check the outer most element has the border attribute, and then use its values?

the margin values in RTF:
{\pgdsc0\pgdscuse451\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn3141\margbsxn3708\pgdscnxt0 Default Style;}}
\formshade{*\pgdscno0}\paperh15840\paperw12240\margl1800\margr1800\margt1440\margb1440\sectd\sbknone\sectunlocked1\pgndec\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn3141\margbsxn3708\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc

From RTF docs:

  • \marglN Left margin in twips (default is 1800).
  • \margrNRight margin in twips (default is 1800).
  • \margtNTop margin in twips (default is 1440).
  • \margbNBottom margin in twips (default is 1440).

check page 49 of https://web.archive.org/web/20190708132914/http://www.kleinlercher.at/tools/Windows_Protocols/Word2007RTFSpec9.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant