Can PDFTools be used to fill in PDF files

Hi,

Can PDFTools be used to fill in PDF Files.

No user interaction must be required, all in code.
Each field in the PDF file has a unique name.
Once the fields are filled in I must then print it.
I must also select the correct Radio Button.

Please see attached PDF file as an example.
PDF With Fields.pdf (141.7 KB)

Any help/advice would be appreciated.

Regards

Johan de Klerk

Hi Johan

You can use the PDF-XChange Viewer 2.0 ActiveX to do what you require. This can be done ‘invisibly.’ There is an example in the help file. Example name is pvxd2f20.app

I used this as the basis for form filling in a couple of my apps.

Hope this helps.
Carl

Hi Carl,

Thank you very much for the quick and detailed reply.

I will look at the demo you mention and work from there and see if I can make it work…

I appreciate the help.

Regards

Johan de Klerk

Hi Carl,

WOW this works great.
Thanks.

Question please.
After I have saved the filled in document how do I automatically print it from code?

Or even better if it is possible:
Fill in the original form,
Print the filled in form without saving it,
Close the original form without saving
Do you maybe have any suggestions please?

EDIT: Got everything working as I want it.
Thank you very much again.

Regards

Johan de Klerk

1 Like

Johan,

Might you clarify the exact PDF-XChange product you used to accomplish what you needed?
I see pricing for PDF-XChange Viewer Active-X SDK at $2459 whereas other developer products listed on the Tracker webiste can be significantly less. Just trying to find the right product to match a single application with ~50 users.

Cheers,
Douglas

Hi Douglas,

I have the full PDF Tools version.
You need PDF Tools as well as PDF-XChange Viewer 2.0 ActiveX.
If I am not mistaken the ActiveX came with PDF Tools when I purchased it, it was years ago.

As far as I know Tracker don’t sell PDF Tools anymore and no development are done to it anymore.
I might be wrong.
Luckily it still works in C6.3 and C10 without any problems.

I agree their pricing on the website is very-very confusing, well the last time I looked at it.

Hope I explained it well enough.
Shout if you need more information.

Regards

Johan de Klerk

Thank you, Johan.

Buried deep in the Tracker website, I came across a statement that Clarion support ceased in version 6 of PDF Tools. Having never seen the product, I am unsure what constituted Clarion support or what it might take for using Clarion with the current PDF Tools version 8.

I have sent a message to Tracker but no word back yet. Would be interested to hear from any Clarion developers about recent experiences.

Hi Douglas,

Apparently when Craig left the company they decided to not support Clarion anymore.
Craig was their Clarion Template developer.

I am not sure about Version 8.

My version still works perfect.

This is what I have:
PDF-Tools Templates v4.1
PDF-Tools Viewer Template v2.0
PDF-XChange ActiveX Viewer Template v2.0
PDF-XChange Driver Deployment Templates v5.0
PDF-XChange Driver Deployment Templates v4.0

PS: If I remember correctly there was talk of someone taking the templates over but I can’t remember who and how far it got.

Regards

Johan de Klerk

Hi Carl,

I just wanted to process another PDF file where I need to replace 80 variables in the PDF file.
The RunJavaScript just crashes without any message or something.

If I only do 10 variables then it still works, anything more than 10 variables and it crashes.

Do you maybe know how I can fix this please?
Is there maybe a setting that I need to set?

Regards

Johan de Klerk

I think the problem is that the thing you are trying to replace doesn’t exist in the file.

There is no error trap in the javascript.

Hth

Carl

Hi Carl,

I have tested by commenting out the first 10 and uncommenting the next 10 until I get to the last one and it replaced each batch of 10 that I uncommented.
All of the uncommented variables is replaced.
As long as I don’t try and do more then 10 variables.

Regards

Johan de Klerk

Hi Carl,

Some update.
I tested with Clarion 6.3 and it works 100%, I have added 40 fields and replaced the variables.
The same app, just opened in Clarion 10 and compiled crash/gpf.

I have attached both to this message just in case you can help and figure out what is wrong.

Regards

Johan de Klerk
PdfVAx20-Clarion63.zip (1.4 MB) PdfVAx20-Clarion10.zip (1.6 MB)

I thought I would be clever and create 8 procedures for the76 PDF Variable replacements.
Source procedure calls each replace procedure.
PDFReplace1 does the first 10 variables, open PDF, replace, save pdf
PDFReplace2 does the next 10 variables, open PDF, replace, save pdf
PDFReplace3 does the next 10 variables, open PDF, replace, save pdf
and so on until I get to all 76 variables.

This is also not working, crash/gpf when it does the 2nd one.

It seems I should never have done this project in Clarion 10, should have done it in my trusty old Clarion 6 and everything would have worked 100%.
But can’t turn around now, already done 95% of the app in Clarion 10.

I am out of ideas how to make this work in Clarion 10.

EDIT: I have put debug statements in and it crash after the:
Procedure setup standard formulas
before the:
Open Files

You can fill in fields in PDF document using QuickPDF Library
http://klarisoft.com/KSNews_160.htm

Hi,

Thanks for the link.

I would like to try and make PDF Tools work.

QuickPDF is another R7300.00 expense that I don’t have money for at this stage.

Regards

Johan de Klerk