Skip to content

Commit f0687ca

Browse files
Update src/tools/pdf/manipulations.ts
Co-authored-by: codeant-ai[bot] <151821869+codeant-ai[bot]@users.noreply.github.com>
1 parent 1286099 commit f0687ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/pdf/manipulations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export async function editPdf(
108108
}
109109
else if (op.type == 'insert') {
110110
let sourcePdfDocument: PDFDocument;
111-
if (op.markdown) {
111+
if (op.markdown !== undefined) {
112112
const pdfOptions = pageLayout ? { pdf_options: pageLayout } : undefined;
113113
const pdfBuffer = await parseMarkdownToPdf(op.markdown, pdfOptions);
114114
sourcePdfDocument = await loadPdfDocumentFromBuffer(pdfBuffer);

0 commit comments

Comments
 (0)