Is it possible to get the page number and line number in iPhone - iphone

Is it possible to get the page number and line number of particular text from doc/rtf/pdf in iPhone sdk?
Can QLPreviewController or UIDocumentInteractionController be of any help?
EDIT:
I am trying to create something like iAnnotate,Sente. Application where in user will be able to select some text and can add comments for selected text.
I have gone through the fastpdfkit api's which seems the only api which can be of some help.
Can you guys guide me in the right direction.

https://github.com/brow/leaves
Go with this link, it will help you for PDF reader and you can see there how I am doing total page and current page.

If you're looking at doing this with PDF, RTF and DOC it might be best to approach it in a different way as they are all very different formats.
Instead - if you consider attaching comments to an area of the page as opposed to a specific text selection then all you need to know about the document is which page you're looking at. A much easier task. Then you get the user to 'drag out' a comments box for an area of that page. Think of them more like sticky-notes.
This way you can add comments to images as well as text and it allows a much more flexible system for support of other file formats in the future.
I realise this isn't I direct answer to the question, but thought it relevant enough to post.

Related

Getting more information from form choices

I'm not sure if this is the right place to ask this. But I work for a large design company and the way we receive work is through a request form in Adobe Workfront.
We would like to have a spreadsheet that gets populated with all of the info from the choice they made ie: if they selected a social media graphic for twitter, we would like there to be an output of the correct aspect ratio, whether we use our logo on that graphic, and whether we include text (if yes what would that be?).
Is there a good way of going about doing this? And if I am in the wrong place, where would I be able to get a good answer?
Thanks for the help!

AppJS does not show Unicode characters

I have a situation where I want to open a website by clicking a desktop icon. I found AppJS to be the answer. I created an app with just a full window covering iframe. The only problem I am facing is, Unicode characters are not shown properly (all I see is boxes in place of text). I could not understand where should I look for. Please, give me some pointers. or maybe an alternative to fulfill the original purpose.
Thanks in advance

confluence display content by user

I am trying to get specific content on a confluence cloud wiki to display content based on a specific user. The scenario here is that there are links on a page but only 1 should display, the one that displays is based on whom ever is logged in.
I have been told how a macro is the way forward, but I have read the documentation and I am at a loss. I do not understand what I have to do or how to write a confluence macro. could someone help me out with either an example or some links? I have searched like crazy, but maybe i am not asking the right questions but hopfully you can all help me out?
There's a plugin for this:
https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility
But I'm not sure how thoroughly it hides the content. It might still be visible if users view the page source. If you're trying to hide content which needs to be really protected, you'll probably need to do something else.
Depending on how many users are going to be using the page, you could also just make separate spaces for them, add the permissions to those spaces, and then use a page-include on your "main" page to display the content. If they don't have access it shouldn't show up. You might experience some formatting issues with that solution, however.
Finally, you could grab the username with jquery and display stuff based on that. This solution will be pretty easy if you are familiar with javascript/jquery.
Edit: Here are some helpful resources on how to use javascript and jquery within confluence:
https://confluence.atlassian.com/display/CONFKB/How+to+Use+JavaScript+in+Confluence
https://developer.atlassian.com/confdev/confluence-plugin-guide/writing-confluence-plugins/including-javascript-and-css-resources

Allowing the user to select a picture from a list of options in confluence survey macro

I would like to know how I can add pictures/image functionality to the confluence survey macro. I would like the user to select a picture from a list of pictures in response to a question. First I need to find out a way the wiki owner can upload pictures for the users to select one. Secondly allowing the user to select one picture. I am a beginner trying to learn confluence/wiki technology. It would be great if someone could help in this regard.
I don't have any experience with the survey macro. On the once occasion when I needed to have a survey-esque function on confluence I just used html and js.
On the subject of attaching images I do have experience though. If you go up to the Edit drop down you'll see a link to Attachments. There you can upload images which will be attached to that page.
You might want to look into whether the survey macro has the ability to work in conjunction with the image gallery macro.
Use pictures instead of words in the survey macro option list.
{survey:title=MyTitle|choices=!apple.png!,!orange.png!,!banana.png!|changeableVotes=true|showSummary=true|showTopSummary=true|showLast=true|visibleVoters=true}This is a survey{survey}
You can also have words and pictures.
{survey:title=MyTitle|choices=!apple.png! I like apples,!orange.png! I like oranges,!banana.png! I like bananas|changeableVotes=true|showSummary=true|showTopSummary=true|showLast=true|visibleVoters=true}This is a survey{survey}

Access to hyperlink in a pdf(iPhone)?

I am working on a small app, which can open a pdf. My question is, if it is possible to access a hyperlink from a pdf? Because when am trying to click on hyperlink nothing is happening and it's not redirecting me to the link. I tried searching a lot but didn't got any luck on this. Am expecting a quick response as my work is getting delayed because of this issue. If it's possible then what would be the approach? Right now am using UIWebView to open the pdf. Any sample app or code will be of great help.
Thanks for your time .
The only way I know is to use a third party library (or perhaps parse the PDF yourself), find the links, get their rects and catch user taps and compare that to the list of link/hyperlinks/gotos for that particular page.
Unfortunatelly - nothing in the SDK that can help. You can search for a opensource pdf library, like muPDF for instance.
There is a reason why not many applications have that functionality :D