Declarative hyperlinks, bookmarks, tab stops and page breaks
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
// Generate a CV
|
||||
// Import from 'docx' rather than '../build' if you install from npm
|
||||
import * as fs from "fs";
|
||||
import { AlignmentType, Document, HeadingLevel, Packer, Paragraph, TextRun } from "../build";
|
||||
import { AlignmentType, Document, HeadingLevel, Packer, Paragraph, TabStopPosition, TextRun } from "../build";
|
||||
|
||||
// tslint:disable:no-shadowed-variable
|
||||
|
||||
@ -227,7 +227,9 @@ class DocumentCreator {
|
||||
public createInstitutionHeader(institutionName: string, dateText: string): Paragraph {
|
||||
return new Paragraph({
|
||||
tabStop: {
|
||||
maxRight: {},
|
||||
right: {
|
||||
position: TabStopPosition.MAX,
|
||||
},
|
||||
},
|
||||
children: [
|
||||
new TextRun({
|
||||
|
Reference in New Issue
Block a user