I want to remove water mark existing pdf using C#

I want to remove water mark existing pdf using c#.

Customer
----------------------------------------

Thanks for your message, you can use "PDF Text Replacer Command Line" to remove text watermark from PDF pages easily, please look at following web page for more information,

http://www.verypdf.com/wordpress/201308/how-to-remove-watermarks-from-existing-pdf-programmatically-37935.html

You can also call pdftr.exe from C# code to batch remove text watermark from PDF pages, for example,

using System.Diagnostics;

class Program
{
    static void Main()
    {
        LaunchCommandLineApp();
    }
   
    /// <summary>
    /// Launch the legacy application with some options set.
    /// </summary>
    static void LaunchCommandLineApp()
    {
        // Use ProcessStartInfo class
        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.CreateNoWindow = false;
        startInfo.UseShellExecute = false;
        startInfo.WindowStyle = ProcessWindowStyle.Hidden;
        startInfo.FileName = "D:\\VeryPDF\\pdftr.exe";
        startInfo.Arguments = "-contentreplace \"watermark=> \" D:\\in.pdf D:\\out.pdf";
       
        try
        {
            // Start the process with the info we specified.
            // Call WaitForExit and then the using statement will close.
            using (Process exeProcess = Process.Start(startInfo))
            {
                exeProcess.WaitForExit();
            }
        }
        catch
        {
            // Log error.
        }
    }
}

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)
Posted in PDF Text Replacer | Tagged , , | Leave a comment

PDF Stamp SDK: What to install PDF Stamp SDK into our system?

Hi,

My company, CA Technologies, recently purchased a license for PDF Stamp SDK which I had previously downloaded and tested in a classic .asp application on a test Win 2012/64 bit server running IIS 8.5/64 bit.

Following the order we received an email from SWREG but I am not clear about what I need to download and install.

There is firstly a link to http://www.verypdf.com/pdfstamp/pdfstamp_sdk.zip which has many folders and files and seems to be the same as the version that I downloaded for trial/testing.

The SWREG email seems to say that after installing the files from the first link and running install.vbs one just needs to specify the license key when calling the pdfstamp functions from within a asp. web page.

But then the email mentions Download PDF Stamp COM Server License which has far fewer folder files but much overlap compared to the folders/files in the above link.

So, what is the second link for? Do I just install the first set of files, just the second set or both? If both then in which folder as they each unzip to different folders.

Please unconfused me.

Regards,
Customer
-------------------------------------------
We apologize for any inconvenience this may have caused to you.

PDFStamp SDK contains two COM interfaces, one is PDFStampOcx.dll file, another is PDFStampCom.exe file.

PDFStampOcx.dll is a COM interface which based on PdfStamp.dll library, it can only be called from 32bit applications.

PDFStampCom.exe is also a COM interface which based on PdfStamp.dll too, it can be called from both 32bit and 64bit applications.

You can run following command lines with administrator privilege to register them into your system,

regsvr32 PDFStampOcx.dll

PDFStampCom.exe /regserver

If you wish to call PDFStampOcx.dll from a 32bit application, you can use following sample code,
--------------------------
Set oTest = CreateObject("PDFStampOCX.CPDFStamp")
id=oTest.veryOpenEx("D:\verypdf.pdf", "D:\out.pdf")
if id>0 then
oTest.veryAddTextEx id, 2, "This is a test.", 2666666,17, 0, 200, 0, 0, 0, 0, 0, 32, 0, 0, 0
oTest.veryCloseEx id
end if
--------------------------

If you wish to call PDFStampCom.exe from both 32bit and 64bit applications, you can use following sample code,
--------------------------
Set pdfstamp = CreateObject("PDFStampCOM.CPDFStamp")
pdfstamp.veryRegEx "XXXXXXXXXXXXXX"
id = pdfstamp.veryOpenEx("D:\verypdf.pdf", "D:\out.pdf")
If (id <= 0) Then
WScript.Quit
End If

nRet = pdfstamp.veryAddTextEx(id, 2, "VeryPDF", 255, 0, 0, 0, 0, 0, 0, 300, 0, 10, 1, "http://www.verypdf.com", 0)
pdfstamp.veryCloseEx (id)
--------------------------

As you see, PDFStampOcx.dll is "PDFStampOCX.CPDFStamp" and PDFStampCom.exe is "PDFStampCOM.CPDFStamp", you can call the different version of PDFStamp COM interface from your applications easily.

the test.asp file is using following code,

Set oTest = Server.CreateObject("PDFStampOCX.CPDFStamp")

so, you need run "regsvr32 PDFStampOcx.dll" to register PDFStampOcx.dll into your system first, then you can run test.asp code to stamp PDF files easily.

Please notice, in order to get both PDFStampOcx.dll and PDFStampCom.exe files to work fine, you need keep following files into same folder, because PDFStampOcx.dll and PDFStampCom.exe will load the necessary DLL files from same folder,

cimage.dll
imgconv.dll
Interop.PDFStampCom.dll
pdflayerdll.dll
pdfsdk.dll
PdfStamp.dll
PDFStampOcx.dll
pdftoolsdk.dll
PDFStampCom.exe

If you still can't get it work, please feel free to let us know, we will assist you asap,

http://support.verypdf.com

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)
Posted in PDF Stamp | Tagged , | Leave a comment

We’re looking for a way to convert PCL files to GDI and send them to a specified printer (via command line)

Our software product produces PCL files. We're looking for a way to convert them to GDI and send them to a specified printer (via command line). I've looked through your products, but have gotten confused. Do you have anything that does this?

Thanks,
Customer
------------------------------------------
Yes, we have PCL to GDI Converter software, you can by following steps to convert from PCL to GDI,

1. You can use PCL to PDF Converter to convert from PCL file PDF file first,

VeryPDF PCL Converter GUI,
http://www.verypdf.com/app/pcl-converter/try-and-buy.html
http://www.verypdf.com/order_pcl2pdf_end.html
http://www.verypdf.com/pcltools/pcl-converter.exe

You can run following command line to convert PCL file to PDF file,

pcltool.exe D:\test.pcl D:\out.pdf

2. You can convert from PDF file to EMF file or Print the PDF file to Windows printer directly,

You can use PDF2Vector to convert from PDF file to EMF file,

http://www.verydoc.com/pdf-to-vector.html
http://www.verydoc.com/pdf2vec_cmd.zip
http://www.verydoc.com/order_pdf2vec_server.htm

You can run following command line to convert from PDF file to EMF file,

pdf2vec.exe D:\test.pdf D:\out.emf

You can use PDFPrint Command Line to print the PDF file to Windows Printer,

http://www.verypdf.com/app/pdf-print-cmd/try-and-buy.html#buy
http://www.verypdf.com/pdfprint/pdfprint_cmd.zip

You can run following command line to print the PDF file,

pdfprint.exe D:\test.pdf

These products are all Command Line products for Windows system, you can call these command lines from your script to do the batch conversion 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)
Posted in PCL Converter, PDF Print | Tagged , , , | Leave a comment

Develop C# Console Application using VeryPDF PDFPrint Command Line

Dear VeryPDF Support,

I would like to know is it possible to create C# Console Application using VeryPDF PDF Command?

Thank You!

Regards,
Customer
---------------------------------------

image
Yes, of course, you can create C# Console Application using VeryPDF PDFPrint Command Line application, you can download PDFPrint Command Line from this web page,

http://www.verypdf.com/app/pdf-print-cmd/try-and-buy.html#buy
http://www.verypdf.com/pdfprint/pdfprint_cmd.zip

after you download it, you can call pdfprint.exe by following sample C# source code,

using System.Diagnostics;

class Program
{
    static void Main()
    {
        LaunchCommandLineApp();
    }

    /// <summary>
    /// Launch the legacy application with some options set.
    /// </summary>
    static void LaunchCommandLineApp()
    {
        // For the example
        const string ex1 = "C:\\";
        const string ex2 = "C:\\Dir";

        // Use ProcessStartInfo class
        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.CreateNoWindow = false;
        startInfo.UseShellExecute = false;
        startInfo.FileName = "D:\\VeryPDF\\pdfprint.exe";
        startInfo.WindowStyle = ProcessWindowStyle.Hidden;
        startInfo.Arguments = "-printer docPrint D:\\test.pdf";

        try
        {
            // Start the process with the info we specified.
            // Call WaitForExit and then the using statement will close.
            using (Process exeProcess = Process.Start(startInfo))
            {
                exeProcess.WaitForExit();
            }
        }
        catch
        {
             // Log error.
        }
    }
}

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)
Posted in PDF Print | Tagged , | Leave a comment

ActiveX Error in application using VeryPDF.PCLtoPDFCom

I have integrated the SDK in a VB.net application to convert a .SPL file to .PDF and save that to a SQL database. This works fine in my Visual Studio IDE and as a compiled .EXE on my laptop but, it does not work on any other machine I attempt to run the .exe on. I receive an ActiveX error when trying to Declare the object reference to the PCLtoPDFCom object,

Dim VeryPDFCom As Object = CreateObject("VeryPDF.PCLtoPDFCom")

How can I register this on a workstation so that this does not stop the EXE from working? I cannot find any more information other than what was sent to us when we purchased the SDK. I need to speak with a technical resource to get this corrected ASAP. Please contact me to discuss.

Customer
-------------------------------------------
Thanks for your message, you can run a cmd window by administrator privilege, and run following command line to register PCLtoPDFCom.exe into your system,

PCLtoPDFCom.exe /regserver

after you register the PCLtoPDFCom.exe, you will able to CreateObject for "VeryPDF.PCLtoPDFCom" properly.

Here is the full example to call "VeryPDF.PCLtoPDFCom" from VB.NET source code,

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim strFolderDir As String = Application.StartupPath()

    Dim VeryPDFCom As Object = CreateObject("VeryPDF.PCLtoPDFCom")
    Dim filesys As Object = CreateObject("Scripting.FileSystemObject")
    Dim strFolder As String = filesys.GetParentFolderName(strFolderDir)

    Dim strReturn As String = ""
    Dim nFileIndex As Integer = 0
    VeryPDFCom.EnableDebugLog(1)

    Dim strInFile As String = strFolder & "\test\test.pcl"
    Dim strOutFile As String = strFolder & "\bin\_test.pdf"
    Dim strCmd As String = "-$ XXXXXXXXXXXXXXXXXX """ & strInFile & """ """ & strOutFile & """"
    strReturn = strReturn & VeryPDFCom.PCLtoPDF(strCmd)
    nFileIndex = nFileIndex + 1

    MsgBox(strReturn)
End Sub

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)
Posted in PCL Converter | Tagged , | Leave a comment
Page 5 of 1,388« First...34567...102030...Last »