Home > vector > Using "vector-like" raster images in PDF documents

Using "vector-like" raster images in PDF documents

January 28Hits:0
Advertisement

I'm in the process of producing QR-codes for use on product packaging. The codes are generated in batch and the resulting files are typically 25x25 px PNG files. Of course, such a small image would normally be way too low res to use in print, i.e. a 1x1 inch image would need to be 300x300 px in order to print in 300 DPI.

When it comes to simple images such as QR-codes (I guess this would also apply to bar codes without the digits) I realized that the actual resolution of the image is not really relevant, as I can easily resize the image to any size I prefer using nearest-neighbor resizing option in Photoshop. In a way, the resulting 250x250 px image won't contain any more information in terms of "QR pixels" than the 25x25 px version, apart from the obvious fact that the file will be larger in size. Also, when resizing to a width not evenly divisible by 25 (e.g. 70x70) the resulting QR pixels will not all be the exact same width.

This has got me thinking I can simply place the 25x25 px PNG in my InDesign layout, which will in turn be exported to PDF and sent to print. This seems to work out fine when I print the file on my printer, but on screen the image sometimes looks blurred (as you would expect with it being magnified). I have found that the blurring effect stems from the anti-aliasing setting in my PDF viewer, so there is obviously no information about resizing/anti-aliasing embedded in the PDF file, while the printer will resize the image without anti-aliasing (i.e. using nearest neighbor).

Finally, the question: Is there any obvious downside to using this method? Is it safe to assume that the 25x25 px image in my PDF document will be upscaled without anti-aliasing when I send it to the printing office? Would I be better of just manually upscaling it or converting it to a true vector format?

Bonus question: is there a better term for what I am referring to as vector-like in the title/question, that is the concept of a bitmap/raster image being upscaled without loss of quality?

Answers

Never rely on any print provider to do anything other than spit out your file as it currently exists. I would never trust that something will be output in a specific manner to ensure it is as I expect. If you have to provide instructions or notes on how to output, then it's a recipe for error. If you place a 25ppi image in Indesign it never gets "upsampled" when generating a PDF. It is output at 25ppi.

For codes, bar codes, QRT codes, etc their are only 2 acceptable solutions....

  1. Use a true vector code. There are dozens of barcode/QRcode generators which generate EPS, SVG, or EMF files. This is what you should use. If you're generator can not create these formats, find another code generator.
  2. If you must use a raster image, then it needs to be larger than what will be produced. So for a 70x70 pixel code, you need a 290x290 pixel native image. That is to say, an original image which is 290x290, not a resized image you created. Then you could place and reduce it to 70x70 pixels in Indesign. Which will essentially increase the DPI upon output. Although, I still feel like #1 is always the better option.

Codes need to be precise. There's no wiggle room to just get it "looking good". A scanner may not read it properly if it's even the slightest bit incorrect.

As for the better term.... vector-like is really non-sensical. Something is either vector or it's not. I'd refer to it as simply non-anti-aliased raster art.

You're simply resizing a raster image without any interpolation. Another way to put it is that you are 'stretching the pixels'.

Not sure what the better term is, but 'vector' doesn't make much sense in this context.

As for your workflow, it makes sense. In theory, you should be able to stretch the image to any size you want in your page layout software and it will remain crisp and sharp, just larger.

The anti-aliasing does seem like an issue, though and one I'd bring up with your printer. Typically, printers will want you to create the PDF using a particular set of settings, so this is a question you should run by them.

The case of QR codes is diferent than barcodes, becouse the barcodes have diferent widht and spaces within bars.

In the case of QR codes the reason to have a 25x25 pixels is that you should have either a perfect little square white or blak. No smoothing of any kind.

Of course there are diferent versions of QR codes, for example 73x73. Again this is verey specific.

In this cases i would use a monocromathic file. That is 1 bit image. Not a grayscale one.

You can print for example a 2400ppi monocromathic image and you will control each laser dot in the film or plate printer.

I would NEVER use a 300 ppi grayscale image becouse this will be converted into patterns.

Here is a comparation betwen a typography on a grayscale 300ppi file and a vector one but the result is exactly* the same as using a 2400ppi monochromatic image. (My output was a 2400 resolution film)

Using "vector-like" raster images in PDF documents

I am 99% sure that you can use your 25x25 pixel file in a monocromathic file and you will not have any pattern. I'm not 100% sure becouse probably people have some strange settings somewhere. So I would make a film test that is verey cheap, and confirm it.

If you can find a way to get a QR code as a vector (SVG, EPS, PDF etc), that’s a good way to go. If you can’t, there is an easy way to enlarge the image without adding any blurring.

Scaling using Nearest Neighbour

If you'd like a sharp, large image for the QR code, you can simply resize the image in Photoshop to an exact integer multiple (200%, 300%, 400% etc) and use the Nearest Neighbour scaling.

Using "vector-like" raster images in PDF documents

Scaling by 1000% using nearest neighbour will turn each pixel in the document into a perfect 10×10 pixel grid. It’ll make the file bigger in terms of pixels and space taken up on disk, but it will also ensure interpolation done by the RIP in the printer is unlikely to add any visible blurring to the edges (if it does, scale up again using nearest neighbour to an exact multiple of 100%).

This method is also good if you want to include screenshots from computers in printed material.

Related Articles

  • Using "vector-like" raster images in PDF documents

    Using "vector-like" raster images in PDF documentsJanuary 28

    I'm in the process of producing QR-codes for use on product packaging. The codes are generated in batch and the resulting files are typically 25x25 px PNG files. Of course, such a small image would normally be way too low res to use in print, i.e. a

  • Is it possible to render a large number of shapefiles to a pdf document using Python?November 12

    I'm extremely new to GIS, and recently made a map by loading a bunch of shapefiles into QGIS using a python script. However, it took 15 mins to scroll in or out on the image, and the pdf export crashed the program (I attribute both to the number of s

  • Embedded Code in PDF DocumentsJanuary 15

    I've been reading about this google/china episode and and it seems that one of the attack vectors used was embedding code (javascript I believe) into PDF documents. This has me worried, I surely don't want any PDF documents executing code on my machi

  • How can I sign a PDF document quickly and cheaply?

    How can I sign a PDF document quickly and cheaply?May 3

    I need to sign a PDF document. However, Adobe Reader does not let me sign documents. I just need to sign the document, not edit it. Do I need to buy the full Acrobat software? Or is there a better, simpler way? --------------Solutions------------- An

  • Unsearchable, uncopiable PDF documentJuly 18

    I have a PDF document which, for some reason, I can't copy and paste or search in. The PDF is a text-based and not image file. When I try to copy and paste the text into Microsoft Word or GNU Emacs, I get a lot of small boxes in place of the letters.

  • Getting the word count of a pdf document in Evince

    Getting the word count of a pdf document in EvinceNovember 8

    Is there any way I can get the word count of a PDF document that I'm viewing in Evince, Ubuntu's default pdf viewer? I'm able to convert the documents to text files and get the word count from the terminal, but I'd quite like to be able to quickly ge

  • How can I get vectorized text when exporting to pdf?

    How can I get vectorized text when exporting to pdf?June 20

    Consider this code: data = Table[Sin[j^2 + i], {i, 0, Pi, Pi/3}, {j, 0, Pi, Pi/3}]; p1 = Graphics[Raster[data], Frame -> True, FrameStyle -> Large, ImageSize -> 300]; p2 = ListDensityPlot[data, InterpolationOrder -> 0, ColorFunction -> &quo

  • Printing a transparent PDF document with alpha channel results in artifacts on the photo

    Printing a transparent PDF document with alpha channel results in artifacts on the photoJanuary 29

    Me and my friend are kinda struggling a lot. We have a "overlay" PDF file containing a PNG bitmap image (no vectors). We use this PDF for automatic montages in PDFlib together with generic photos to create another print PDF. This PDF is printed

  • Separating images from text in a scanned PDF documentSeptember 11

    Regular PDF files consist of vector elements, such as text and vector graphics, and other embedded data, such as image files. Extracting the latter is quite easy with utilities such as pdfimages (as described in this Q&A). On the other hand, scanned

  • Software to easily add an image to a PDF document

    Software to easily add an image to a PDF documentSeptember 9

    I frequently find myself receiving PDF documents (often badly scanned/faxed contracts) that require my signature. I want to be able to take these PDFs (again, scanned-as-image) and insert an image into them, and then send them back, rather than the p

  • Compress a PDF Document? May 1

    I have a PDF file I'm creating from a Word 2007 DOCX file, using the program FoxIt PDF Creator. The document itself looks great, but the generated PDF is about twice as large as I've seen other converters create from that same source document. Is the

  • What's a good way for organizing PDF documents on Windows?

    What's a good way for organizing PDF documents on Windows? September 18

    I'm looking for a good way to manage a lot of PDF documents (e.g. papers, ebooks) on Windows. Ideally I'm looking for a Windows version of the great Mac app Yep. I've looked quite a bit and haven't found any Windows apps that provide an organized ove

  • Creating PDF DocumentsSeptember 21

    When creating PDF documents a friend of mine told me that doing a "Save As" is generally a better way to create a PDF doc, the way that I generally created them was through the "Print to PDF" option in most software. Aren't both ways t

  • Finding duplicate pages in pdf documentSeptember 26

    I have a pdf document that was created by concatenation of (a huge number) of little documents. For example, 1.pdf, 2.pdf and 3.pdf. The problem is that the last page of 1.pdf is also the first page of 2.pdf, and the past page of 2.pdf is also the fi

  • Ubuntu 8.04: convert PDF document to one JPG per pageOctober 18

    I want to convert a PDF document that spans multiple pages to 1 JPG per page. How can I do that? --------------Solutions------------- Assuming that imagemagick is installed: convert -quality 100 -density 600x600 multipage.pdf single%d.jpg The -densit

  • Valid links in PDF DocumentsOctober 21

    I am looking for a application which I can use to check my PDF documents that include links to ensure that they are still up-to-date? --------------Solutions------------- "ARTS PDF Linker automates the painstaking task of auditing links for validity.

  • Is there a way to unlock PDF documents?

    Is there a way to unlock PDF documents?November 23

    I realize most PDF documents are locked for a reason, but I spend several hours a week editing datasheets provided directly from my vendors to be sent to customers. Obviously it's very annoying and somewhat of a show-stopper when I download a datashe

  • Highlighting words in a pdf documentDecember 7

    I'm trying to highlight words in a pdf document. However, behind the words, there is written in big letters "DO NOT COPY" all throughout the document. Sometimes when I try to highlight words it is those big letters that will get selected instead

  • Cannot copy non-latin characters from PDF documentJanuary 7

    I have a pdf file which contains some non-latin european characters. If I copy some text with the highlight tool, and paste it into another program (word, notepad) - the 'special' characters do not transfer correctly (I get other odd characters in th

  • How to create PDF documents from my MS excel files?January 11

    How to create PDF documents from my MS excel files? Hi guys, I need to create PDF documents from my MS excel files. How do I do it? Anyone know how to convert word doc to pdf? Someone has given me a word doc in Thai language and wants to covert it to

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.447 s.