VIETPDF KNOWLEDGE

How to keep leading zeros when converting PDF codes to Excel

Keep codes like 0012 as text. After converting a PDF to Excel with table OCR, compare the identifiers with the source, fix any misreads in the preview, and open the XLSX. Set the destination code column to text before importing or pasting.

Separate identifiers from values used in calculations

0012 can be a distinct identifier from 12 even though both represent the same number in arithmetic. Check the column heading and purpose first. For long codes, compare the character count and the last few digits.

For a row containing code 0012, quantity 12, and price 12.500, preserve the code as text. Convert quantities and prices to numbers only after checking the source’s separators.

Review the OCR cells before downloading

Switch to table OCR and find the worksheet. Fix 012 or O012 if the source says 0012. If a column has shifted, compare the neighboring cells to make sure a code still belongs to the right quantity.

VietPDF exports values entered in the preview as text. In Excel, look at the formula bar to check the stored value as well as the cell display.

Verify again after pasting or importing a CSV

Choose a text data type for the code column if the importer offers one. In the final file, look up a code with two leading zeros and compare the row count with the source.

References