Comments (3)
This seems to be related with this one.
I've changed changed the rotation code blocks with the following on PDFDocument
& TiledView
.
// Flip the context so that the PDF page is rendered right side up.
context.translateBy(x: 0.0, y: scaledPageRect.height)
context.scaleBy(x: 1.0, y: -1.0)
let transform = page.getDrawingTransform(CGPDFBox.mediaBox, rect: scaledPageRect, rotate: 0, preserveAspectRatio: true)
context.concatenate(transform)
These changes seems to fixed the issue in my case.
from ios-pdf-reader.
I had the same problem with a couple of PDFs there were created with an old version of Ghostscript (which had a documented bug).
The only way I found to overcome the problem has been to use a recent version of gs to re-save them, e.g. gs -sDEVICE=pdfwrite -oCorrect_PDF.pdf Problematic_PDF.pdf .
That said, I can't understand why Preview, iBooks and iOS 11 PDFKit (which I'd prefer not to use for my particular app because of the way the thumbnail bar behaves) all can correctly open the original PDFs.
from ios-pdf-reader.
@Alua-Kinzhebayeva Any solution for this?
from ios-pdf-reader.
Related Issues (20)
- Not building in Swift 4.2
- How to add pdf to UIView, not pushViewController? HOT 2
- Reason: image not found
- PDF anchor
- Draw lines on PDF file
- How to disable download / copy / print options dialog HOT 2
- How can i open web link in pdf viewer?
- Setting Header for remote url
- How to get last opened page HOT 1
- start page index from 1 not 0
- not support RTL and issue when tap to hide nav.
- isNavigationBarHidden in UITabBarController
- Flashing Links HOT 2
- When using CoreGraphics to draw in background thread memory usage of the app is getting very high until the App eventually crashes HOT 1
- Help - Share PDF other apps , with iOS9 HOT 1
- Newer version required Swift 5 HOT 3
- Some page of PDF render incompleted
- iOS9 cpu 100% HOT 6
- How can i display base64 string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-pdf-reader.