PDF Viewer iPad App [closed] - iphone

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking to develop a custom PDF viewer for an iPad, which has features like:
bookmarks
search
deep linking
zoom
jump to specific page
Does anyone know a code solution similar to this? I'm currently looking at Ghostscript but am having a problem finding other options.

For a simple and effective PDF viewer, you can now (iOS 4.0+) use the QuickLook framework:
QLPreviewController *previewController = [[QLPreviewController alloc] init];
previewController.dataSource = self;
previewController.delegate = self;
previewController.currentPreviewItemIndex = indexPath.row;
[self presentModalViewController:previewController animated:YES];
[previewController release];
You need to link against QuickLook.framework and #include <QuickLook/QuickLook.h>
For anything more complex, just grab the excellent PSPDFKit.

I've developed a custom reader like this which I've used for a handful of projects for clients. Search & Highlight was by far the most difficult, followed by text selection. Keeping memory usage low for large PDF's is tricky too.
I cant share my source. But here's someone who has a free library that looks promising:
http://mobfarm.eu/fastpdfkit
https://github.com/mobfarm/FastPdfKit
(it doesn't look as if the source code is available?)

Here is a nice example of a pdf reader on github. It does not do the advanced things (like text search), but it might be good as a starting place. Seems to do OK with large pdfs, so maybe the performance is not too bad.

You could port Xpdf or the forked Poppler to iOS and use their rendering capabilities as well as retrieving information such as bookmarks and URI links from the PDF for use in your application.

There is a payed option named http://pspdfkit.com/
I have been looking at the example and it seams to work the way I was hoping to find some code example

http://www.labnol.org/software/ipad-pdf-reader-apps/13807/
Update: I can't find any PDF component/library for iOS, which doesn't surprise me. So here's a crazy alternative (so crazy it just might work): Write your app in C#/.Net using MonoTouch, and incorporate the free .Net library iTextSharp. I have no idea if this would work or not.
Another idea might be to incorporate a web service (running on a server somewhere) that will convert your PDF into HTML for you. Your server component can be written in any language, which expands your PDF-component options considerably. And the things you want to do in your bullet points would be a lot easier to implement yourself with HTML.

Related

Parse BBCode in an iOS app

I'm writing an app for a forum. I can get the posts as HTML but I need to do lots of custom things with the posts as I'm not displaying it in UIWebView but natively as rich text (custom handling of [youtube][/youtube] tags). So I am instead getting the much cleaner BBCode output of the posts.
This tutorial seems to fit my needs well enough, however there are some obvious problems with it. On is that if the user types mis-formed BBC I get back bad HTML. Leaving out the closing [/b] as an example.
I am thinking I may just need to loop through the outputted HTML and track if there is an unclosed tag at the end, however I was hoping that there might be a better way to parse BBCode on the iPhone.
Also, lastly I know that is probably the wrong approach (outlined above) but every stack overflow question I've found on BBCode parsing has said not to reinvent the wheel and just use an existing PHP library. But, of course, this is an iOS app so I can't use any code written in PHP.
The question is, what is the best way to parse BBCode on iOS (and if there isn't a library or example available then is there a tutorial on writing a good quality one yourself)?

Add a signature image to a pdf in iOS for the iPhone/iPad in particular

With the iOS support for Quartz 2D and its support for the PDF format; should adding a signature image to a pdf be a little easier. I have looked all over and saw people are using the PDFKit, UIView or Core Graphic Library. Which is the easiest and the recommended library for the effort? Also, are there simple examples of the recommend library. When I tried to see how Quartz 2D worked, all I could find are narrative explanations about how it worked and specific method you may use but no complete examples. You know the hello world one. Anyway, I am new to iOS development but been writing code for over 20 years so I might be able to pick this OS up as well.
Can some poor soul have pity on me and please point me in the right direction?
I have done this by loading the old pdf file on view and then add signature on that view and then render the view. check the following post
Add a signature image to a pdf without showing the pdf data to user in iOS
But not able create the pdf which contain existing pdf with signature "without showing on view" .
It's too late to answer this question now. But let me just provide some pointers for people who may bump into this question in future.
This one summarizes PDF handling in iOS pretty well. Good for starters.
http://www.ioslearner.com/generate-pdf-programmatically-iphoneipad/#more-242
This one is also similar, but not very exhaustive. http://www.absoluteripple.com/1/post/2012/03/generating-pdf-in-ios.html
The above links do not talk about handling existing PDFs. I found this stackoverflow answer really useful for that.
Add pdf page to an existing pdf objective-c
Just a note, if you want manipulate existing PDFs, Quartz 2d is the way to go.
Also look at reference pages of CGPDFDocument, CGPDFPage, CGPDFContext and CGContext.

page flip without button click

I need smooth page curling for my ebook without clicking any button just like in PageCurl demo. But in that code they are using a pdf file(CGPDFDocumentRef). And am using a xml file for my ebook. How can i implement this? i tried to do but no use. Kindly help me.
You should start by reading the basic documentation and doing some google searches, then when you have specific issues about implementing things in the docs, or questions related to understanding how to apply something in the docs, you should come and ask those specific questions.
You can also start by accepting some answers on Stack Overflow for some of the previous questions you've asked.
To get you started, take a look at UIGestureRecognizer and make sure you read the iOS Application Programming Guide

CMS for plain HTML website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Hello I got a website with around 5-6 pages (plain html). There are areas in these pages where I need to update occassionally. Is there any free / opensource CMS to maintain these editable areas of HTML page.
Thanks
Perch is excellent for small sites.
At its very simplest, Perch allows you to replace static content in an HTML file with placeholders. A simple GUI then allows you to edit those placeholder values for individual pages. So, for example, if you have a file containing this chunk of markup:
<h1>My site</h1>
you can change that to:
<h1><?php perch_content('Main heading'); ?></h1>
and you'll then be able to edit 'Main heading' through the GUI. Most CMS apps work in a similar way, but Perch is the first I've come across that does very little else, which is a huge plus for small projects.
I haven't used Perch for a while, and I'm sure they've added some features since I last did, but I'd still recommend you give it a try. It's cheap, too.
I think couchcms is a pretty good open source alternative to the likes of cushycms and perch
I recommend cushy
http://www.cushycms.com/
http://drupal.org/ is very popular. Many people also use Wordpress - http://wordpress.org. Also try googling "simple cms".
The answer will obviously be dependent on the requirements of the software and the capabilities of your server.
You should also check out opensourcecms.com. You can try out various cms's there until you find one you like.
For a five-page website, Drupal is probably overkill; I'd say Wordpress is good enough (just define a page for each page of the website, copy and paste your content, choose a theme, and you're done). (You would want to either use the blogging features of WP to take full advantage of it, though.)
If for some reason you really want to try out Drupal but don't want to invest a lot of time into figuring it out (it does take some ... well, a lot ... of time to figure out right out of the box), and you're not in a big hurry, you can wait a bit until it's possible to try out the new Drupal Gardens hosted CMS system (currently in beta). (You need a beta key to try it. Sign up for the beta on the site and then wait for your key.)
Since your most likely a programmer I would recommend github's very own Jekyll:
Here are some sites powered by it:
https://github.com/mojombo/jekyll/wiki/sites
As a bonus you can use Github to provide you free hosting (your site will be a public repository that only you can edit).
Have you tried using mut8? They have pretty alright features.
http://mut8.me

Any good tools for creating timelines? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I need to create a historical timeline starting from 1600's to the present day. I also need to have some way of showing events on the timeline so that they do not appear cluttered when many events are close together.
I have tried using Visio 2007 as well as Excel 2007 Radar Charts, but I could not get the results I wanted. the timeline templates in Visio are not great and using Radar charts in Excel leads to cluttered data.
Are there any other tools or techniques I could use to create these?
#Darren:
The first link looks great. Thanks! The second link did not work in Firefox and was rendered as ASCII. It opened up fine in IE.
And yes, this is for the end users. So I want it to look as presentable as possible, if you know what I mean.
Thanks again!
SIMILIE Timeline would probably suit your needs.
http://simile.mit.edu/timeline/
Timeline .NET: http://www.codeplex.com/timelinenet
Oh, i guess i should ask... for personal use or for display to end users? that might change what i would suggest, but this could work for internal purposes too i suppose.
Lifehacker has a good overview and tutorial of SIMILIE Timeline. They seem to like it quite a bit.
If you need a timeline from RSS Feeeds give xTimeline a try. I just used it
http://lifehacker.com/software/rss/create-a-timeline-from-rss-feeds-with-xtimeline-283098.php
#Pascal this page? http://tools.mscorlib.com/timeline/Default.aspx. If it's looking like ascii maybe look for a js error, but that renders on my system fine. If all else fails, it's a decent js library by the MIT team as it is, so you could wire up your own implementation
I also recommend Simile Timeline... I just implemented a webpage that uses it and JQuery and produces fantastic results. The downside is that you need to implement it through some html page, hook it up with the js and create some xml files, so it probably won't do for a presentational tool.
http://infosthetics.com/ is a good data visualization blog, maybe you find something there. Also check flowingdata.com
For webbased timelines, there is also:
circavie: http://flowingdata.com/2007/10/25/create-share-and-embed-custom-timelines-with-circavie/
dipity (looks killer): http://flowingdata.com/2008/08/18/tell-stories-with-interactive-timelines-from-dipity/
You can used this great timeline tool built with JavaScript.
You can download it for free here: http://timeline.verite.co/#examples