VPE Professional Question - PDF417 display

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPE Professional Question - PDF417 display

Postby Mark Powers » Wed Mar 29, 2023 9:16 pm

I am trying to build a FedEx shipping label that has a 2D barcode using PDF417. The label itself is rotated 90 degrees and printed at the bottom of the page. The problem I am having is that the PDF417 barcode doesn't seem to respect the fact that the rotation is rotated clockwise 90 degrees, because when the PDF417 code is displayed, it is not rotated like the rest of the label is. Been using VPE enhanced a long time, new to using the Professional version and 2D barcode. Not sure if there is something else I need to do to get the PDF417 barcode to rotate maybe? Any suggestions would be appreciated! Or else could it be a bug with PDF417?
Thanks
Mark
Mark Powers
 
Posts: 22
Joined: Fri Apr 28, 2006 4:24 pm

Re: VPE Professional Question - PDF417 display

Postby IDEAL Software Support » Mon Apr 03, 2023 6:27 pm

In contrast to 1D barcodes, 2D barcodes can not be rotated. I agree that this is not explicitly written in the documentation.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE Professional Question - PDF417 display

Postby Mark Powers » Mon Apr 03, 2023 6:41 pm

Thanks for the clarification!
Mark
Mark Powers
 
Posts: 22
Joined: Fri Apr 28, 2006 4:24 pm

Re: VPE Professional Question - PDF417 display

Postby IDEAL Software Support » Mon Apr 03, 2023 6:47 pm

A workaround would be to export the 2D barcode as bitmap (use 300 DPI resolution) and to import and rotate the bitmap.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE Professional Question - PDF417 display

Postby Mark Powers » Mon Apr 03, 2023 7:17 pm

Would the exporting the barcode to a bitmap be commands from within VPE? Trying to figure out how that works.
Mark
Mark Powers
 
Posts: 22
Joined: Fri Apr 28, 2006 4:24 pm

Re: VPE Professional Question - PDF417 display

Postby IDEAL Software Support » Tue Apr 04, 2023 7:21 am

Yes, you can export pages - or rectangular areas of a page - of a VPE document as bitmap file, using VPE.

For better performance, set PictureExportColorDepth = PICEXP_COLOR_MONO, which means black and white only. This is sufficient for barcodes.

Call SetPictureDefaultDPI(300, 300) to specify the resolution.

Best you export to PNG for lossless compression, see PictureExport(string FileName, long PageNo, VpeCoord Left, VpeCoord Top, VpeCoord Right, VpeCoord Bottom).
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE Professional Question - PDF417 display

Postby Mark Powers » Tue Apr 04, 2023 1:43 pm

Thanks! I'll give it a try.
Mark
Mark Powers
 
Posts: 22
Joined: Fri Apr 28, 2006 4:24 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests