Comments (6)
I generate PDFs using Inkscape via Print File and I can tell you I have no problems with this library to show transparency. Did you make sure the ImageView you stick the PDF image into has a clear background?
from uiimage-pdf.
Yep, basically applied opaque = NO and applied renderingmodeOriginal to the UIImage and backgroundColor = [UIColor clearColor] to the UIImageView, no change in result yet. I will try the "Print from Inkscape" process... thx for that hint. I will report as soon as I have a result.
from uiimage-pdf.
Okay, I tried to fix my issue… and finally succeeded… but it is a PITA in the process. I had to reopen (aka import) every "Saved as..."-EPS-File from Photoshop (PDF-Files did not work because InkScape could not ungroup the icon-vector-shape from the white background there) in InkScape. Manually ungroup the vector shape from the background (white box), then remove the background, then "Print as File..." from InkScape to the volume again. This removed the white box and really optimized the pdf to a very small size. I will try to document this process soon in my blog and then put a last comment on this issue to close it.
As said... it is a clumsy process, that makes keeping exporting 3 different PNG's rather fine if those 3 different sizes were okay for you. I needed more than 3, so it is economically worth it and saves some binary bytes in the deployed app in the end.
Cheers, all.
from uiimage-pdf.
Sorry to hear that, but it certainly seems like your having a problem with your tools there ;) I've got 1 PDF that I can scale up and down without any issues, and this library works well for that, best one I've seen (Although I wish I could use SVG files directly (But all the svg libraries out there are horrible)).
from uiimage-pdf.
@skela Yep, without a doubt it is a really nice and clean Category. I love to use it and now it works great. It opens up new possibilities to auto adjust icons depending on the device orientation and the device resolution which is a great thing. I am really happy I found this piece of art here. It helps with the transition to the new way of iOS fragmentation-space made up by lots of different screen-scales and screen-sizes now.
from uiimage-pdf.
I actually wrote down my experiences and a short How-to how I fixed the alpha blending / transparency issue in a blogpost.
See here for more: http://www.thetawelle.de/?p=4234
from uiimage-pdf.
Related Issues (20)
- Invalid context HOT 6
- Crashes on CGContextDrawPDFPage( ctx, page1 ); HOT 11
- Interesting lib! Can you do the same with SVG assets? HOT 1
- PDF images are displayed upside down HOT 5
- Importing wrong headers HOT 1
- Cache key HOT 1
- Change PDF clear background to white as default HOT 1
- Documentation lacking
- Suggestions for setting image in button
- Image scaling and rotation issues. HOT 22
- My PDF images are no longer resized
- PDF size increases but image doesn't HOT 1
- Ability to include annotations present in a PDF in the output image
- bixolon
- Please release a new Cocoapods version
- Saving UIImage generated from PDF and that image getting blank after previewing in Photos after tapping on Image
- Add to `pod` dependency manager
- Updates for Swift 3 compatibility? .image property breaks all over HOT 1
- Can CocoaPods be supported?
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 uiimage-pdf.