Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Freehand drawing Bezier path 9 years 8 months ago #6787

  • Mahesh007
  • Mahesh007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
How can i get bezierpath from freehand drawing from PDFAnnot.

Please Log in or Create an account to join the conversation.

Freehand drawing Bezier path 9 years 8 months ago #6795

  • radaee
  • radaee's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
do you means [PDFAnnot getInkPath] ?

Please Log in or Create an account to join the conversation.

Freehand drawing Bezier path 9 years 8 months ago #6799

  • Mahesh007
  • Mahesh007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
i have to implement a functionality freehand drawing to text. so i have required either freehand drawing bezier path or annotation rectangle area so i will capture screen (free hand drawing annotation part).when i am using your sdk . there is no available api which provide me that kinds of data.
PDFPath *inkPath = [annot getInkPath];
but PDFPath does not give this kind of data.
this kind of functionality is available in other pdf annotation iOS sdk.

please provide some help on this topic.if i am missing something in your sdk.

Please Log in or Create an account to join the conversation.

Last edit: by felipe1234.

Freehand drawing Bezier path 9 years 8 months ago #6800

  • radaee
  • radaee's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
not sure what you mean.
if you want add freehand annotation to PDF file, just invoke [PDFView vInkStart] to enter ink status.
if you want add rect annotation to PDF file, just invoke [PDFView vRectStart] to enter rect status.
others, you can use [PDFPage addAnnotBitmap] with CGImage data.
what's your requirement?

Please Log in or Create an account to join the conversation.

Freehand drawing Bezier path 9 years 8 months ago #6801

  • Mahesh007
  • Mahesh007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
PDFPath *inkPath = [annot getInkPath];

from the give statement i got PDFPath instance.but i have required either freehand drawing data which is bezier path or freehand drawing aannotation area size.i have attach screenshot with that. i have required that frame size from pdfview.
Attachments:

Please Log in or Create an account to join the conversation.

Freehand drawing Bezier path 9 years 8 months ago #6802

  • radaee
  • radaee's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
see [PDFView drawInk] to iterate all points from PDFInk path,
and it same behaviour as PDFPath.
about bound of ink annotation see [PDFAnnot getRect];

Please Log in or Create an account to join the conversation.

Last edit: by .
  • Page:
  • 1
  • 2
Powered by Kunena Forum