Looks like nodes with rounded corners to me. To do a "proper" conversion rather than a reconstruction, you could convert the PDF to SVG and then TikZ can read SVG (or you can convert it to TikZ code via Inkscape). Search for SVG here.
–
Loop SpaceOct 8 '12 at 16:39

@AndrewStacey: I want the outlines, but not the text because I want to eventually write in new text into the keys. If I understand their website, they can use the pdf to make a custom keyboard.
–
Neil GOct 8 '12 at 17:05

1

As @AndrewStacey commented, define a node style with rounded corners and minimum size corresponding to the "square" keys. Allow for an option to change this minimum size to be able to generate the wider (and taller) keys. Then it is just a matter of coming up with a placement algorithm -- I'd probably do 5 separate \foreach loops: one for the top row, main keyboard, arrows, the insert/home keys above the arrow group, and the numerical keyboard. Hmm perhaps for the main keyboard it might be simpler to place each row separately.
–
Peter GrillOct 8 '12 at 18:26

If you want to reproduce it more accurately, convert to SVG and then overlay a tikz coordinate grid on top so you know where your nodes should be placed. Then on top you could add a white fill to eliminate the text and replace it with your own. Once you do this it won't be much work to draw the nodes as well and then you can eliminate the overlay step and will have duplicated the layout and have complete flexibility as to what text is placed on the keys. Now that I think about it a bit more I would do this step to help me get started.
–
Peter GrillOct 8 '12 at 18:28

1 Answer
1

You don't need to convert to SVG because you can use pdf and draw on it. Next code was taken from Caramdir's and Jake's answers to Drawing on an image with TikZ. (I use a pdfcroped WASD file because the original has a lot of white space around).