Myriad-Dreamin / typst.ts

Run Typst in JavaScriptWorld.
https://myriad-dreamin.github.io/typst.ts
Apache License 2.0
411 stars 24 forks source link

Renderer: Retrieve Text from Document #6

Closed Myriad-Dreamin closed 1 year ago

Myriad-Dreamin commented 1 year ago

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:

/// pdfJs.TextContentSource
pub struct TextContentSource;
pub fn reconstruct_text_information(&self, doc: &typst::doc::Document) -> TextContentSource;

Task list

Myriad-Dreamin commented 1 year ago

done by https://github.com/Myriad-Dreamin/typst.ts/commit/47aeb7deb4966b10536ae9a44658e786e764092d