Closed moukraintsev closed 1 year ago
Hi,
Please keep in mind the GitHub issues section of this project is meant for bug reports and feature requests. Your request is more of a "How can I do this?" or "Help me with this code".
We do have a tag on StackOverflow, which you can use.
Also, a small, self-contained code sample would make it easier for others to help you.
Lastly, if you intend to do this, there are (in my opinion) better/easier ways.
You could parse the content-stream of the Page
and modify it (borb already does this whenever you're applying
RedactionAnnotation`s, so be sure to check out that code).
You could build your own version of ChunkOfText
that optionally takes a letter_spacing
parameter. Then you could look at SimpleFindReplace
that removes text and replaces it with other text. That would also give you the right kind of inspiration.
Kind regards, Joris Schellekens
Hello! I am using borb to research the technique of embedding and extracting digital watermarks. I use a low-level syntax for absolute positioning of characters in an existing document.
The problem occurs when trying to use the font of the source document. The output doc opens with default font and message: Font "Times_roman" contains wrong /BBox
Is it possible to fix it / what should i do?
base_file.pdf - original document work_file.pdf - modified document
NOTE: document created by borb, parameter FONT = 'Times_roman'
Code: