Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

PDF # reference link to specific page does not work on IOS installed browsers

Iam working on a hybrid web/mobile app where I need to provide a PDF link to users and when they click on it the PDF should open at a specific page. It works well on my desktop Safari and other ...
Coding With Toms's user avatar
0 votes
1 answer
130 views

How to Download a PDF in Flutter and Save It to the iOS Downloads Folder So It Appears in Recents?

I am building a Flutter app and need to implement functionality to download a PDF file and save it to the Downloads folder on iOS devices. Additionally, I want the file to appear in the Recents ...
Ragul PR's user avatar
  • 150
1 vote
2 answers
140 views

Handling Images in XFDF for PDF Annotations

I'm working on a project where we need to manage PDF annotations using XFDF in a IOS mobile app. Currently, the images included in the annotations are encoded as base64 strings, which significantly ...
pradeep's user avatar
  • 441
1 vote
0 answers
119 views

PDFKit - PDFPage.characterBounds(at:) returns wrong character bounds

Apple's PDFKit function PDFPage.characterBounds(at:) returns wrong character bounds in iOS 18, 18.1 and 18.2 betas. It breaks apps that read character positions from PDF files through PDFKit. Has ...
KlausM's user avatar
  • 301
0 votes
0 answers
25 views

Load PDF from media server into iFrame ends with error in iPhone dev console

I tried to show PDF file inside frame window. Many approaches and ways but still same result: Blocked a frame with origin "https://fe-url.com" from accessing a frame with origin "https:/...
Jan Richter's user avatar
1 vote
0 answers
146 views

How to extract text from a PDF using the PDFParser library?

I am new to Swift and iOS. I am working on a project where I need to extract text from a PDF. I know about the PDFKit framework, however, I get memory issues because I want to loop through the pages. ...
Aliya Chudhary's user avatar
4 votes
0 answers
550 views

SVG & PDF render performance

We were using SVGs in our iOS project for our assets, but it looks like it was making our app much more heavy and now we also found that is making our app slower (causing flickering when scrolling). ...
ernewston's user avatar
  • 1,015
0 votes
0 answers
85 views

How to correctly paginate a SwiftUI view for PDF generation when content exceeds one page?

I'm generating PDFs from a SwiftUI view representing an invoice using ImageRenderer. The content flows perfectly on a single page, but multi-page content reverses order: the top of the view for the ...
Grande Variable's user avatar
3 votes
0 answers
1k views

Embedded PDFs in Web page are not displayed anymore on iOS 17.4

It looks like the lastest version of iOS (17.4, as of this writing) prevents embedded PDFs, whatever the browser used. To be crystal-clear, I am not talking about PDFs opened in a new tab, but PDFs ...
Arcanod's user avatar
  • 31
0 votes
1 answer
1k views

PDF view in mobile and Safari browser

I've developed website using react js and implemented PDF view feature now the scenarios I'm facing like below: in Desktop, all the browsers PDF load successfully in mobile, Chrome PDF gives me Open ...
Riddhi's user avatar
  • 777
0 votes
0 answers
53 views

Incorporate a PDF map in Swift app with panning, zooming, and tapping

I am looking for some assistance incorporating a PDF map of a metro system into my Swift UIKit app. I have tried saving the PDF map as an asset and loading it into an ImageView. This behaves as ...
Shonie's user avatar
  • 35
0 votes
0 answers
891 views

How to download a pdf file (blob) on mobile iOS Safari/Chrome in 2024

There are plenty of threads around the Internet on this topic but most of them seem to be 3-5+ years old. Or the answers touch upon MacOS Safari. I'm explicitly asking for Safari on iPhone. I have the ...
pollx's user avatar
  • 699
0 votes
1 answer
160 views

HTML to PDF always blank screen in iOS - React Native

I am using react-native-html-to-pdf package to convert html content to pdf, this is working fine on android but iOS it always return a blank white screen. const options = { html: htmlContent,...
Ruchira Swarnapriya's user avatar
-1 votes
1 answer
408 views

React native download base64 image list as a single PDF file

I want to download list of base64 images as single pdf file in to my device.I have implemented following for that, issue is download is working correctly but can't open the downloaded file getting &...
Ruchira Swarnapriya's user avatar
0 votes
0 answers
80 views

PDFDocumentAttribute custom Metadata

in this documentation, the default attributes is only 8 what if i want to read a custom metadata, let say description, how to use that key? for reference: https://exifmeta.com/ it can read the ...
Ade Dyas's user avatar
0 votes
1 answer
516 views

Flutter IOS app doesn't receive shared pdf

I have a Flutter application and i implemented the package receive_sharing_intent in order to receive shared pdf files in the app. It works perfect in Android. The problem comes in IOS. When i try to ...
Jhonatan's user avatar
  • 164
2 votes
0 answers
138 views

PDF not loading in WKWebview in Mac-Catalyst (Sonoma 14.0)

In my application, we load pdf in WKWebView. In macOS 13 it's working fine, but when I update to macOS 14.0 then after it displays a white screen. Here is my code: var pdfData: Data? = nil do{ ...
Jones's user avatar
  • 31
0 votes
1 answer
176 views

PDFKit: Page Indicator Not Showing When Scrolling Multi-Page PDF in iOS

I am using PDFKit to display PDF documents in my iOS application. The page indicator is not showing when I scroll through multi-page PDFs, like with pdf in Files for example (see attachment) Didn't ...
Daniel Frost's user avatar
0 votes
1 answer
72 views

Problems with creating image or pdf from grouped table in swift?

I created UITableView with "Inset Grouped" style. I also applied shadow to tableView.layer (cell sections are shadowed). For example I use code from here: How to render a whole UITableView ...
Gargo's user avatar
  • 1,374
0 votes
1 answer
458 views

Why does flutter crash when I try to open a previously created pdf?

I'm trying to make an application to create a PDF. Using 3 libraries on flutter: pdf 3.10.3, path_provider 2.0.15, open_document 1.0.6+2. The code will be just below. The bottom line is that ...
InPivko's user avatar
0 votes
1 answer
191 views

Can we get click or tap event and change color of PDFAnnotation with having image on it

I am trying to add pdfannotation inside pdfview with image only, where I need tap event of that particular iamge annotation that I have added. Can anyone suggest any way to achieve this. because I ...
user avatar
0 votes
1 answer
894 views

SwiftUI: How to display a PDF file and then change it to a different file?

I have this code that displays a PDF, and the PDF loads fine. However, I've added a toolbar button to change the PDF to a different file, but it doesn't work. I don't get any error messages, but the ...
Daniel Silveira's user avatar
1 vote
1 answer
872 views

How to SwiftUI lengthy view convert into PDF with multiple pages in SwiftUI iOS?

I want to create a PDF with multiple pages if the swiftUI view content height is more than 1500 on iPAD. The multiple solutions on Google that I've tried did not work. I need to convert my whole ...
Siddharth Modi's user avatar
0 votes
1 answer
369 views

How to create a PDF page with Transparent background?

Here's the sample code used to create PDF data and then save it to the documents directory: Here the "self" is nothing but UIView self.isOpaque = false self.backgroundColor = UIColor.clear ...
Raj Kiran's user avatar
  • 161
0 votes
1 answer
1k views

Export SwiftUI view to a PDF

I have problems to export my WorkListView to a PDF. Here is a simple example of my code: ClientData class Client: ObservableObject, Identifiable { let name = "Foo&...
Emil's user avatar
  • 61
1 vote
0 answers
80 views

iOS PDFKit Cryptograhpic Signature

How can you cryptographically sign (ECDSA) a PDF on iOS with Apple's PDFKit and save it in the PDF file? From the framework intro one would expect to find most of the PDF spec features implemented, ...
shutteltje's user avatar
1 vote
0 answers
807 views

Opening docx and pdf documents in react native

Faced a number of problems opening documents in a mobile application. We have 2 types of PDF and DOCX documents available. There are no packages to open Docx for react native. In order to open a pdf, ...
Adam's user avatar
  • 11
1 vote
1 answer
204 views

Attempt to Display Local PDF With WKWebView Results in White Screen

I have a PDF file stored in my local applications directory. I wrote the following code years ago to display the pdf in a webView. It has worked flawlessly, but no longer works. It instead displays a ...
JeffB6688's user avatar
  • 3,880
0 votes
1 answer
869 views

Local PDF not loading iOS react native pdf

I want to load my local PDF in PDF view so i am using this plugin for that https://www.npmjs.com/package/react-native-pdf So below is my code let finalURL = require('../../html/html/pdf/VIVJOA-Full-...
Harshal Kalavadiya's user avatar
0 votes
0 answers
42 views

N replaced by ! on ios Using itext pdf in java

N replaced by ! on ios using itext pdf in java while sending it on android and desktops it works fine but when sending the pdf on ios n gets replaced. <dependency> <groupId>com....
viral's user avatar
  • 1
1 vote
0 answers
167 views

How open a link in a PDF in flutter application?

I am using the PDFx package to display PDFs on flutter application. However, the links embedded in this PDF are not clickable. How is it possible to make these links clickable an open it in external ...
Dev Loots's user avatar
  • 838
0 votes
0 answers
161 views

Is there a correct way to tint PDF icons for iOS?

I'm a UX designer - so bear with me. We have an issue where we want to use PDF files as icons for our iOS app. This works fine if we were to only use them in one color. However we have situations ...
Ostepop's user avatar
3 votes
0 answers
146 views

Unable to move annotation with PDFKit

By following this reference - https://developer.apple.com/documentation/pdfkit/pdfannotation/2869800-isreadonly I am able to edit text of the annotation but i am unable to move the annotation over the ...
nisha parmanandani's user avatar
0 votes
3 answers
343 views

How to find and highlight a string in a pdf displayed in a WKWebView?

I have an iOS app where I can display html and pdf-files. I try to implement a find-in-page functionality which is available since iOS14 (find(_:configuration:completionHandler:)). Here is my ...
Clemens's user avatar
0 votes
1 answer
721 views

How to download PDF using URL in iOS app multiple times

I am getting getting multiple PDF urls from server response and showing them in tableview with download option for each cell. I am able to download each pdf file only once, But, Tried to second time ...
Anilkumar iOS Developer's user avatar
0 votes
1 answer
154 views

Generating a pdf and attaching to email in swift Xcode 13

I am hoping someone can help me with an issue I am having. what I am doing is generating a pdf in my app using simplePdf Cocapod. https://cocoapods.org/pods/SimplePDF . This works fine and I can ...
Fishfood96's user avatar
0 votes
1 answer
202 views

Creating Pdf from a button iOS swift 5 using SimplePdfBuilder or similar tool

I am trying to implement a pdf create a button to create a pdf view which can then be shared in the app. I am struggling to get the pdf working. I am trying to use SimplePDFBuilder from cocapods. I'm ...
Fishfood96's user avatar
3 votes
1 answer
3k views

Open PDF In SwiftUI

I am making PDF using TPPDF library. This makes the PDF fine and returns a URL which is like this: pdfURL = file:///Users/taimoorarif/Library/Developer/CoreSimulator/Devices/8A2723A7-DD69-4551-A297-...
Taimoor Arif's user avatar
  • 1,190
0 votes
0 answers
418 views

Malayalam font is not rendering when creating pdf in flutter

I am using Malayalam custom font in my flutter project and it is rendering in android and iOS is fine. But when we try to create a pdf it will not showing the Malayalam content and showing the ...
Shemeer 's user avatar
0 votes
2 answers
678 views

Convert PDF To Base64 in SwiftUI

I am fetching PDF data. It provides me URL, and when I am converting it to base64. This is what I am getting: The file “file.pdf” couldn’t be opened because you don’t have permission to view it. I ...
Taimoor Arif's user avatar
  • 1,190
1 vote
1 answer
1k views

Resize and Rotate image Annotation added in pdf

Using this Link I have added signature image annotation in PDF file But i could not find any guide for how to rotate and resize image annotation using the button added on top of annotation image like ...
user2201's user avatar
0 votes
0 answers
22 views

Determine the order of text/glyphs are highlighted in a PDF

I have an .xlsx table I convert to a PDF. However when selecting (highlighting) the text/glyph in the pdf rather than select (highlight) the content in order it would in excel (left to right - top to ...
RyanTCB's user avatar
  • 8,234
-1 votes
1 answer
48 views

How to Assign new name for every downloaded pdf from url in Objc

I have a code which download pdf from url..but every time I download url on button click it replace old pdf with new downloaded pdf with the same name. Here is my code: NSString *stringURL = @"...
Sarthak's user avatar
  • 29
0 votes
0 answers
471 views

Download Pdf from Url on button click In Objective-C

I have to download a pdf from url on a button click in Objective-C This is what I have done: - (IBAction)DownLoadPdfButton:(UIButton *)sender { NSString *currentURL = @"http://africau.edu/...
Sarthak's user avatar
  • 29
0 votes
1 answer
301 views

Unable to save pdf after signature

I am able to sign a pdf, But when I tried to saved it, Its not saving the updated pdf file. Code override func viewDidAppear(_ animated: Bool) { pdfContainerView.usePageViewController(true, ...
iDeveloper's user avatar
  • 2,444
0 votes
1 answer
325 views

Is There Any Solution To Check In PDFKIT That All Fields Of Pdf Form Are Filled Or Not?

Is there any way to find the current pdf content size. For example:- When user open the pdf file and fill some information in the pdf and click on submit button. Then how to check pdf content size ...
Aksh's user avatar
  • 1
2 votes
1 answer
334 views

Core Graphics' CGBlendModes seem (partially) not consistent with PDF specs

I am running into some weird behavior with CGBlendMode in Core Graphics. My understanding is that the first 16 blend modes (normal (0) to luminosity (15)) are based straight on the PDF specification ...
Céline's user avatar
  • 371
0 votes
0 answers
1k views

Inserting an Image into a PDF with Swift

I want insert company logo image into pdf of every page. So we are referring following site Tutorial Link I want to insert logo right bottom page of pdf, I am unable do to that process. Please find ...
karthikeyan's user avatar
  • 3,898
1 vote
1 answer
895 views

Cannot add image and save to pdf file using PDFKit

I have a class to edit pdf by inserting an image into the pdf and save a new pdf with the inserted image. Below code is the way I use to achieve the scenario, by creating a custom PDFAnnotation. I ...
SaintTail's user avatar
  • 6,470

1
2 3 4 5
33