Divooka.FileFormats.PDF

Divooka.FileFormats.PDF.API.ProceduralPDF

Provides a declarative constructive PDF builder. TODO: At the moment this is developed as is; In the future, we should gradually consolidate with Parcel.DocumentModel

Divooka.FileFormats.PDF.Main.PDFHelper

Provides helper methods for reading, writing, and annotating PDF files.

Divooka.FileFormats.PDF.Main.PDFHelper.GetTexts()

Extracts raw text from a PDF file for LLM use purposes.

Remarks

Notice output is not formatted and may not be directly usable other than as LLM input.

Parameters

NameDescriptionDefault
pdfFile The path to the PDF file.

Returns

A string containing the extracted text, page by page.

Divooka.FileFormats.PDF.Main.PDFHelper.WritePDF()

Writes a PDF document with the specified title and body content.

Parameters

NameDescriptionDefault
title The title of the document.
body The main text content of the document.
outputPath The path to save the generated PDF file.
generateImages Whether to generate images instead of a PDF file.

Divooka.FileFormats.PDF.Main.PDFHelper.DrawAnnotations()

Draws annotations on a given PDF file.

Parameters

NameDescriptionDefault
sourcePDF The path to the source PDF file.
outputPath The path to save the annotated PDF file.