What are vector graphics?
Vector graphics describe shapes as lines, curves and fills defined by coordinates, rather than as a grid of coloured pixels. Because the shapes are calculated each time they are drawn, they stay perfectly sharp at any zoom level or print size. Text in a PDF is drawn in the same way, using font outlines. Raster images, by contrast, have a fixed number of pixels.
Vector and raster in one file
A PDF can mix both kinds of content on the same page. Logos, charts, diagrams and text from design or office programs are usually vectors. Photos and scanned pages are raster images, made of pixels at a fixed resolution. When you zoom in, vectors keep clean edges while raster images eventually become blocky. This is why a scanned page looks soft at high zoom while an exported report stays crisp. A single page can contain a vector chart next to a raster photo, and each behaves in its own way.
File size and compression
Vector content is often very compact, because a few numbers describe a whole shape. Raster images grow with their resolution and colour depth, so they usually make up most of a PDF's size. Image compression and lowering the DPI therefore shrink photos and scans, but have little effect on vector drawings and text, which are left as they are.
Converting pages to images
Turning a PDF page into a JPG or PNG rasterises it: every vector shape and letter is drawn into pixels at the chosen resolution. The image no longer scales without loss, and its text can no longer be selected. For printing or detailed viewing, choose a higher resolution, such as about 200 DPI, when converting pages to images.
Tools that use this
Guides that put it into practice
Common questions
- How can I tell if part of a page is a vector?
- Zoom in strongly. Vector shapes and real text keep sharp edges, while raster images become blurry or show individual pixels.
- Does compressing a PDF affect vector graphics?
- Very little. Compression mainly targets embedded images; vector shapes are already small and stay sharp.
- Why did my logo look blurry after converting the PDF to JPG?
- The logo was rasterised at a fixed resolution. Convert again at a higher DPI to keep more detail in the image.