Set up Photoshop
- Extract
Pinas_Print_PVC_ID_Photoshop_Actions.zip. KeepPinas_Print_PVC_Sheet_Engine.jsxincbeside the two JSX scripts. - In Photoshop desktop, open File → Scripts → Browse and select
Pinas_Print_Merge_PVC_CSV.jsx. Use this script to create templates, preview IDs, run preflight, or export a batch. - To assemble sheets from saved artwork, run
Pinas_Print_Build_PVC_Sheets.jsxfrom the same menu.
For manual artwork, open Window → Actions, choose Load Actions from the panel menu, and select Pinas_Print_PVC_ID_Actions.atn. Actions 01 and 02 make blank front and back canvases. Action 03 makes a blank sheet with slot guides.
Prepare the templates
Run the merge script and choose Create editable starter templates. Open PVC_Merge_front.psd and PVC_Merge_back.psd, customize the artwork, and save your changes.
Name the PSD layers
| Layer name | What it does |
|---|---|
csv:full_name | Replaces the contents of an editable text layer with the mapped name. |
label:lrn | Keeps a static caption visible only when the mapped LRN has a value. |
photo:photo_filename | Uses the bounds of a visible, solid rectangle to center-crop the portrait. A blank photo value leaves the placeholder visible. |
csv:full_name@7 | Sets a 7 pt font minimum. Drag out paragraph text with the Type tool to give the field its own box. |
To add a field, add the CSV column and the matching tagged layer. To remove it from one side, delete the tagged value layer and any caption on that side. If neither side uses the optional field, leave its column blank or remove it from the CSV.
Prepare and map the CSV
Save the spreadsheet as CSV UTF-8 (Comma delimited). Format IDs and phone numbers as Text before entering them to retain leading zeros. Every record needs a unique card ID and a full name. Card IDs can contain letters, numbers, hyphens, and underscores, and must start with a letter or number.
card_id,full_name,role,photo_filename
SAMPLE-001,Ana Villanueva,Dispatch,sample_portrait.png
SAMPLE-002,Nico Reyes,Design,
Starter templates also support organization, lrn, emergency_contact_person, emergency_contact_number, sss, philhealth, and tin. For portraits, enter filenames with a JPG, PNG, or TIFF extension and select their folder when prompted.
Map a customer’s column names
After choosing the CSV and both PSDs, select a template field in the mapping list and choose its source column. Map card_id and full_name before continuing. Leave unused optional fields Unmapped.
| Template field | Example customer header |
|---|---|
card_id | Student Number |
full_name | Student Name |
emergency_contact_number | Emergency Contact No. |
Use Save mapping preset for repeat orders and Load mapping preset on the next batch. Presets match column names even when their order changes. Remap any headers the customer renamed.
Preview and preflight
- Preview one ID (front and back) opens both sides as unsaved Photoshop tabs. Select a record or choose Select longest name to inspect text fit, crop, and trim.
- Preflight all IDs checks both sides of every record for text-fit and portrait problems. The report lists the record, side, and field. Select an issue and choose Preview selected ID to see the affected card.
The merge can shrink text within the trim area and, for paragraph text, within its box. Without an explicit @ minimum, the floor is 6 pt or the original size if smaller. Paragraph text may shrink to satisfy a conservative width check even when the content could wrap. Keep neighboring fields in separate boxes and review legibility before printing.
Build and print sheets
- In the merge script, choose Merge CSV and build print sheets. Select the CSV and templates, confirm mapping, and select the portrait folder if prompted.
- Choose the layout and optional trim marks. Review the sheet count, click Merge and build sheets, and select an output folder.
- Open the layered sheet PSDs in
Print_Sheets. The editable_front.psdand_back.psdpairs are inCards.
| Layout | Capacity and placement |
|---|---|
| Side-by-side | Up to five IDs per sheet. Each row has the front on the left and the back on the right. |
| Separate fronts and backs | Up to ten IDs per two-sheet set. Back slots swap columns for a left-to-right flip. |
Both layouts use 200 × 300 mm portrait sheets at 300 PPI and rotate the backs 180° relative to the fronts. To rebuild sheets from existing PSD pairs, run the standalone sheet builder on Cards. It also offers One sheet - select up to 5 IDs for manual selection.
Print at Actual Size / 100%. Set the printer paper size to 200 × 300 mm and turn off fit-to-page and borderless expansion. Print a test set to verify orientation and front/back registration before running the batch.
Troubleshooting
Photoshop shows a JSX syntax error
Extract the latest ZIP and run the JSX through File → Scripts → Browse. Record the exact error number, line number, and script filename if it recurs.
A PSD fails template validation
Compare the values in the error dialog with the required 661 × 1039 px, 300 PPI, 8-bit RGB format. Use fresh starter templates to verify the setup.
A field or portrait is missing
Check its PSD layer tag, the CSV mapping, and the value in that record. For a portrait, confirm the full filename and extension and select the folder that contains it.
A long name still fails preflight
Widen the paragraph text box, adjust its position, or use a font that fits at the minimum size. Preview the flagged record again before exporting.
Card files were saved but sheet assembly stopped
Check the last reported sheet and the completed output count. If the card batch is complete, run the sheet builder again on the Cards folder. Confirm the .jsxinc file is beside the builder.