Convert any file type to PDF

I want to know verypdf provides a feature to convert these file type to PDF file and how to use this utility in .Net application? what things are needed?

below file types to PDF conversion I am looking for,

1. xps
2. reg
3. xlsx
4. tiff
5. tif
6. JPEG
7. GIF
8. PNG
9. BMP
10. txt
11. docx
12. doc
13. pdf

Customer
------------------------------------------
In our application we want to convert any type of documents uploaded in format (.img, .png, jpeg, reg, xps, xlsx, docx, doc, tif, tiff, etc.) to PDF.
We are going to write the C#.Net windows service which will use your utility to convert those files into the PDF and send it to the another destination server.

Can you please suggest us which of your API/Utility/Package will fulfill our requirement and can we integrate it with of C#.Net windows service.

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

image
Thanks for your message, you can use following two products to convert all of these formats to PDF files,

VeryDOC DOC to Any Converter Command Line, you can use this product to convert from DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to PDF, Postscript, PS, EPS, SVG, SWF, XPS, PCL, HPGL, HTML, MHTML, RTF, Text, XML, JPG, TIFF, EMF, WMF, BMP, GIF, PNG, TGA, PCX, etc. formats.

http://www.verydoc.com/doc-to-any.html
http://www.verydoc.com/doc2any_cmd.zip

Image to PDF Converter Command Line, you can use this product to convert from various image formats like TIF (TIFF), JPG (JPEG), PNG, GIF, PCD, PSD, TGA, BMP, DCX, PIC, EMF, WMF, etc. to PDF files,

http://www.verypdf.com/app/image-to-pdf-ocr-converter/try-and-buy.html#buy-cvt-cmd
http://www.verypdf.com/tif2pdf/image2pdf_cmd.zip

We suggest you may download above products from our website to try, if you encounter any problem with them, please feel free to let us know, we are glad to assist you asap.

btw, these applications are all Command Line applications, you can call them from C# source code easily, 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.FileName = "D:\\VeryPDF\\doc2any.exe";
        startInfo.WindowStyle = ProcessWindowStyle.Hidden;
        startInfo.Arguments = "D:\\test.doc 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 DOC to Any Converter, Image to PDF Converter | Tagged , , , , , , | Leave a comment

How to call PDF Text Replacer Command Line (pdftr.exe) from Excel or Outlook by VB Script and capture the console text message?

Interested in this product for a project I'm working on. I have a couple of questions before making a decision.

1. My output file was specified as "C:\test.pdf", this ended up in "C:\users\p*****n\appdata\local\virtualstore" - is this because it's the demo version or something else?

2. Is there a silent option without the pages and pages of output on the command line window?

Regards.
Customer
--------------------------------------
>>Interested in this product for a project I'm working on. I have a couple of questions before making a decision.
>>1. My output file was specified as "C:\test.pdf", this ended up in "C:\users\p*****n\appdata\local\virtualstore" - is this because it's the demo version or something else?

Thanks for your message, it seems pdfprint.exe or pdftr.exe created a temporary PDF file for optimization, and then print this optimized PDF file from temporary folder, this is normal, please don't worry about this matter.

>>2. Is there a silent option without the pages and pages of output on the command line window?

You can simple add a "> nul" to the end of command line to suppress all console message, for example,

pdfprint.exe D:\test.pdf > nul

D:\VeryPDF\pdftr.exe -searchandoverlaytext "My Name=>Your Name" D:\in.pdf D:\out.pdf > nul

We hope this method will useful to you, please give it a try.

VeryPDF
--------------------------------------
This part is resolved. The output was going somewhere else because it didn't have rights in the root of C: as I didn't open cmd with admin rights.

However, now I want to use this prog in anger, I need it to run from within excel or outlook. This part is fine, but I need a return value of how many text replaces it's made and test if zero = error (found nothing)

Any way of doing this?
Customer
--------------------------------------


>>However, now I want to use this prog in anger, I need it to run from within excel or outlook. This part is fine, but I need a return value of how many text replaces it's made and test if zero = error (found nothing)

You can use VB Script to call pdftr.exe application, and capture the console text message which outputted by pdftr.exe application, parse the text message, then you can get how many text words be replaced by this command line.

For example,

Dim WshShell, oExec
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("D:\VeryPDF\pdftr.exe -searchandoverlaytext ""My Name=>Your Name"" D:\in.pdf D:\out.pdf")
x = oExec.StdOut.ReadLine
Wscript.Echo x

You can also redirect output to a file and then read the file:

return = WshShell.Run("D:\VeryPDF\pdftr.exe -searchandoverlaytext ""My Name=>Your Name"" D:\in.pdf D:\out.pdf > c:\temp\output.txt", 0, true)

Set fso  = CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile("c:\temp\output.txt", 1)
text = file.ReadAll
file.Close

We hope above solutions will useful to you, you may give them a try.

VeryPDF

灯泡 See Also:

PDF Editor-replace text in PDF in batch
http://www.verypdf.com/wordpress/201303/pdf-editor-replace-text-in-pdf-in-batch-35624.html

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

How to see the file name or document name which printed in the printer spool?

We are using your pdfprinter dll as part of our printing solution , and we found that we cannot get the correct document name in the printer spool.

We use the command pdfprint -$ XXXXXXXXXXXXXXXXXXX -printer "\\192.168.1.10\Brother HL-5450DN" -shell "C:/Users/admin/AppData/Local/ Print/MyDocument.pdf"

But in the printer spool we see some weird name like pdf8E36tmp.pdf as you can see in the below image.

Please tell us which argument to add to the pdfprint so we can see the correct file name.

Thank you,
Customer
----------------------------------------------

image
Thanks for your message, this document name is set by Adobe Reader application, however, you may use "-jobdocname" to change the document name for the print job, for example,

pdfprint.exe -jobdocname "test.doc" -jobusername "MyName" C:\input.pdf

pdfprint.exe -jobdocname "test.doc" -printer "\\resta\Brother HL-5450DN" "C:/Users/chaim.sternbuch/AppData/Local/ Print/MyDocument.pdf"

pdfprint.exe -jobdocname "test.doc" -printer "\\resta\Brother HL-5450DN" -raster2 "C:/Users/chaim.sternbuch/AppData/Local/ Print/MyDocument.pdf"

image

Please notice, the -jobdocname will not work if you use -shell option, you need remove -shell option in order to make -jobdocname option to work properly.

VeryPDF

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
Posted in PDF Print | Tagged , | Leave a comment

Performance issue in the new version of PDFPrint Command Line application

Hello,

I have been a user of the PDFPrint Command Line product for some time and previously was running on a Windows Server 2008 R2 operating system with (Physical Server) architecture.

We migrated to a new server with Windows Server 2016 operating system with (Virtual Server - Microsoft Hyper-v) architecture and we are experiencing a slow process.

In this migration, we also performed the update of the VeryPDF PDFPrint v2.5 Build software: Sep 25 2010 for VeryPDF PDFPrint Command Line v7.0 Build: Apr 21 2018.

We use the following command line:

pdfprint.exe -printer "\\ SVH-PS-01 \ P87T" -duplex 2 -raster2 -paper 9 -rasterbitcount 1 -xres 800 -yres 800 -printermargins LoteImpressao_0001_123932_843774676.pdf

In the previous architecture to run execution was taking around 90 seconds and in the new architecture is taking 200 seconds.

Is there any reason for this longer processing time? Is there any procedure (or parameter) I can do to improve this performance?

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

image
Dear Support VeryPDF,

Our scenario:

We have an old physical server with Windows Server 2008 Standard - 16 cores, 32GB of RAM, in a cluster, connected to a fiber-channel storage. The installed version of PDF Print is 2.5.

We send a batch of PDF files to this server and the files are converted in less than 2 minutes, the average is 90 seconds.

CPU Utilization is around 12%, disk 4%, RAM 20%

The new server is a Hyper-V VM, the SO is Windows Server 2016 Standard - 6 vCores, 32GB of RAM, in a cluster, connected to a fiber-channel storage (using npiv). The installed version of PDF print is 7.0 April, 21 of 2018.

We send the same batch of PDF files to this server, and the files are converted in around 4 minutes.

CPU Utilization is around 18%, disk 2%, RAM 20%

Our problem:

The time it takes to convert the same batch in the new server.

Our request:

We need a way to improve the time it takes to convert files, we also need a way to track how it is going.
We also need to know if this version of the software is designed to work with Windows 2016.

Could you help us?

Thanks in advance,

Thank you,
Customer
----------------------------------------------
Thanks for your message, our PDFPrint Command Line does support Windows 2016 system.

If you wish improve the printing speed, you may add "-raster2 -rasterbwtext -rasterbitcount 1 -xres 150 -yres 150" options to try again, for example,

pdfprint.exe -raster2 -rasterbwtext -rasterbitcount 1 -xres 150 -yres 150 C:\input.pdf

We hope above command line will print PDF file faster than before, you may run it to try again.

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

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,

http://www.verypdf.com/wordpress/201301/how-to-call-pdf-editor-toolkit-from-c-source-code-34030.html
http://www.verypdf.com/wordpress/201108/register-pdfshell-dll-on-windows-7-system-1875.html
http://www.verypdf.com/wordpress/201106/verypdf-dll-as-64-bit-version-770.html
http://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)
Posted in PDF Editor Toolkit | Tagged | Leave a comment
Page 3 of 1,41212345...102030...Last »