Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7193987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:16:50+00:00 2026-05-28T20:16:50+00:00

Situation: (Large) PDFs are stored on an iOS device The PDFs are encrypted using

  • 0

Situation:

  • (Large) PDFs are stored on an iOS device
  • The PDFs are encrypted using a Rijndahl algorithm
  • When tapping one of the PDFs, it gets decrypted and afterwards viewed using a PDF viewer I implemented. The viewer is using the Core Graphics functionality to render the document page by page.

Issue:

  • With the documents being large enough, encrytion will take a while.
  • Viewing can only be started after the whole document has been decrypted into a temp file.

I’m wondering, if there is a way to…

  • Pass some kind of stream to CGPDFDocument instead of a file URL
  • Or any other alternative to be able to view as many pages as possible whil decrpytion is continued in the background?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:16:51+00:00Added an answer on May 28, 2026 at 8:16 pm

    If you cannot split your original PDF files down to single pages (as I suspect), then the following approach should work:

    A: When still decrypting:

    1. try to open the PDF document as you already do;

    2. try accessing the document page you are interested in;

    3. if it does not fail, render the page;

    4. if it fails, then you know that page is not available yet (while decrypting);

    5. while decrypting, release the pdf document each time you try to get a new page.

    B: when decryption is done: do as you are already doing.

    Please note that this is just a suggestion, I have not tried this while decrypting a document, but if point 1. does not fail, then this should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple situation. A large organisation is using several different versions of
Ok here is the situation (using PHP/MySQL) you are getting results from a large
I’ve got a situation with a large internal corporate web based application running ASP.NET
I have situation where a user can manipulate a large set of data (presented
I have a very strange situation. I have a large set of records to
I'm in a situation where I must output a quite large list of objects
I have a situation with a relatively large git repository located in a virtual
Working with a relatively large data set I have a situation where I need
I've got a situation where I need to resize a large number of images.
I'm in a situation where I've got a project that has a large number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.