Skip navigation
SowbhagyaSanjeev
Currently Being Moderated

Moving Highlight Text ( Annot) in a page for scaling

Mar 30, 2012 2:30 AM

Hello,

I have created one plug-in which should scaling the content to 5 or 10%.

 

I have taken cos object of content and applying transformation. This works fine.

 

According to scaling am setting annotation coordinates.

But the problem is I have hightext text as annot.

 

In code it is considering highlight text as a annot but it's not at all moving to new coordinates.

What could be the problem.

 

I want to move annotations( links, text highlight ) with scaling.

 

Please some one help me to solve this issue.

 

Thanks,

 

Sow

 
Replies
  • Currently Being Moderated
    Apr 1, 2012 1:18 PM   in reply to SowbhagyaSanjeev

    Handling annots when scaling is a bit harder.

     

    You can simply adjust the Rect of the annot, though that may clip the contents vs. actually scaling the annot as well.  If you need to scale the appearance, then you need to modify that too…

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 2, 2012 4:30 AM   in reply to SowbhagyaSanjeev

    I don’t know what “not resetting” means.   Are you saying that the /Rect key is not changing?  Are you saying that the drawing isn’t changing?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 3, 2012 4:31 AM   in reply to SowbhagyaSanjeev

    PDAnnotSetRect() – you are setting the rect of the annotation.

     

    But as I said, I still don’t understand what “doesn’t work” means.  Is the rect not changing?  It is changing but not the way you want?  What?!?!?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 3, 2012 5:52 AM   in reply to SowbhagyaSanjeev

    I would check the PDF format data itself to see what it says – for example, is the rect actually getting changed?  What about the appearance, is it adjusted? (etc.)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points