Question:I need to write a program that displays a PDF which a third-party supplies. I need to insert text data in to the PDF before displaying it to the user. I do have the option to convert the PDF in to another format, but it has to look exactly like the original PDF. C++ is the preferred language of choice, but other languages can be investigated (e.g. C#). It need to work on a Windows desktop machine.What libraries, tools, strategies, or other programming languages do you suggest investigate to accomplish this task on VeryPDF?
Answer: According to your needs, maybe you can have a free trial of this software: VeryPDF PDF Editor Toolkit, by which you can use it together with programming languages including C++, VB, Delphi, ASP, and .NET. Developers can implement the functions with any one of the programming languages. Meanwhile, this toolkit allows you to add text to PDF programmatically. By this toolkit, you can also editing PDF, such as creating PDF, converting images to PDF, merging PDF and splitting PDF. Please check more related information of this software on homepage, in the following part, let us check how to use this software.
Step 1. Free download PDF Editor Toolkit
- When downloading this software, you will find it is a zip file. You can not use it directly. Please extract it to some folder then you can find useful elements of this software.
- If you choose the common version, there are two license types for you to choose: server version and developer version. They are same in application but different in authorization methods.
Step 2. Add text to PDF
- When you use this software, please refer to PDF Editor Toolkit user manual.
- Here are some parameters and functions you may need to add text to PDF, please have a check.
long VeryAddTextEx(very_id,long x,long y, char *string,long color)
The VeryAddTextEx function writes a character string at the specified location, using
the currently selected font, text color, if x = y = -1, indicate the text string will be drawing at
current text position, default text position is (64, 64).
Returned by VeryCreate or VeryOpen function.
Specifies the logical x-coordinate of the reference point that the system uses to
align the string, the x-coordinate will moved automatically.
Specifies the logical y-coordinate of the reference point that the system uses to
align the string, the y-coordinate will moved automatically.
Pointer to the string to be drawn, this string may include "\n" symbol
Set text color, you may use RGB macro to combine this value.
Nonzero if it is successful; otherwise, it is zero
Please check more code templates in help document. During the using, if you have any question, please contact us as soon as possible.