Groups
Sign in
Groups
PDFTron SDK
Conversations
Labels
About
Send feedback
Help
Make Arrow head at the end point and not the start point.
13 views
annotations
Skip to first unread message
Ryan
unread,
Jul 19, 2017, 2:52:23 PM
7/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron PDFNet SDK
Question:
One of the customisations that I’m doing to your library is with the arrow tool.
Where in the PDFNet library we want to swap the behavior from the arrow head being the end point instead of the start point.
I’ve tried making changes to drawRect in ArrowCreate.m to create this behavior, but it is not working out as expected.
Answer:
You can control the arrow heads using the SetEndStyle and SetBeginStyle parameters, before calling RefreshAppearance.
http://www.pdftron.com/pdfnet/mobile/docs/iOS/src/Classes/PTLineAnnot.html
http://www.pdftron.com/pdfnet/mobile/docs/iOS/src/Classes/PTLineAnnot.html#/c:objc(cs)PTLineAnnot(im)SetEndStyle
:
http://www.pdftron.com/pdfnet/mobile/docs/iOS/src/Classes/PTLineAnnot.html#/c:objc(cs)PTLineAnnot(im)SetStartStyle
:
Reply all
Reply to author
Forward
0 new messages