Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJames Ingmire
11,901 PointsQuickest way to export pdf into slices ready for use inside html document? Any ideas..
Hi, just wondering does any one know what is the fastest method to export a pdf document into slices and export to single sliced images. I have a pdf image but need some pictures logos etc to be used inside the html doc, can someone explain the best way to do this. I am using illustrator cc
1 Answer
CJ Williams
34,372 PointsThere are a couple ways to approach this.
One way would be to create multiple artboards for each graphic to be exported, then rename each artboard accordingly. Once, everything is in place, you can then File > Export. Save File As PNG and make sure that the Use Artboards checkbox is checked.
The other way would be to select each item individually, then Object (alt+O) > Slice (alt+S) > Create from Selection (alt+S). This will give you a more traditional slicing approach to the elements that you are slicing. From here you can use your slice selection tool to pick the slices that you want to save, then File > Save for Web. in the Save for Web dialog box, use your slice selection tool to name, tag and set up matte options for each slice. Before saving make sure that you have all of your desired slices selected, and that Selected Slices is selcted in the Export dropdown.
Try both ways and see which suits your workflow best.
Cheers, CJ
Naomi Freeman
Treehouse Guest TeacherNaomi Freeman
Treehouse Guest TeacherI'm not strong with design tools. My personal preference would be to do it in Photoshop. Then you can select an area and right click - layer via cut. Then unview the rest of the document and save that.
You can do it for each piece, and it'll keep them in the locations you need them to be.