Closed Myriad-Dreamin closed 1 year ago
Implementing Proposal 2, Renderer: Retrieve Text from Document
Replace the PDF text extraction algorithm by retrieving information from document accurately and efficiently.
To finish the task we need to implement the following function:
/// pdfJs.TextContentSource pub struct TextContentSource; pub fn reconstruct_text_information(&self, doc: &typst::doc::Document) -> TextContentSource;
page.getTextContent()
page.getViewport()
pdf.getDocument
done by https://github.com/Myriad-Dreamin/typst.ts/commit/47aeb7deb4966b10536ae9a44658e786e764092d
Implementing Proposal 2, Renderer: Retrieve Text from Document
Description
Replace the PDF text extraction algorithm by retrieving information from document accurately and efficiently.
To finish the task we need to implement the following function:
Task list
page.getTextContent()
and replace all text content by point mapping.page.getTextContent()
page.getViewport()
pdf.getDocument