Skip to content

capmo/ApryseDemo-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Apryse PDF Demo

A simple SwiftUI application demonstrating how to use the Apryse PDF SDK to view PDF files.

Features

  • Main screen with multiple buttons to open different PDF files
  • Modal screen that displays a PDF using the PDFView component
  • Support for PDFs of various sizes (from small samples to 200-page documents)
  • Organized interface with categorized PDF options

Setup

  1. Clone the repository
  2. Open the project in Xcode
  3. Make sure the Resources directory is included in the app bundle:
    • In Xcode, go to the project navigator
    • Select the project file
    • Go to the "Build Phases" tab
    • Expand "Copy Bundle Resources"
    • Click the "+" button and add the Resources directory

Usage

  1. Launch the app
  2. The main screen displays multiple buttons for different PDF files
  3. Click on any button to open the corresponding PDF
  4. The selected PDF will open in a modal screen
  5. Click the "Close" button to return to the main screen
  6. Select a different PDF button to view another document

PDF Files

The app includes multiple PDF files in the Resources directory:

Original PDFs

  • Sample PDF files (sample, sample1, sample2, sample3, sample4)

New PDFs

  • Various sized PDFs (10, 20, 30, 50, and 200 pages)
  • An invalid PDF file for testing error handling

Adding More PDFs

To add more PDF files to the application:

  1. Add the PDF files to the Resources directory
  2. Update the pdfFiles array in ContentView.swift to include the new file names
  3. Add new buttons in the UI for the new PDF files

Requirements

  • iOS 15.0+
  • Xcode 13.0+
  • Swift 5.5+
  • Apryse PDF SDK

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages