Select/Highlight/Copy lines from a PDF in iOS using CG/Quartz - objective-c

I've searched many sites, and found several links which explains to implement pdf reading/rendering and annotating using javascript on a webview.
I want to highlight text in a pdf just like the way its done in desktop and copy the text and send as sms/email,by a cut/copy/paste like callout which happens in textviews. Is there any link or sources to do the same way for copying text in a pdf document through the app ?
Help is appreciated..!

Related

Extract PDF coordinates using mouse click

I want to extract the coordinates of a PDF document with the help of a mouse click. I have gone through some posts but since I'm new to this, I'm not being able to understand it properly. Also, can this be done if I render the PDF file in a web page?
You can add javascript to a pdf document. Although you only get access to a limited subset of the language.
If you only need the coordinates once (for instance when doing layout of the document), you can simply open it with adobe and activate the rulers/grid option to see where your mousepointer is currently located.

How to get page coordinates inside pdf document onclick

Is there any API in js or .net or any other free tool through which page coordinates can be obtained in a pdf? Basically, I have a pdf file which contains images so I have read the coordinates on click inside the pdf document.
*coordinates here refer to .pdf page coordinates and not pixel coordinates, however I used itext library but couldn't figure out the solution.
In order to read the coordinates of an image when it's clicked on in the PDF, you're going to need to use a PDF viewer that is capable of running scripts. Unfortunately, there are only a few of those and they all implement only a portion of the Acrobat JavaScript API but the Acrobat JavaScript API can't tell you anything about images or their location so it's doubtful that any of the others would. However, you could create a plug-in to Reader and/or Acrobat and add that functionality but then all of your users would need to install both Acrobat/Reader and your plug-in.
Assuming I understood the user experience you are looking for, I don't think it's possible without a customized viewer.

Use leaflets over pdf files using angularjs

I am trying to do something like this
leafletoverimage.
Currently I am using background image and angular-leaflets tool for the click and comment.
I am trying to find out a way where I can have pdf file actually rendering on browsers, and able to click on different section of pdf file, have popover and enter comment about that section.
This is similar to what https://app.fieldlens.com/ and www.plangrid.com is doing.
is there something available in angularjs or any other solution is appreciated.

Adding a PDF field in Landscape document in c#

I am using PDF Clown for this purpose.
I wanted to add fields in PDF document. Actually I have successfully added fields in portrait PDF documents but doing the same in Landscape PDF documents is troubling.
Controls are placed vertically instead of horizontally.
Please help in this matter even if your proposed solution is using any other library. I will be very thankful.
Regards,
Mujtaba Panjwani
PS. I have tried PDFSharp.NET but that seems to have no support for creating fields and for iTextsharp, I am not sure.
iTextSharp should do the trick. Have a look at the many examples available on their website.

Customize PDF view inside a browser

I've worked on a requirement that allows me to show a PDF file inside a browser by doingo a Response.ContentType = "application/pdf".
The problem is that the default view of the PDF is always showing the bookmarks menu at the left, is there a way by using HTTP headers or something to tell the PDF viewer not to show the bookmarks section?
Thanks in advance.
There's two ways that you can do it. The way that I would recommend is to actually open the PDF in Adobe Acrobat and go to File, Properties. On the Initial View tab you'll see a lot of options for how to display the PDF. The second way I haven't tested but Adobe says you can pass various querystring options to the PDF. The one you'd probably want is http://example.org/doc.pdf#pagemode=none
The way how a PDF document is displayed can be configured inside the PDF document.
There are a lot of PDF editors that can modify the "viewer preferences" as it is mostly called. One free example is BeCyPDFMetaEdit.