Addbarcode Functionallity


Addbarcode Functionallity

Postby peter_h on Mon Sep 17, 2007 2:16 pm

Hello,

i have tested the "AddBarcode" Function with aspEasy PDF (prof) and got following error (with the Adobe Reader), when i opened the created pdf:

During reading this document, there was an error (109).

Here is my code (Navision C/AL is similar to pascal)
(PDF is defined as Automation Controller
xPos, xPos, Height are defined as double)
...
Function StampPDF(Filename2 : Text[250];Barcode : Code[20])

IF NOT FILE.EXISTS(Filename2) THEN
EXIT;

IF ISCLEAR(PDF) THEN
CREATE(PDF); //Make Instance

PDF.Create;
PDF.AddPDF(Filename2,0,0,''); //import an existing PDF
WHILE FILE.EXISTS(Filename2) DO //try to delete the sourcefile
IF FILE.ERASE(Filename2) THEN;
xPos := PDF.cnvUnitmm(10);
yPos := PDF.cnvUnitmm(10);
Height := 50;
PDF.AddBarCode(xPos,yPos,Height,20,Barcode);
PDF.Save(Filename2); //Save with original Filename

CLEAR(PDF); //Release the instance
...

Any idea?

The created PDF has the double size of the source file. Ok??

Best regards

Peter Haider
peter_h
 
Posts: 10
Joined: Thu Sep 04, 2003 9:52 pm
Location: Austria

Return to PDF

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Fatal error: Not able to open ./cache/data_global.php in D:\Hosting\6480136\html\ForosBB3\includes\acm\acm_file.php on line 106