1

Just updated PDFNet.framework to 6.2.1 When I edit a doc with text fields in the PDFViewCtrl and then save it with

    NSData *pdfData = [pdfViewCtrl.GetDoc SaveToBuf:e_linearized];

all field values get saved except the one that has focus.

Recently (on v6.1.0 or smth) I used to do the following

    [pdfViewCtrl setTool:nil];

now there's the toolManager instead of tool property, but it throws exception "pdfViewCtrl Is Nil" when I try to

    [toolManager setTool:nil];

How do I fix it so that all fields including focused one are saved ?

azeml
  • 23
  • 3

1 Answers1

1

You can use

[toolManager changeTool:[PanTool class]];

or

[toolManager setTool:[[PanTool alloc] initWithPDFViewCtrl:myPDFViewCtrl]];
James
  • 863
  • 8
  • 21