How to Fix a Barcode Turning Red and Black in a PDF
Question details
The user needs to resolve an issue where a black-and-white 2D barcode changes colors during PDF export or placement.

- Product
- PDF Editor / Creator
- Device & OS
- not provided
- Scenario
- Exporting a document containing a 2D barcode to a PDF or placing a barcode image into a PDF file.
- Observed behavior
- The originally black-and-white 2D barcode unexpectedly displays as red and black in the final PDF due to color conversions, spot colors, or profile mismatches.
Ensure you have the original barcode image file and access to the color management and export settings of the software you are using to create the PDF.
Adjust Color Management and Export Settings
Modify the PDF export presets and color profiles to prevent the design software from converting black pixels into mixed RGB or CMYK values.
When exporting documents to PDF, default color conversions can misinterpret pure black pixels, especially if spot colors or transparency effects are present. Forcing a monochrome or black-only output prevents these unwanted red and black shifts.
Open your software's color management settings and ensure the color profiles match exactly between the source file and the destination PDF export settings.
Check your document's color swatches. Convert any spot colors applied to the barcode into standard process black, and remove any embedded color profiles that conflict with the output.
Navigate to 'File' > 'Export' (or 'Save As' PDF) and choose a 'monochrome', 'grayscale', or 'black-only' preset in the color output tab.

Use a Strict Monochrome Image Format
Convert and save the original barcode as a 1-bit monochrome image before placing it into the document to lock its color values.
Create and Manage Standardized PDFs with WPS Office
WPS Office provides robust PDF creation and conversion tools that ensure your documents, including embedded images and barcodes, are exported accurately without unexpected color shifts.
- 1. Open your document: Launch WPS Writer, Presentation, or Spreadsheet and open the document containing your barcode.
- 2. Insert the barcode image: Navigate to the 'Insert' tab, click 'Pictures', and select your monochrome barcode image to add it to the page.
- 3. Export to PDF: Click 'Menu' in the top left corner, select 'Export to PDF', and choose your preferred standard export quality.
- 4. Verify the result: Open the newly created PDF in WPS PDF Reader to confirm the barcode displays perfectly in black and white.

Frequently Asked Questions
Why does my black-and-white barcode turn red when saved as a PDF?
This typically occurs due to mismatched color profiles during export, such as improper conversion from RGB to CMYK. It can also happen if spot colors, embedded color profiles, or transparency settings in the design software alter the pure black pixels.
What is the best image format for inserting a barcode into a PDF?
Monochrome PNG or TIFF formats are highly recommended. Because they use pure black and white (1-bit) pixels, they eliminate the risk of unwanted color shifts when the document is processed and exported to a PDF.
How can I verify my barcode will scan correctly after exporting to PDF?
Always perform a test print of the final PDF using a standard printer. You can then use a smartphone scanner app or a dedicated barcode scanner on the printed page to ensure it is fully readable and formatted correctly.




