Hi, dolanmiu. Thank you for awesome library.
I has a problem when creating a full-width table with code:
const table = doc.createTable(3, headers.length)
table.setWidth(WidthType.PERCENTAGE, '100%')
It works fine when open in Microsoft Word, but wrong width when preview in Google Docs or Finder (I'm using MacOS).
Microsoft Word:

Google Docs:

Finder Preview:

Yes, Gogole docs, or finder is not supported
Only Microsoft Word so far
If you can figure out how to get the features working in each, that would be amazing
I use Tab Stops to work around this, they work perfectly in both Pages and Google Docs.
Would you please write somewhere in the documentation with bold font that this package does not support google docs ? It took more than 2 days for me to find it out and see this issue with table width. Thanks
@vahid18u if you want you can add the warning on the documentation yourself and open a PR,
I use Tab Stops to work around this, they work perfectly in both Pages and Google Docs.
Hi @carlbolduc , can you please explain how you use tab stops in your workaround? Everything else is working fine in my document, but tables. If your workaround works, you made my day!!
Hi @carlbolduc , can you please explain how you use tab stops in your workaround? Everything else is working fine in my document, but tables. If your workaround works, you made my day!!
Here is an example, I first create a line like this:
const line = this.doc.createParagraph().bullet().maxRightTabStop();
I can then add content to it:
line.createTextRun('Stuff...');
And use tab stops to simulate a table:
line.createTextRun('Other stuff').tab();
Most helpful comment
Would you please write somewhere in the documentation with bold font that this package does not support google docs ? It took more than 2 days for me to find it out and see this issue with table width. Thanks