Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Fix for PDF text not being selectable on Mac OSX #11723

Closed
wants to merge 2 commits into from

Conversation

ragulka
Copy link

@ragulka ragulka commented Oct 31, 2013

Produces selectable text when printing/rasterizing to PDF on OSX.

#10373

Please note: this PR is almost the same as the original one by FreshXOpenSource: #11509 - the difference is that I have tried to refactor the PR to meet Contribution Guidelines and removed the filename extension check.

Produces selectable text when printing/rasterizing to PDF on OSX.

ariya#10373

// Fix for PDF prints on Mac OSX. Produces selectable text
#ifdef Q_WS_MACX
if(fileName.endsWith(".pdf")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're in this method, then you will be rendering a PDF. Just force the output format if the platform is OS X. Don't check the filename extension.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya, that makes a lot of sense. I will change it and add a commit soon.

@ragulka
Copy link
Author

ragulka commented Nov 11, 2013

I removed the check for filename extension as @sodabrew recommended.

@ariya
Copy link
Owner

ariya commented Jan 11, 2014

My take is still the same (as in #11509): until someone can do an in-depth analysis of the impact w.r.t. what Qt produces with this patch, it's too risky to land the patch. Meanwhile, I'll place this under patches subdirectory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants