summaryrefslogtreecommitdiff
path: root/platform/ios/Classes
AgeCommit message (Collapse)Author
2016-11-21Harden viewers against failures when loading outlines.Tor Andersson
Ignore invalid page references in outlines. This was shown by a file that had [null 0 0 1] as a link dest. Attempting to parse that threw an error, which caused the whole outline load to fail.
2016-11-08fix iOS app issue where deleted annotations don't properly disappear.fred ross-perry
2016-11-02iOS app: adapt to the latest API changes, and fix display issue introduced ↵fred ross-perry
in 1dec53c.
2016-10-28Clean up link destination handling.Tor Andersson
All link destinations should be URIs, and a document specific function can be called to resolve them to actual page numbers. Outlines have cached page numbers as well as string URIs.
2016-10-26Update ios/android to use new way of passion stext options.Sebastian Rasmussen
In addition, make all callers passing 0 as a point pass NULL instead.
2016-10-18Avoid checking argument to fz_drop_*()/fz_free().Sebastian Rasmussen
As fz_drop_*()/fz_free() all must handle NULL.
2016-10-07Add annotation editing functions and clean interface of existing ones.Tor Andersson
2016-10-07Remove separate tmp/deleted/changed annotation lists.Tor Andersson
Use a flag in the pdf_annot struct instead. Don't pass pdf_document to annotation edit functions.
2016-09-23Clean up annotation enum names.Tor Andersson
Put them in the PDF name space and separate words with underscores. Remove redundant namespace prefixes in java constants. Device.FLAG_MASK rather than Device.FZ_DEVFLAG_MASK. Use namespace for PDF annotation flag enum.
2016-09-08Add options to control heuristics in structured text.Sebastian Rasmussen
2016-07-14Simple update due to API changeMichael Vrhel
2016-07-14Update iOS code to call fz_close_device.Robin Watts
Reflect the change in API in the ios code.
2016-07-13Bug 696699: Fix Text extraction mediabox information.Robin Watts
Since the removal of the begin_page device function, structured text extraction has been unable to correctly establish the mediabox for extracted pages. Update the fz_new_stext_page call to take this mediabox information. This is an API change, but hopefully most people are calling fz_new_stext_page_from_page or fz_new_stext_page_from_display_list which are updated here to cope. Update all the apps/tools to behave properly.
2016-07-11Fixes to iOS application for recent API changesMichael Vrhel
2016-06-09iOS: Run Xcode's "Convert to Modern ObjC" for "ObjC literals"Joseph Heenan
Uses the more modern/concise syntax that arrived in Xcode 4.4
2016-06-09iOS: Replace property like accessors with propertiesJoseph Heenan
2016-06-09iOS: Use modern instancetype instead of id for init return typeJoseph Heenan
2016-06-09iOS: Fix a bad call to super in MuDocumentController.mJoseph Heenan
We're a subclass of UIViewController, so must call one of UIViewController's designated initialisers.
2016-06-09iOS: Replace char * with NSString in ObjC APIsJoseph Heenan
What is effectively our external API on iOS would be expected to use NSString rather than char *.
2016-06-09iOS: Remove some printfsJoseph Heenan
We shouldn't output any debug in default release build.
2016-05-25iOS: Update after pixmap alpha made optionalJoseph Heenan
2016-04-21ios: Fix memory leak of outline controller.Tor Andersson
2016-04-20Fix bug 696718 by deferring creation of the outline until it's about to be ↵fredrossperry
shown.
2016-04-12Fixes for building on XCode 7.3, and to use copies of images from the ↵fredrossperry
Android viewer project.
2016-03-31Initialize disabled document writing flags to zeroSebastian Rasmussen
Also remove redundant assignments. Fixes http://bugs.ghostscript.com/show_bug.cgi?id=695968
2016-01-05Remove fz_page argument from fz_annot function calls.Tor Andersson
2015-12-18iOS: Fix two warnings in MuPrintPageRenderer with latest XcodeJoseph Heenan
MuPrintPageRenderer.h:2:9: error: 'MuDocRef.h' file not found with <angled> include; use "quotes" instead MuPrintPageRenderer.m:35:16: warning: if statement has empty body [-Wempty-body] MuPrintPageRenderer.m:35:16: note: put the semicolon on a separate line to silence this warning
2015-12-18Remove fz_save_document and use pdf_save_document directly instead.Tor Andersson
In preparation of adding pdf_write_document that writes a document to a fz_output stream.
2015-12-15muPDF iOS app: Support for the latest (3.4.1) Crashlytics.fredrossperry
- added four zlib files to Makethird that contain functions needed by the new version. - added -Wno-implicit-function-declaration so these new files, which contain some implicit declarations, would build for iOS - added a section to Info.plist that holds the new API key, with an invalid value that the release build script will fill in. - changes to MuAppDelegate for the new version. <log></log>
2015-12-11Rename structured text structs and functions to 'stext'.Tor Andersson
Less risk of confusion with the text type used in the device interface.
2015-10-14Add proper support for when a combobox widget has options that are 2-element ↵Michael Vrhel
arrays The list box and combo box can have values that are 2-element arrays. The first element is the "export" value and the second element is the value that should be shown in the list box UI. This fix ensures that we get the proper value to show in the UI. Also, it adds the option to get the export values. These are needed if you wish to update the field dictionary's V (value) entry, which is the currently selected values(s). This fix works well with gsview. The other viewers will now display the proper content in their UI, (unlike before this fix) but may need a bit more work to ensure that the proper V (value) is updated with changes in the selections. In addition, we add selection rectangles to the selected list box items.
2015-04-15ios: add epub to the list of handled file formatsTor Andersson
2015-04-15Fix crash in iOS app when share button is usedPaul Gardiner
popover presentations need to be told which button to emerge from
2015-04-07Fix whitespace.Tor Andersson
2015-02-25iOS: Minor cleanups to match current best practiceJoseph Heenan
2015-02-25iOS: Fix some warnings in the 64bit buildJoseph Heenan
2015-02-25iOS: conform to recent mupdf API changes.fredrossperry
2015-02-17Rename fz_close_* and fz_free_* to fz_drop_*.Tor Andersson
Rename fz_close to fz_drop_stream. Rename fz_close_archive to fz_drop_archive. Rename fz_close_output to fz_drop_output. Rename fz_free_* to fz_drop_*. Rename pdf_free_* to pdf_drop_*. Rename xps_free_* to xps_drop_*.
2015-02-17Reference count fz_document.Tor Andersson
2014-10-05iOS: tweak types to avoid warnings in 64 bit buildsJoseph Heenan
Still more warnings left.
2014-10-04iOS: minor cleans upsJoseph Heenan
unused variables / functions / potential uninitialised variable usage
2014-10-04iOS: Fix an analyser warningJoseph Heenan
In MuDocRef initialise. it spotted cases where self could be released twice after a failure.
2014-10-04iOS: Remove empty didReceiveMemoryWarning implementationJoseph Heenan
2014-10-04iOS: Fix a warning in xcode 6Joseph Heenan
scrollViewDidEndZooming takes a CGFloat.
2014-10-04iOS: Add missing [super viewWillAppear/Disappear] callsJoseph Heenan
Spotted by xcode6 analyser
2014-10-04iOS: Move instance variables from .h to .mJoseph Heenan
These are private details that, since changes in Xcode, no longer need to be exposed in the headers.
2014-07-17Fix odd animation when opening a document on iOS.Matt Holgate
The background colour of the MuDocumentController's root view wasn't set, so the MuLibraryController was showing through until it had been removed from the screen. Fix by setting the background colour to gray - the same colour as the window.
2014-07-16Fix page changing when rotating the device.Matt Holgate
A bug in UIKit means our 'scrollViewDidScroll' method is called during screen rotation. This ended up corrupting our current page number because the width of the screen had changed at this point, but the pages hadn't yet been resized/repositioned (I assume). The workaround is to ignore calls to scrollViewDidScroll during rotation.
2014-07-16Remove iOS debug output.Matt Holgate
This debug output was listing the names of all the files to the iOS console every 3 seconds. Remove it.
2014-07-10Crashlytics support for official builds.Matt Holgate
Add hooks to allow us to pass in the Crashlytics SDK location and the API key from the command line. The SDK and API key will be held in a separate private repository. Should have no effect on regular builds.