Wikipedia:Graphics Lab/Resources/PDF conversion to SVG: Difference between revisions
Content deleted Content added
m →Basic navigation in Inkscape: typos |
→For interest: make the section about Images in PDFs into its own section, with recipe |
||
Line 43:
Some PDFs create very "bad" SVG files when converted automatically. A "bad" SVG can be identified because it will convert slowly (more than 5 seconds), it will be very large for an SVG (over 1MB) and it will render very slowly on WP - there is a long wait while the text and other images on the page are loaded, but the SVG image does not show up. Bad SVGs put a lot of strain on the Wiki servers. If you suspect you have a "bad" file, go to a Wikigraphist for a manual conversion. These will almost always be ''much'' better than the automated versions in terms of being smaller, better drawn and easier to translate because the text is created properly.
===Images in PDFs===
This is excellent if the PDF has vector graphics, but not so useful if it has a photograph or [[raster graphics]] inside.
You can tell that a graphic is a raster image in Inkscape 0.47 if after selecting the graphic and choosing Object > Ungroup, you cannot select individual elements. Also, when you click the graphic Inkscape's status bar will show "Image" and its context menu will have an Image Properties item.
If the raster graphic is the only element you want from the PDF, there is no point in saving the file as SVG—it isn't a Scalable Vector Graphic.
However, Inkscape can give you an exact lossless copy of the original image from the PDF at its original size in pixels. One way to do so is to use Extensions > Images > Extract Image... Another is to save as SVG, view the SVG in Firefox, right-click on the image in the SVG, choose View Image from the context menu, then use Firefox's File > Save As... to save the image as a [[PNG]] file.
===For interest===
Line 49 ⟶ 59:
*[[Wikipedia:Graphic Lab/Images to improve#Image:APISmap1.pdf]]
If you have comments about this tutorial or it doesn't work for you, please comment on the talk page.
▲It might be worth mentioning that this won't magically convert any [[raster graphics]] included in the document into [[vector graphics]]. This is excellent if the PDF has vector graphics, but not so useful if it has a photograph inside.
▲It can help you to extract the photo, but won't make it an SVG.
===Can you clarify what a "PDF map" is, for this purpose?===
|