How to export all layers in PSD file to vector PDF for using asset catalog in Xcode 6

As far as I know, Apple has a new approach to imaging 3 images in PDF format. I have a PSD file (with multiple layers for many icons) and now I want to export all layers as a vector pdf to use the asset catalog. I also refer to this tutorial, but I do not understand how to do this for step 1. http://martiancraft.com/blog/2014/09/vector-images-xcode6/

How can i do this? Please give some solution for this. Thanks in advance.

+3


source to share


1 answer


You can use vectorized PDFs in Xcode in 1x slot.

When you compile your project, Xcode will automatically generate PNG files for each required resolution (1x, 2x, and 3x). (Your final project will not have a PDF file)

To use this feature, you need to have a vectorized image (SVG, EPS or AI) and print them in vector PDF format. (PSD is not a vectorized format)



I usually use SVG files and I print to Vectorized PDF with this page http://www.fileformat.info/convert/image/svg2pdf.htm

If you have a PSD file, you can save your layers as PNGs at 3x resolution and place each PNG in a 3x slot. When you do this, Xcode will automatically generate 1x and 2x images, resizing the image to 3x.

Hope it helps

+1


source







All Articles