Datamatrix barcode field in PDF-templates, adjust size of datamatrix field

We now want to go productive with your pdf, fdf, bitmapping-software.
I got now the question from my pdf-specialists and I bet you to look at this situation:
When you open the fdf via Acrobat Reader then resulting PDF differs from the pdf
produced by the code below
tmp = PDFForm_MergeFDFIntoPDF("BXFFLL1-79578237.pdf","BXFFLL1-79578237.fdf", "BXFFLL1-79578237-01.pdf")
If tmp = 0 Then
Call Application.Echo(True, BSEname & " " & Pmr & ".pdf " & IIf(tmp = 0, "Fehler", "ok"))
Goto TryNext
End If

' that was your solution to avoid the "jumping" fields (when you enter)
tmp = PDFForm_RepairFormFonts("BXFFLL1-79578237-01.pdf", "BXFFLL1-79578237-02.pdf")
=======================================
Please use attached pdfform.dll file to overwrite old version of pdfform.dll file to try again, we hoping the new version of pdfform.dll file will work better for you.

VeryPDF
=======================================
with the new pdfform.dll the layout is ok !
Thanks for your (as always) straight and very good work.
The only thing is the following message when you open the resulting pdf.
If would be nice if you have a look at this.
=======================================
We are double checked the “BXFFLL1-79578237.pdf” file in your email carefully, we can view this PDF file without any problem in Adobe Acrobat 9 Pro Extended and Adobe Reader 8 applications, it doesn’t popup this error message at all, can you please let us know what version of Adobe Acrobat product are you using? How do you get this error message box?

VeryPDF
=======================================
the message appears with Acrobat 8 when maximizing the actual window.
This does not happen when doing the same using Acrobat 9. But with Acrobat 9 a similar message appears when printing the pdf ?!
But anyway: The result of the fdf-generated file and the bitmap is ok with the latest version of your product.
So I will look at the strange messages above, but we can work with your product.
=======================================
We have created a new version of pdfform.dll file to you, please use attached pdfform.dll file to try again, we hoping this new version of pdfform.dll file will work better for you.

VeryPDF
=======================================
many many thanks to you.
It works now without any messages (AcroRead 8/9 Acro9Pro) and the result is that what we want.
Very good job.
=======================================
Thank you for your message, if we can be of any other assistance, please feel free to let us know.
Thank you and have a nice day!

VeryPDF
=======================================
we have ordered support again for 1 year.
We got the following challenge:
we heard from our pdf-experts that it is possible to integrate barcode-fonts in pdf-templates,
so we would be able to print via fdf-call pdf's with variable barcodes fields.
Questions:
- is it possible to integrate barcode-fonst and when yes what codes ?
- could you recommend what fonts we should buy ?
it would be nice to get the answer from the experts.

=======================================
We apologize for any inconvenience this may have caused to you, we are not very understand your description, can you please describe your problem to us in detail? If possible, can you please email to us your sample PDF and FDF files for checking? Please also point to us where is wrong in PDF file, after we understand your problem completely, we will figure out a solution to you asap.

VeryPDF
=======================================
let me try again:
we use at the moment your dll for creating pdf's (with fields filled by variable data using the fdf-mechanism).
The fields in the pdf are defined with a font, for example Times New Roman.
The Question is: are fonts available for Barcoding ?
I send you a ppt, perhaps clears what the challenge ist.

=======================================
Thanks for your message, we are understand your requirement now, it seems you want insert text strings into fillable forms, and then render these text strings with barcode fonts, so the users can see barcode in fillable forms.
As far as I know, fillable forms are can only contain normal text strings, they can't contain barcode fonts, if you wish insert barcode fonts into PDF pages, we suggest you may by following steps to reach your requirements,
1. you can call PDFForm_FlattenPDF() function to flatten forms in PDF file first,
2. you can use PDF Stamp COM (VC/VB/ASP/Delphi Examples) v2.5 to add the text string with barcode fonts into PDF pages, PDF Stamp COM (VC/VB/ASP/Delphi Examples) v2.5 can be downloaded from following page,
https://www.verypdf.com/pdfstamp/index.htm#dl
you can use following sample code to insert barcode characters, we are using "Free 3 of 9" barcode font in this example,
void EmbedBarcodeFonts()
{
long id;
int nRet = -1;
char szOutPDF[MAX_PATH];
char szPDFFile[MAX_PATH];
GetModulePath(szPDFFile,"example.pdf");
GetModulePath(szOutPDF,"out-embedfont.pdf");
id=VeryStampOpen(szPDFFile,szOutPDF);
if(id>0)
{
VeryStampSetFunction(id, Very_Set_EmbedFont, 1, 0, 0, 0);
VeryStampAddText(id, 1, "0123456789", RGB(0, 0, 0), 0, 0, 0, 0, 0, 0, 0, "Free 3 of 9", 8, 1,"https://www.verypdf.com/",0);
VeryStampAddText(id, 2, "0123456789", RGB(0, 0, 0), 0, 0, 0, 0, 0, 0, 0, "Free 3 of 9,Bold", 8, 1,"https://www.verypdf.com/",0);
VeryStampAddText(id, 3, "0123456789", RGB(0, 0, 0), 0, 0, 0, 0, 0, 0, 0, "Free 3 of 9,Italic", 8, 1,"https://www.verypdf.com/",0);
VeryStampAddText(id, 4, "0123456789", RGB(0, 0, 0), 0, 0, 0, 0, 0, 0, 0, "Free 3 of 9,Italic,Bold", 8, 1,"https://www.verypdf.com/",0);
VeryStampClose(id);
}
}
3. however, there has a problem to retrieve the position for fillable forms, because without the position, PDFStamp SDK can’t stamp barcode fonts to correct position, there is no exist functions in PDFStamp SDK or PDFStamp SDK to read the position for forms.
Maybe we can develop this function to you (retrieve position for forms first, and add barcode characters to correct position), but this is need additional development cost, if you are interest in this solution, please feel free to let us know, we will provide a quotation to you shortly.

VeryPDF
=======================================
Continue to previous email, I suggest you may open your fillable PDF file in “Adobe LiveCycle Designer ES 8.2”, set the font name to fillable forms to “barcode fonts”, then when you fill the text into these forms, the text will become barcode characters automatically, we hoping this solution will helpful to you, please to try.

VeryPDF
=======================================
Hi again,
we have considered the ways for variable barcodes and we decide to go in the first step with
2D-Matrix-Code which is available in Acrobat as standard.
So my colleague create a pdf and fdf and we tested it with your dll PDFForm_MergeFDFIntoPDF.
But the resulting file does not contain the 2D-Matrix-Code field.
Is there a chance to achieve it ? and when yes how and how far.
Here you got the files which we tested

=======================================
Thanks for your sample PDF and FDF files, we will check this problem shortly.

VeryPDF
=======================================
so the Gold Support is claryfied for 2011 I will wait for your answer for the 2D-Matrix-challenge form my former mail.
=======================================
We have fixed this problem to you, please download the new version of pdfsdk.dll file from following URL to try again,
XXXXXXXXXXXX
please use the new version of pdfsdk.dll file to overwrite old version, and call PDFForm_MergeFDFIntoPDF() function to merge FDF into PDF file, you will get Barcode-Fonts kept in output PDF file.

VeryPDF
=======================================
thanks for your updated software.
Now the 2D-matrix-Code is visible when using your fdf-call.
But the 2D-matrix-Code-field is NOT filled with the data set in the fdf-file ?! s. T(600)
and so we have the following data situation: see ppt-file
with the following pdf/fdf
Input
Perhaps you can have a look, whether the 2D-matix-Code-field can be filled with the data.

=======================================
Thanks for your message, we have double checked your PDF file carefully, we noticed the “01034009377771791712073110BXBWWW22” string has been inserted into PDF file successful, we can see following text string in output PDF file,
~~~~~~~~~~~~~~~
stream
/Tx BMC q 0 0 256.91 10.22 re W n 0 g BT /ArialNarrow 6 Tf 78.26 1.85 Td (01034009377771791712073110BXBWWW22)Tj ET Q EMC
endstream
endobj
/V (? 0 1 0 3 4 0 0 9 3 7 7 7 7 1 7 9 1 7 1 2 0 7 3 1 1 0 B X B W W W 2 2)
~~~~~~~~~~~~~~~
also, when we open “Mockup 2175_DataMatrix-ohne Klamern im Cod.fdf” file in Adobe Reader, we can’t see correct Barcode image, what are we missed something?

VeryPDF
=======================================
the problem is that with using the veryPDF fdf-DLL the content of the 2D-Matrix-Field does not contain (lila) the data that we set in the fd-file,
whereby using Acrobat Pro Writer 2D-Matrix-Field does contain the data (blue).
We scanned the 2D-Matrix-Code for being sure that there are no data in the 2D-Matrix-Code;
definitly it is the the same 2D-Matrix-Icon as in the (green) template.
I hope the challenge is clear now.

=======================================
When I open “Mockup 2175_DataMatrix-ohne Klamern im Cod.fdf” and “Mockup 2175_DataMatrix-ohne Klamern im Cod.pdf” files in Adobe Reader 9.2.0, I can’t see barcode image at all, please refer to following screenshot,
How did you saw the barcode image in Adobe Reader? What version of Adobe Reader are you using? Am I missed something in my system?

VeryPDF
=======================================
Sorry my problem:
I have used the ADBOBE ACROBAT 9 PRO; see appendix

=======================================
I have installed “Adobe Acrobat 9 Pro Extended” product today, yes, I can see barcode image when I combine FDF and PDF files together.
I have double checked “Adobe Acrobat 9 Pro Extended” product and your PDF file, I have noticed that when I combine FDF and PDF files, “Adobe Acrobat 9 Pro Extended” does generate the new barcode image automatically, I can see new image data in filled PDF file. However, our PDF Form Filler SDK product can’t generate the new barcode image, is it possible for you to deliver a new barcode image to our DLL Library? If so, our DLL Library will insert it into PDF file to replace old barcode image, is this okay to you?
e.g., we will add a new function to you like below,
PDFForm_InsertBarcodeImageIntoPDF(“C:\\test.pdf”, “C:\\out.pdf”, “Datamatrix”, “C:\\newbarcode.bmp”);
If you are able to provide the new barcode image, we will replace the old barcode image in PDF file easily.

VeryPDF
=======================================
thanks for checking and your proposal.
I would prefer if you could generate the bitmap with the Datamatrix-Code in your code.
Perhaps you can check whether you can do it by your software and when yes what would be the cost of such an integration.
The thing is: we like it more to have a software as a "function-block".
Similiarly for example the extraction of defined frame out of pdf what you have integrated in your software for us.

=======================================
Sorry for the delay, we are always research Datamatrix issue in these days, we can work on this function now, we will add a new function to you like below,
PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "Datamatrix", "01034009377771791712073110BXBWWW22");
PDFForm_InsertDataMatrixImageIntoPDF() function will encode "01034009377771791712073110BXBWWW22" to an image first, delete original barcode image in PDF file, and insert new barcode image again.
Additionally, this function is just for Datamatrix barcode image only, if you wish support all type of barcodes, please let us know, we will research all barcode types for you shortly.

VeryPDF
=======================================
thanks for your finding out the solution.
I think that is exact what we need and we will intende to buy this development.
Questions:
-         in PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "Datamatrix", "01034009377771791712073110BXBWWW22");
"Datamatrix" is a Fieldname in PDF !?
-         is it possible to have more than 1 of this fields ? using .out-file of 1. run as in-file for second aso ?
-         Could you send the screenshot as an appendix-file in the e-mail. Our LotusNotes-Mail can't display the image
=======================================
>>in PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "Datamatrix", "01034009377771791712073110BXBWWW22");
>>"Datamatrix" is a Fieldname in PDF !?
Yes, "Datamatrix" is a Fieldname in PDF file, PDFForm_InsertDataMatrixImageIntoPDF() function does support Data Matrix field type only, it doesn't support "PDF 417" and other barcodes.
>>is it possible to have more than 1 of this fields ? using .out-file of 1. run as in-file for second aso ?
If your PDF file contains more Data Matrix fields, you can call PDFForm_InsertDataMatrixImageIntoPDF() function several times, e.g.,
PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\test.pdf", "Datamatrix1", "01034009377771791712073110BXBWWW22");
PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\test.pdf", "Datamatrix2", "01034009377771791712073110BXBWWW22");
PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\test.pdf", "Datamatrix3", "01034009377771791712073110BXBWWW22");
PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\test.pdf", "Datamatrix4", "01034009377771791712073110BXBWWW22");
>>-Could you send the screenshot as an appendix-file in the e-mail. Our LotusNotes-Mail can't display the image
OK, please refer to the screenshot in attachment.
Also, can you please let us know how many type of fields used in your PDF files? Are your PDF files contain DataMatrix field type only?

VeryPDF
=======================================
we will now start ordering  the realization of automatic 2D-Matrix-Code via PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "Datamatrix", "01034009377771791712073110BXBWWW22");
and I hope that it will not take too much time until you have the confirmation.
As you mentioned you can set up the purchase web page.
Beside the realization please send us the costs of support all type of barcode.
=======================================
We have finished the new function to you, please download the new version from following URL to try again,
https://www.verypdf.com/download/pdfformsdk.zip
you can use following sample code to merge FDF into your PDF file first, and then insert the DataMatrix Image Into PDF file again,
PDFForm_SetLicenseKey("XXXXXXXXXXXXXXXXXXXXX");
PDFForm_MergeFDFIntoPDF(lpInPDFFile, lpInFDFFile, lpOutPDFFile);
BOOL bRet = PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "Datamatrix", "01034009377771791712073110BXBWWW22");
If you encounter any problem with PDFForm_InsertDataMatrixImageIntoPDF() function, please feel free to let us know, we will assist you asap.

VeryPDF
=======================================
first I wanna thank you for your rapid answer.
It would be nice when you would tell me what dll's, lib's or anything else I need for using the new functionality.
I have this files in system32, so I am sure that they are accessible.

With copying every from BIN-folder, so the program works.
[IMAGE]
And so I come to my next question:

BOOL bRet = PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "Datamatrix", "01034009377771791712073110BXBWWW22");
I thought that "Datamatrix" is the fieldname but the fieldname is "600", but following code does not work
BOOL bRet = PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "600", "01034009377771791712073110BXBWWW22");
How does your software know what field is the Datamatrix-Field ... see my question, are more than 1 datamatrix-fields possible.

=======================================
"600" is not the "Datamatrix", you need fill it by FDF file, you can call PDFForm_MergeFDFIntoPDF() function to merge FDF and PDF file to a new PDF file.
You can call PDFForm_InsertDataMatrixImageIntoPDF() function to fill more than one datamatrix-fields, for example,
BOOL bRet = PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\test.pdf", "Datamatrix1", "01034009377771791712073110BXBWWW22");
BOOL bRet = PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\test.pdf", "Datamatrix2", "01034009377771791712073110BXBWWW22");
BOOL bRet = PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\test.pdf", "Datamatrix3", "01034009377771791712073110BXBWWW22");
You can open your PDF file in “Adobe LiveCycle Designer ES 8.2” application, then you can find out which field is “Datamatrix” easily, please refer to following screenshot,
"600" is a text field, please refer to following screenshot, so you can’t use PDFForm_InsertDataMatrixImageIntoPDF() function to fill “600” field, please notice this matter,

VeryPDF
=======================================
sorry that was my problem: I haven't realized that there is a field called "Datamatrix".
But now I think everything is clear. The calls run under my .NET-programm.
The only thing that we still need is a license key , so we don't see the Watermark.
' ****** NEW
PDFForm_SetLicenseKey("XXXXXXXXXXXXXXXXXXXXX")         ' licence key pdfform.dll
' ****** NEW
PDFToImageSetCode("XXXXXXXXXXXXXX")      ' licence key pdf2image.dll
mDir = Path.GetDirectoryName(pFileName)
mBaseName = Path.GetFileNameWithoutExtension(pFileName)
mFile = mDir & "\"& mBaseName
LoggingWindow("PDFForm_MergeFDFIntoPDF gestartet", FrmMain.txInfo)
IfNotFile.Exists(mFile & ".pdf") Then
LoggingWindow(mFile & ".pdf"& " nicht vorhanden", FrmMain.txInfo)
ExitFunction
EndIf
IfNotFile.Exists(mFile & ".fdf") Then
LoggingWindow(mFile & ".fdf"& " nicht vorhanden", FrmMain.txInfo)
ExitFunction
EndIf
Debug.Print(mFile & ".pdf"& " exists "& File.Exists(mFile & ".pdf"))
Debug.Print(mFile & ".fdf"& " exists "& File.Exists(mFile & ".fdf"))
tmp = PDFForm_MergeFDFIntoPDF(mFile & ".pdf", mFile & ".fdf", mFile & "-01"& ".pdf")
LoggingWindow("PDFForm_MergeFDFIntoPDF beendet "& IIf(tmp = 0, "Fehler", "ok"), FrmMain.txInfo)
Iftmp = 0 Then
ExitFunction
EndIf
' ****** NEW
PDFForm_InsertDataMatrixImageIntoPDF(mFile & "-01"& ".pdf", mFile & "-02"& ".pdf", "Datamatrix", "01034009377771791712073110BXBWWW22")
' ****** NEW
ps: I will wait for your offer on the barcode-support, where you wanted to find out the costs (cause of use third party software).

=======================================
Thanks for your message, just for checking, do you want to support all type of barcodes in the “Adobe LiveCycle Designer ES 8.2” or just some of them?
Please refer to all barcode types in the following screenshot.

VeryPDF
=======================================
could you please send me the screenshot as an appendix.
Our Lotus Notes can't show it correctly.
I have now in my bitmap-file a demo-watermark in ? although using (your) same pdf2image.dll.
Her my .NET-Program         PDFToImageSetCode("XXXXXXXXXXXXXX")    s. PDFgenerate.vb

=======================================
Your code is no problem, did you updated the pdf2image.dll file on your server?
Also, please download the latest version of pdf2image.dll file from following URL to try again, we hoping this version will work fine to you,
VeryPDF
=======================================
first of all I want to say : Datamatrix-Insert works fast and good. Great job !
I have still 2 challenges :
1. I have copied all the files from your BIN-directory to WINDOWS\SYSTEM32
Set Dest=%SYSTEMROOT%\SYSTEM32
copy cximagecrt.dll %Dest%
copy DataMatrix.net.dll %Dest%
copy EncodeDataMatrix.dll %Dest%
copy Interop.VeryPDFFormCOM.dll %Dest%
copy itextsharp.dll %Dest%
copy pdfform.dll %Dest%
copy pdfform.lib %Dest%
copy pdfformcom.dll %Dest%
copy pdfformcom.lib %Dest%
copy pdfsdk.dll %Dest%
[IMAGE]
The software does not work (PDFForm-InsertDataMatrixImageIntoPDF = false).
If I copy all files to program-path it works? Any idea why there is a difference.
2. the "Demo Watermark" comes in the pdf-outputfile after the call for PDFForm-InsertDataMatrixImageIntoPDF :

PDFForm_MergeFDFInitoPDF with input file =>
PDFForm-InsertDataMatrixImageIntoPDF with input-file ...-01 =>
That happens also when using your software on bin-directory (DataMatrix_test.bat)
************************************************************************************************
For additional Barcodes:
What we need is Code 128 (important)
[IMAGE]
Code 3 of 9 (also called Code39) , more nice to have
[IMAGE]

=======================================
Yes, these DLL files and your EXE application must exist in same folder, if you place them to different folders, your EXE and pdfform.dll can’t load necessary DLL files correctly.
Sorry for this problem, please download a new package from following URL,
https://www.verypdf.com/download/pdfformsdk.zip
the new package does contain a new version of pdform.dll file, we have solved this problem in the new version of pdfform.dll file.
Thanks for your message, we will research these barcodes and come back to you shortly, thanks for your patience.
In the meantime, can you please send to us some PDF and FDF files which contain “Code 128” and “Code 3 of 9” barcodes? Your sample files will helpful for us to test these barcodes.

VeryPDF
=======================================
with the last version of the dll everthing is fine.
So from our sight of view the order is realized completely.
Thanks again.
=======================================
Thank you for your message, if you encounter any problem for “Datamatrix” in the future, please feel free to let us know, we are glad to assist you asap.
Also, we have sent a quotation for the code39 and code128 to you yesterday, if you have any question for the code39 and code128, please also feel free to let us know.

VeryPDF
=======================================
I have set up the order in our system, I think you will get it in the same way as the 2D-MatrixCode-order.
=======================================
Thank you for your message, if we can be of any other assistance, please feel free to let us know.

VeryPDF
=======================================
we have now faced one, I hope minor, problem.
My colleague from the design-department has changed the x-value of the field "datamatrix" (from 0,425 mm to 0,169 mm)
but the size of the resulting 2D-Matrix-Code produced by your DLL is the same, whereby the size changed when opening the fdf with acrobat 9 standard.
"datamatrix" x-value 0,425
now changed
"datamatrix" x-value 0,169
We need the size defined by the field "datamatrix", so when we got an pdf we don't need to change the program using your dll.
So could you please have a look, whether it is possible.

=======================================
Thanks for your message, we will research this function shortly.

VeryPDF
=======================================
yes, it is ok for me to combine all functions.
A remark for barcoding: the height of the barcode should identical with the fieldheight,
for example if the field-height, say BC128_DATA1, is 2 cm than the barcode-height should be also = 2cm.
So as for datamatrix: the pdf-designer determins the height or size.

=======================================
We have double checked the "adjust Datamatrix Image Size" issue in your DM_gross.pdf and DM_klein.pdf PDF files, we noticed the “Datamatrix” field in these two PDF files have same size, please refer to following screenshot,

So, when you call PDFForm_InsertDataMatrixImageIntoPDF() function, PDFForm_InsertDataMatrixImageIntoPDF() function will generate the new Datamatrix image to fit the field rectangle, you will see same size Datamatrix images in both PDF files. If you wish generate small Datamatrix image in DM_klein.pdf file, we suggest you may reduce the field’s rectangle in DM_klein.pdf file too, then you will see small Datamatrix image which generated by PDFForm_InsertDataMatrixImageIntoPDF() function, because this Datamatrix image will fit the field’s rectangle automatically.
Also, we have created a new version of PDFForm SDK to you, please download new version from following URL,
https://www.verypdf.com/download/pdfformsdk.zip
the new version does contain a PDFForm_InsertBarcodeIntoPDF() function,
//PDFForm_InsertBarcodeIntoPDF
//Insert Barcode into PDF file
//Parameters:
//  lpInPDF: input PDF file
//  lpOutFDF: output FDF file
//  lpFormName: Barcode form name
//  lpFormType: Barcode type, lpFormType supports following CodeType:
//          private enum CodeType
//          {
//                 Code128,
//                 Code39,
//                 Codabar,
//                 Datamatrix,
//                 EAN,
//                 Inter25,
//                 PDF417,
//                 Postnet
//          }
//  lpFormValue: Barcode text
//Return value:
//  TRUE is success, FALSE is fail
//
EXTERN BOOL WINAPI PDFForm_InsertBarcodeIntoPDF(LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpFormName, LPCTSTR lpFormType, LPCTSTR lpFormValue);
You can use following sample code to insert Barcodes into Barcode-temp.pdf file,
void main(int argc, char *argv[])
{
char szBarcodeTemp[MAX_PATH];
GetModulePath(szBarcodeTemp, "Barcode-temp.pdf");
char szBarcodeNew[MAX_PATH];
GetModulePath(szBarcodeNew, "_Barcode-out.pdf");
CopyFile(szBarcodeTemp, szBarcodeNew, FALSE);
BOOL bRet = FALSE;
PDFForm_SetLicenseKey("XXXXXXXXXXXXXXXXXXXXX");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode1[0]", "Code128", "1234567890");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode2[0]", "Code39", "1234567890");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode3[0]", "Codabar", "A1234567890A");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode4[0]", "Datamatrix", "01034009377771791712073110BXBWWW22");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode5[0]", "EAN", "01234567890100");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode6[0]", "Inter25", "123456789");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode7[0]", "PDF417", "1234567890");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode8[0]", "Postnet", "1234567890");
printf("Return value is: %d\n", bRet);
return;
}
PDFForm_InsertBarcodeIntoPDF() function does support following barcode types,
~~~~~~~~~~~~~~~
Code128,
Code39,
Codabar,
Datamatrix,
EAN,
Inter25,
PDF417,
Postnet
~~~~~~~~~~~~~~~
Please test the new function carefully, if you encounter any problem with this function, please feel free to let us know, we are glad to assist you asap.

VeryPDF
=======================================
it took a little time but now we have tested your new software.
For the important Codes (Code 128, Code 39, DataMatrix-Code) everthing is fine !
What is really a great point is to define sizes by fieldsizes.
Great job again.

But we have some problems with the Codes we will not use at the moment.
In the document I have tried to explain it; see page 1+ 2


on page 3 I have written down 2 wishes:
1. list of field-names, datatypes and values instead of calling procedures n-times
2. EAN128-Code generate (with application ideintifiers)
It would be great if you could realize that for us.

Here are descriptions\explalantions for EAN-coding (I think you got this info : )

Hope to hear from you.

=======================================
>>1. list of field-names, datatypes and values instead of calling procedures n-times
Please download the new version of PDFForm SDK from following URL,
https://www.verypdf.com/pdfform/pdfformsdk.zip


We have added a new function into the new version to you,
//PDFForm_InsertBarcodeIntoPDF2
//Insert Barcode into PDF file
//Parameters:
//  lpInPDF: input PDF file
//  lpOutFDF: output FDF file
//  lpFormValues: Parameters FieldIdBarcode, TypeBarcode, FieldValueBarcode as a string-list (separated by for example newline).
//                  Then we would do ONE call instead of n-times calling the proc with
//                  the n as the number of special fields
//  Barcode type supports following CodeType:
//           private enum CodeType
//           {
//                  Code128,
//                  Code39,
//                  Codabar,
//                  Datamatrix,
//                  EAN,
//                  Inter25,
//                  PDF417,
//                  Postnet
//           }
//Return value:
//  TRUE is success, FALSE is fail
//
//e.g.,
//
//string strFormValues;
//strFormValues += "BarCode1[0]=>Code128=>1234567890";
//strFormValues += "\n";
//strFormValues += "BarCode2[0]=>Code39=>1234567890";
//strFormValues += "\n";
//strFormValues += "BarCode3[0]=>Codabar=>A1234567890A";
//PDFForm_InsertBarcodeIntoPDF2("C:\\test.pdf", "C:\\out.pdf", strFormValues.c_str());
//
EXTERN BOOL WINAPI PDFForm_InsertBarcodeIntoPDF2(LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpFormValues);
You can call this function to insert barcodes for more fields at one time.


>>2. EAN128-Code generate (with application ideintifiers)
>>It would be great if you could realize that for us.

Please set these fields to “Read Only”, then you can add insert these barcodes into these fields properly,


Please refer to an example “_80082037_MULTI.pdf” and output PDF file “out.pdf” in attachment.
Please refer to example source code at below,
string strFormValues;
strFormValues += "BC128_322=>Code128=>$91S2345678$96BXBWWW22";
strFormValues += "\n";
strFormValues += "BC39_20=>Code39=>87654321";
strFormValues += "\n";
strFormValues += "EAN_322=>EAN=>1234567890121";
strFormValues += "\n";
strFormValues += "BCodabar_20=>Codabar=>A123456A";
strFormValues += "\n";
strFormValues += "BCodabar_21=>Codabar=>A123456A";
strFormValues += "\n";
strFormValues += "10=>Inter25=>123456789";
strFormValues += "\n";
strFormValues += "31=>PDF417=>417";
strFormValues += "\n";
strFormValues += "322=>Postnet=>000111";
PDFForm_InsertBarcodeIntoPDF2("D:\\temp3\\bayer\\_80082037_MULTI.pdf", "C:\\out.pdf", strFormValues.c_str());

VeryPDF
=======================================
thank you for your fast reply !
Please send me the image inside your mail as an appendix, our Lotus Notes displays me only the following screen

=======================================
Please refer to attached screenshot, you can set these forms to "Read-only", then you can insert barcodes into these forms easily.

VeryPDF
=======================================
VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!