How to Prevent Barcodes from Disappearing When Editing PDFs
Question details
The user needs a way to stop embedded barcodes from partially or completely disappearing when editing text fields in a converted PDF document.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Editing text fields or adding details to a converted PDF document that contains an embedded barcode.
- Observed behavior
- Parts of the embedded barcode disappear or render incorrectly during the editing process.
Before troubleshooting, check the original document to confirm whether the barcode is an image or a specialized font, and ensure you have the barcode font installed on your current device if applicable.
Flatten the PDF Document Before Editing
Converting the PDF into a flattened file turns elements like barcode fonts into static images, preventing them from altering or disappearing when other fields are edited.
Flattening is the most reliable way to preserve the visual appearance of complex elements like barcodes. When a PDF is flattened, all interactive layers, form fields, and fonts are merged into a single background image layer.
Launch your PDF editor and open the original PDF document containing the barcode.
Navigate to the 'Print' menu, usually found under 'File' > 'Print', or by pressing Ctrl+P on your keyboard.
In the printer selection dropdown, choose 'Print to PDF' or 'Save as PDF' instead of a physical printer.
Click 'Print' and choose a location to save the newly generated flat PDF to your device.
Open this flattened PDF to safely edit the remaining text fields or add new details without affecting the barcode.

Embed All Fonts When Creating the PDF
If the barcode relies on a custom font, failing to embed it during the initial file conversion can cause it to disappear later.
Edit PDFs Safely with WPS Office
WPS Office provides a robust PDF editor that handles custom fonts, interactive forms, and complex formatting with ease. You can securely edit text, flatten documents, and manage embedded fonts without breaking vital elements like barcodes.
- 1. Install WPS Office: Download and install WPS Office on your computer or mobile device.
- 2. Open the PDF: Launch the WPS PDF Editor and open your document containing the barcode.
- 3. Edit Text Securely: Navigate to the 'Edit' tab to add or modify text fields without disrupting the document's underlying structure.
- 4. Flatten if Necessary: If the barcode is unstable, use the 'Export to Picture' or 'Print to PDF' features in WPS to flatten the file and preserve barcode integrity.

Frequently Asked Questions
Why does my barcode look like random text when I click on it?
This usually happens when the barcode was generated using a specific barcode font that is not installed on your current device or wasn't fully embedded in the PDF. The PDF reader substitutes it with a default text font, revealing the underlying alphanumeric characters.
Can overprint settings cause parts of a PDF to disappear?
Yes. Overprint and transparency rendering settings can sometimes cause overlapping graphics or fonts to display incorrectly or vanish during editing. Changing your PDF reader's page display settings to simulate overprinting can help diagnose this.
Does flattening a PDF make it uneditable?
Flattening merges all interactive elements, layers, and fonts into a single image. While this protects elements like barcodes, it means you can no longer edit the existing text directly unless you use OCR (Optical Character Recognition) tools to extract the text again.
How do I check if my fonts are embedded in the PDF?
You can usually check font embedding status by opening the PDF, navigating to 'File' > 'Properties' (or 'Document Properties'), and selecting the 'Fonts' tab. This will list all fonts used in the document and indicate whether they are fully embedded or subsetted.




