Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating PDEContainer groups #2973

Closed
Andreasox opened this issue Jan 4, 2024 · 2 comments
Closed

Generating PDEContainer groups #2973

Andreasox opened this issue Jan 4, 2024 · 2 comments

Comments

@Andreasox
Copy link

When creating PDF from e.g. QGIS, curved texts are generated as one object for each character.
For more efficient handling in e.g. Illustrator, we are planning to use the PDEContainer concept by inserting BMC/EMC flags before/after each text group. To achieve similar things we have inserted special characters as flags and replaced them in EPS/PDF files to desired PDF operators. Is something similar possible with pymupdf?

In the attached image, two PDEContainers should be created, "körväg stig" and "försvunnen" for the current 22 character objects, see attached PDF. We may generate the text as e.g. "^försvunnen^" where ^ should be replaced with BMC/EMC
image

qgis.pdf

@Andreasox
Copy link
Author

https://www.citywayfinding.com/ shows what we are producing in reality.

@JorjMcKie
Copy link
Collaborator

I suggest we make a Discussion post for this. There are ways to edit a page's /Contents and one of the several text output options also directly edits these objects.

Maybe something can be made from this constellation. For a major change resulting from this corner case request we would certainly see a business case for us.

So let's see how far a this discussion will take us.

@pymupdf pymupdf locked and limited conversation to collaborators Jan 16, 2024
@JorjMcKie JorjMcKie converted this issue into discussion #3049 Jan 16, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants