How to use PDF Editor Toolkit Pro SDK from C# .net Core source code?

Support Team,

I am working at a software company. we are using VeryPDF in our current application. now We are developing a new application in .net Core but VeryPDF we used in existing application looks not support .net Core.

Do you have a version of VeryPDF for .net Core?

Thanks,
Customer
---------------------------------------------

image
Thanks for your message, PDF Editor Toolkit Pro SDK is a Windows DLL Library, it can be called from any Windows applications and program languages, include C#, VB.NET, VB, C++, ASP, etc., if you wish call PDF Editor Toolkit Pro SDK from C# code, please look at following web pages for more information,

https://www.verypdf.com/wordpress/201301/how-to-call-pdf-editor-toolkit-from-c-source-code-34030.html
https://www.verypdf.com/wordpress/201108/register-pdfshell-dll-on-windows-7-system-1875.html
https://www.verypdf.com/wordpress/201106/verypdf-dll-as-64-bit-version-770.html
https://www.verypdf.com/wordpress/category/pdf-editor-toolkit

The latest version of PDF Editor Toolkit Pro SDK contains a "pdfshell.exe", it's a COM component, you can run following command line to register it into your Windows system with administrator privilege,

pdfshell.exe /regserver

after you register this COM properly, you can add a reference to pdfshell.exe from your C# source code, then you can "pdfshell" namespace from C# source code easily, for example,

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Runtime.InteropServices;
using pdfshell;

namespace WindowsApplication_ImageStamp
{
    public partial class Form1 : Form
    {
        public class ShellStamp : pdfshell.shellExeClass
        {

        }
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //create an instance for the COM class
            ShellStamp stamp = new ShellStamp();
            string basePath = @"D:\temp2";
            string inFile = basePath + @"\example.pdf";
            string outFile = basePath + @"\example_out.pdf";
            // Stamping on pdf is working fine
            // The value of id is 1 in this case
            stamp.com_VerySetLicenseKey("XXXXXXXXXXXXXXXXXXXXXX");
            int id = stamp.com_VeryStampOpen(inFile, outFile);
            int a = stamp.com_VeryStampAddText(id, 1, "Test string from shell",
                        255, 16, 0, 0, 0, 0, 0, 100, "Arial", 14, 0, string.Empty, 1);
            stamp.com_VeryStampClose(id);

            //stamping on tiff files is not working
            inFile = basePath + @"\multipage.tif";
            outFile = basePath + @"\example_stamp.tif";
            // The value of the id is -1 when the
            //Open file
            id= stamp.com_ImageStampOpen(inFile,outFile);
            //Stamp text
            a= stamp.com_ImageStampAddText_VB(id, 100, 100,
                  "TEst string2 from shell", 255, 1, 16, 0, "Arial");
            stamp.com_ImageStampClose(id);
        }
   }
}

If you encounter any problem when you use "pdfshell.exe" COM from C# source code, please feel free to let us know, we are glad to assist you asap.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: -1 (from 1 vote)

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!