Mac OS X PDF manipulation - macos

I'm new to mac OS developing (I've been only developing on iOS before)
I've created a mac application. That last thing I need to do is the following:
Either:
Open an existing pdf file at given page
or
create new pdf file from the existing pdf file containing pages between given page and given page and open it.
Example:
parameters: given page : 47 --> open pdf file at page 47
or
parameters: given pages : 47, 55 --> create a new pdf file containing 9 pages (pages 47 to 55 from the initial pdf) and open it (somehow).
How should I go about this?
Is it necessary to create another view and process each pdf page using pdf kit on my own mac app control? Or is there any way I could use , say.. , Adobe to open the pdf at a given page?
Any advice should do :)
Thanks

Wound up using NSPanel with PDFView (Quartz framework) to open the pdf at specified page.. Maybe this will help someone

Related

How to retain URLs in pdfjoin?

I am using pdfjoin to merge two pdfs. The first pdf has a "Click here" link which goes to a webpage. When I open the first pdf, I can click on the link which automatically opens my default browser and shows the webpage.
However, when I merge the two pdfs using pdfjoin, the "Click here" link has no effect and it just behaves as plain text in the final pdf.
How can I keep the effect of the URL using pdfjoin?
I am using OS X Yosemite and pdfjoin version 2.08.
take a look at PDFtk which is available for GNU+Linux, macOS and Windows. according to this blog post only PDFtk maintains hyperlinks, and i can confirm the findings when trying the same with pdfjam/pdfjoin.

opening pdf file on mobile app using ionic

I use Ionic framework for building mobile app. I call a webapi service,and it returns a byte array to me.(thi byte array is a pdf file that saved in db.) Now, I want to show this pdf file on my mobile application. How can I show a pdf file using ionic?
I read articles on net. But I can not achieve open pdf file. Can anyone give me idea ?
Thanks in advance.
What I did to achieve this was to send the PDF by email using the following plugin : https://github.com/katzer/cordova-plugin-email-composer
Then, you will be able to open the PDF. I did not find a better solution with Ionic.

Reading multiple PDF files in Preview app Mac OS X Maverick

I need to work on multiple PDF files and because of annotating those files, I prefer to use Preview built-in app for Mac OSX.
If I am in the middle of one PDF file say on Page 5, and I transit to some other PDF file and come back to the previous file, then I always get the first page of that PDF.
Is there any setting which I can use so that I always get the page from where I left?
Not sure what the problem is, mine works as you seem to want it to. Maybe your Preferences are set differently. Here are mine.

Load PDF file in codeigniter

I want to load a pdf file located in upload/grilles/ where upload is located in the root.
My code:
<?php echo $nomFichier; ?>
When I click in the link, codeigniter doesn't want to display the document unlike in a site without framework that display.
Why?
Thanks !
This is not a codeigniter problem, but a browser (Firefox) issue.
I'd recommend the PDF.JS library, which is a general-purpose, web standards-based platform for parsing and rendering PDFs.
note: your above example behave (checked on localhost ) in other browsers than FireFox as follows:
Chrome Version 34.0.1847.137: shows pdf in new window right away
IE 11: asks for permission to show the pdf, if granted shows pdf in new window right away
Safari (for windows) 5.1.7.: shows pdf in new window right away
Opera 12.11: shows pdf in new window right away
So....
It's just my URL.
The file name contains a space, but I injected the name in the url which gave:
localhost/xxxx/yyy/file%20test.pdf
but the url's file is:
localhost/xxxx/yyy/file_test.pdf
Sorry for the inconvenience

Windows Phone 7 Development - Image Source Issue

While developing a project for Windows Phone 7, I'm adding an image control onto the Grid and using the following code in C# to set the image source:-
Uri nUri = new Uri("/TestImage.png", UriKind.Relative);
BitmapImage nBitmapImage = new BitmapImage(nUri);
FacebookImage.Source = nBitmapImage;
The problem is that whenever I use custom images, they do not show up when I build and run the app on the emulator. Whereas, if I change the image file name in the above code to one of the images that are included in the project by default (ApplicationIcon.png), the image shows up upon running. I would like to know if this is a problem with the code or with the custom image files I'm using. I'm ensuring that the images I'm creating are proper and have the same attributes as the images included by default.
Could someone please help me out with this.
Thanks.
Click on your custom picture in Visual Studio's Solution Explorer. Then, look at the property window (press F4 if it's closed), and at the "Build Action" line. It basically tells the compiler how to embed your file in the application. The build action of ApplicationIcon.png should be "Content", just set the same one for your custom pictures.

Resources