mapbox / mapbox/maki

Support PDFs for iOS, OS X, etc.

Open
#268 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
1.6k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

Would it be within the scope of this project to provide bundles of PDFs for use in iOS and Mac applications?

PDF is the vector artwork format of choice on Apple platforms. Developers typically place these assets in an asset catalog, which gets compiled down to a single, compact binary file at build time. On OS X, it’s also common to have standalone PDFs in resource folders in the build product.

Depending on the situation, a developer might represent a single image with different PDFs at different resolutions, a single PDF for all resolutions, or a PDF with overrides for specific resolutions. Silhouette-style images like those in this project are typically rendered in black; the platform’s UI toolkit takes care of colorizing template images.

For an internal testbed application, I’ve been using this shell script to transform Maki icons into PDFs using Inkscape:

find * -name "*-24.svg" -exec inkscape /path/to/src/{} --export-pdf=/path/to/maki/.../{}
for f in `ls /path/to/maki/*-24.svg.pdf`; do mv $f ${f/-24.svg/}; done

/ref #247
/cc @samanpwbb @friedbunny @zugaldia

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Confirm the scope against issue #247 and inspect the existing SVG icon assets alongside the proposed Inkscape shell command. Done would require an agreed output format and reproducible generation process for iOS and OS X PDF bundles; this issue names no implementation files or acceptance tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.