Question: I need to insert an image in a PDF file on a certain page, in a specific location. How could I do that in a way that would work on a server. I'm looking for software toolkit, windows if possible. Any ideas, is there a solution 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 insert image file into an opened PDF file. When insert image , this software bmp, dib, emf, gif, icon, jbig, jp2, jpeg, pcd, pcx, pict, png, pnm, psd, rle, tga, tiff, wbmp, wmf, xbm and xpm formats, this function also support multi-page TIFF file, if you want specify a page range in the multi-page TIFF file, you must call VerySetFunction (code = 101) to set the page range before you use this function, please refer to the VerySetFunction function for get more information. Please check more information on homepage, in the following part, let us check more detail information.
- When downloading finishes, there will be a zip file. Please extract it to some folder then you can check related elements in it and call it from MS Dos, programming languages like C++, VB, Delphi, ASP, and .NET.
- There are two version of Toolkit: normal version and professional version. Please check difference here. Then choose the proper version according to your needs.
- There is server version available which allows you to run this software under the whole server by command line.
Step 2. Insert image to PDF
- Here are some parameters you may use:
Id Returned by VeryCreate or VeryOpen function.
If this function return ¨C1, indicate width or height large than 14400 pixel. A return value of 0 indicates an error, otherwise is succeed.
long VeryAddImageData(very_id id, char *data, long width, long height, long color)
Insert memory bitmap into PDF file.
Returned by VeryCreate or VeryOpen function.
width –>Specifies the width of the bitmap, in pixels.
height –>Specifies the height of the bitmap, in pixels.
color –> Specifies the number of bits per pixel.
1 : The bitmap is monochrome
8 : The bitmap has a maximum of 256 gray colors
24 : The bitmap has a maximum of 2^24 colors
Nonzero if it is successful; otherwise, it is zero.
The width of bitmap data must be aligning by 32 bits
Please check more detail information and usage in the downloaded package. During the using, if you have any question, please contact us as soon as possible.