You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling PDF::Inspector::Text#font_settings, it returns an array of objects with font name and size. I’d like to add the color of the text as well. From looking at the code, it seems these attributes are set here:
If you agree that this would be a good addition, could you please advise on where to start in order to add this parameter?, I’d be happy to collaborate on a PR for this feature.
The text was updated successfully, but these errors were encountered:
IIRC, set_text_font_and_size is a callback for PDF graphic stream command. There should be corresponding callbacks for commands for setting fill color (what is usually used for text color). You'd need to keep track of the current fill color to assign it to the text. You probably would also need to keep track of the drawing mode (e.g. fill only, outline only, etc.) because you probably can have fill color set but not actually used.
When calling
PDF::Inspector::Text#font_settings
, it returns an array of objects with font name and size. I’d like to add the color of the text as well. From looking at the code, it seems these attributes are set here:If you agree that this would be a good addition, could you please advise on where to start in order to add this parameter?, I’d be happy to collaborate on a PR for this feature.
The text was updated successfully, but these errors were encountered: