Some IOperation PagesRange.RangeTypes Custom and CustomRect  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Some IOperation PagesRange.RangeTypes Custom and CustomRect

Post by zarkogajic »

Hi Support,

I'm playing with the op.document.replaceFonts ...

I had a crazy idea of specifying: I only want to change fonts "inside" the bottom half of a page (or pages).

I've tried specifying the "Custom" and the "CustomRect" values - but nothing happens - no changes to the document.

This, I guess means, op.document.replaceFonts ignores PagesRange's Custom/CustomRect values (i.e. is not implemented)?

p.s.
I can do the change on all pages, page range, etc ... I would really want to specify a rectangle (on a page) where the operation would do its magical work ....


-žarko
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Some IOperation PagesRange.RangeTypes Custom and CustomRect

Post by Vasyl-Tracker Dev Team »

Hi Zarko.

You are right, it is not implemented yet.
But seems the idea isn't too crazy and we will make a feature request to do it in the future. :wink:

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: Some IOperation PagesRange.RangeTypes Custom and CustomRect  SOLVED

Post by zarkogajic »

Hi Vasyl,
But seems the idea isn't too crazy and we will make a feature request to do it in the future. :wink:
Wohoo :)

Am actually looking into being possible to do the following:

image.png

So, specify (in this sample 4) custom rectangles on a page and have the magic do its work ...

-žarko
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Some IOperation PagesRange.RangeTypes Custom and CustomRect

Post by Vasyl-Tracker Dev Team »

It will not be so difficult to change just the color of the selected fragments of text. As shown in your screenshot.
But it will be incredibly difficult to change the font for text-fragments exactly and only covered by the selection rectangle. Because when you change font - it may (will) reflow the other text in the text block.
If you want only to change the color of text - maybe it can be implemented as a separate feature, like HighlightText tool, but it will change the color of the selected text instead of adding the highlight-comment to it.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: Some IOperation PagesRange.RangeTypes Custom and CustomRect

Post by zarkogajic »

Hi Vasyl,

Yes, I only need color changing (keep font type/size..).

-žarko