PDFTouch SDK can only display link annotations with custom url schemes for audio, video, web and map annotations. You can open the "pdftouch.pdf" with the demo app to see the annotations in action.
You can use the pinch gesture to zoom in. The zoom scale can only be changed by editing the source code. All licenses except the "Single App Binary" license include the complete source code of PDFTouch SDK.
is there any way for us to change the source code for demo project regarding the zoom scale for testing only? because we need to show it to our client currently they say this zoom scale is not enough so we need to increase the maximum zoom scale.
We are looking in to this SDK and might be integrating it in our application. The only question I have is following:
Is it possible to have restrictions on specific documents? For example, a document that have a sertain value "1" will have the button "share" but documents with value "2" will not show the "share" button when opening the document?
(Values will come from backend part directly to the document in the application)
There's no share button in the toolbar but I assume that you'll add it with the custom bar button property. YLPDFViewController has properties to hide/show specific bar button items. So depending on your value you can hide/show these buttons.
We are using 2.2.2 Licensed version and seeing a strange issue. When we open a PDF with a graph in it,
1. in iOS 9.x, the bar graph doesn't show any colors, just shows black color for bars.
2. but, in iOS 8.x, the bar graph shows proper colors and works fine.
Could you please let us know is there any issue with 9.x and PDFTouch. We have source code and we can compile as per your suggestions.
PDFTouch SDK uses iOS' native PDF rendering engine. There is most likely a bug in iOS 9.x that causes this issue. Unfortunately there's not much that can be done other than waiting for Apple to fix it.
Please have a look at the sample "pdftouch.pdf" file in a PDF editor tool. There you'll see that it uses custom annotation schemes to add multimedia on pages. You can find more information about its syntax on pages 9-10 of PDFTouch SDK documentation.
Kemal, Thanks for the quick reply. I would like to implement a map view as a popover. Could I use the custom nav bar button you added in the latest build to accomplish the popover? Could you provide some sample code in your demo that demonstrates how to add the button?
The first step would be to create a UIBarButtonItem and set it up with an image and "action" selector that will be executed when it's tapped. In this action selector you would put the code that creates your map view and displays it as popover.
Once you have created your UIBarButtonItem you just assign it to the "customBarButton" property of YLPDFViewController.
UIBarButtonItem *myButton = [UIBarButtonItem....;
YLPDFViewController *v = [[YLPDFViewController alloc] initWithDocument:....;
v.customBarButton = myButton;