Coder Social home page Coder Social logo

Comments (6)

skela avatar skela commented on June 24, 2024

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.

trailblazr avatar trailblazr commented on June 24, 2024

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.

trailblazr avatar trailblazr commented on June 24, 2024

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.

skela avatar skela commented on June 24, 2024

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.

trailblazr avatar trailblazr commented on June 24, 2024

@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.

trailblazr avatar trailblazr commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.