Move custom properties to properties

This commit is contained in:
Dolan
2021-03-07 21:27:38 +00:00
parent bb6abe5e09
commit 5fc28cb67d
3 changed files with 14 additions and 8 deletions

View File

@ -9,15 +9,20 @@ import { Document, Packer } from "../build";
const doc = new Document(
// Standard properties
{ creator: "Creator", title: "Title", subject: "Subject", description: "Description" },
{
creator: "Creator",
title: "Title",
subject: "Subject",
description: "Description",
customProperties: [
{ name: "Subtitle", value: "Subtitle" },
{ name: "Address", value: "Address" },
],
},
// No file properties
{},
// No sections
[],
[
{ name: "Subtitle", value: "Subtitle" },
{ name: "Address", value: "Address" },
]
);
Packer.toBuffer(doc).then((buffer) => {