Regarding Subscription to PDF Editor OCX controls (AxPDFOCXLib library) from C# source code

Hi Team,

Good Morning...!!!

We are in development of some .Net applications for our clients and have a requirement of disabling Print/SaveAs options in PDF files.

We have studied and analysed about your tool PDF Editor OCX ActiveX services for PDF which is almost meets our requirement and decided to take the subscription to it.

But before that we need to clarify some queries regarding ActiveX control and small demo on how it integrates and works.

So, could you please provide us specific point of contact from your team who can help us on the same?

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


Thanks for your message, we suggest you may download the trial version of PDF Editor OCX Control (ActiveX) Developer License $2999.00 from this web page to try,

http://www.verypdf.com/app/pdf-editor/try-and-buy.html#buy-dev
http://www.verypdf.com/pdf-editor/pdfeditor_ocx.zip

This demo package contains VB, VC, C# and VB.NET examples, you can compile and run these demo projects easily.

We have also PDF Viewer OCX Control (ActiveX) which can be used to view PDF files only, you may download PDF Viewer OCX Control from this web page to try,

http://www.verypdf.com/dl2.php/pdfviewerocx.zip

If you encounter any problem with these products, please feel free to let us know, we will assist you asap.

VeryPDF
--------------------------------------
Hi Team,

Thanks for your response.

I've already downloaded your trial version of PDF Editor OCX Control (ActiveX) and tried, But I'm getting issue with "AxPDFOCXLib.dll" and "PDFOCXLib.dll" files
(Error CS0246 The type or namespace name 'AxPDFOCXLib' could not be found ). I've tried to copy the dll's from others projects which are available in your zip file but couldn't found. Tried by adding "AxInterop.PDFOCXLib.dll" and "Interop.PDFOCXLib.dll" files from PDFAnnotator-C# project but still no luck and also tried to download those dll's separately from your site or from internet but haven't found.

I've attached the screen shot of solution for your reference.

Could you please share those dll's with us? so that we can compile and run the trial version of PDF Editor OCX Control (ActiveX).

Regards,
Customer
--------------------------------------
You need run a CMD window with administrator privilege first, and run following command line to register pdfocx.ocx into your system,

regsvr32 pdfocx.ocx

after you register pdfocx.ocx successful, you will able to 'AxPDFOCXLib' properly.

VeryPDF

See Also:

http://www.verypdf.com/wordpress/201604/royalty-free-pdf-annotator-ocx-activex-control-for-c-and-net-developers-component-to-view-and-annotate-pdf-documents-42537.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 Editor | Tagged , | Leave a comment

xps2pdf as dll library, is there any way to package xps2pdf.exe as an application library (.dll)?

Hi, is there any way to package xps2pdf.exe as an application library (.dll)?

We have experienced several instances where users have antivirus software or other IT policies that quarantine/block xps2pdf.exe.

Thank you in advance!

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

image
Thanks for your message, yes, we have a XPS2PDF SDK product, the cost of this XPS2PDF SDK Developer License is USD$2495, it's royalty free, you can purchase it from our website directly,

http://www.verypdf.com/dl2.php/xps2pdf_sdk.zip
https://www.verydoc.com/xps-to-pdf.html
http://www.verypdf.com/order2.php?s=102518&p=xpstopdfsdkdev&q=1&v=0&d=0

VeryDOC
--------------------------------------------
Thank you for this information.

Can you clarify what royalty free indicates?

Additionally, does the SDK product indicate that we obtain the source code and/or repository?

Customer
--------------------------------------------
>>Can you clarify what royalty free indicates?

Royalty free is mean that you need only pay one time, the cost is USD$2495, you needn't pay it every year, it's just one time fee.

>>Additionally, does the SDK product indicate that we obtain the source code and/or repository?

Thanks for your message, we don't provide the source code for the SDK product, we are provide only the DLL libraries.

VeryDOC
--------------------------------------------
Thanks for the clarification with my prior questions.

We are interested in purchasing the SDK if we can apply our prior purchase of the "1 Developer License" towards this purchase. Can this be done? We weren't aware of the SDK offering when we first made our purchase and can not purchase a new license. I hope this is something your team can understand.

Let me know, and thank you in advance,
Customer
--------------------------------------------
Thanks for your message, you can pay price difference to upgrade from XPS to PDF Converter Command Line Developer License to SDK Developer License, that's no problem.

VeryDOC
--------------------------------------------
Thanks for this answer.

Can you tell me what files are provided in the SDK? For instance, is it a native windows dll, or a .NET dll. If it is a .NET dll, what version of .NET does it target? Also are there any other files or code samples, and if so in which language are the code samples?

I’m asking because there isn’t a trial and I need to be sure we can incorporate it.

Thanks again,
Customer
--------------------------------------------
>>Can you tell me what files are provided in the SDK? For instance, is it a native windows dll, or a .NET dll. If it is a .NET dll, what version of .NET does it target?

Thanks for your message, the XPS to PDF Converter SDK contains following files,

1. xps2pdf.dll library,
2. xps2pdf.lib file, this is an interface file for xps2pdf.dll library,
3. xps2pdfcom.exe file, this is the COM interface file for xps2pdf.dll library, this COM can be called from both 32bit and 64bit systems.
4. C++, VB, C#, VB.NET, PHP, etc. demo projects.

The DLL is a native Windows DLL, it's not a .NET DLL.

>>Also are there any other files or code samples, and if so in which language are the code samples?

Yes, the SDK contains C++, VB, C#, VB.NET, PHP, etc. demo projects, you can compile and run these sample projects easily.

If you have any question, please feel free to let us know, we will assist you asap.
VeryDOC
--------------------------------------------
Thanks for these answers.

Our project is a c# application, and we are looking to remove all *.exe dependencies.

Can you confirm that we could simply include the *.dll and potentially *.lib file into our project without the need for the xps2pdfcom.exe? Can you also tell me if the C# sample provided works without xps2pdfcom.exe?

Thanks again!
Customer
--------------------------------------------
Yes, of course, you can simply include *.dll files into your project and without the need for the xps2pdfcom.exe, that's no problem.

Yes, you can call xps2pdf.dll library from C# project directly and without xps2pdfcom.exe.

You can download XPS to PDF Converter SDK from this URL,

http://www.verypdf.com/dl2.php/xps2pdf_sdk.zip

Please set your license key into the source code to remove the restrictions, for example,

+++++++++++++++++
private void button1_Click(object sender, EventArgs e)
{
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
string strPDFFile = appPath + "\\sample\\test.xps";
string strOutFile = appPath + "\\_out_C#.pdf";
string strLicenseKey = "XXXXXXXXXXXXXXXXX";

string strCmd = "-$ " + strLicenseKey + " \"" + strPDFFile + "\" \"" + strOutFile + "\"";

System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.XPStoPDFCom");
VeryPDF.XPStoPDFCom VeryPDFCom = (VeryPDF.XPStoPDFCom)System.Activator.CreateInstance(VeryPDFType);
int nReturn = VeryPDFCom.XPStoPDF(strLicenseKey, strCmd);
MessageBox.Show("Converter finished.");
}
+++++++++++++++++

You can also call xps2pdfsdk.dll from your C++ source code directly, for example,

+++++++++++++++++
typedef int (__stdcall *VeryPDFXPS2PDFConverterFunc)(const char *lpszCmdLine);
typedef void (__stdcall *VeryPDFXPS2PDFSetCodeFunc)(const char *lpRegcode);
VeryPDFXPS2PDFConverterFunc lpVeryPDFXPS2PDFConverter = NULL;
VeryPDFXPS2PDFSetCodeFunc lpVeryPDFXPS2PDFSetCode = NULL;
BOOL XPS2PDFConverterSDK(const char *lpszLicenseKey, const char *lpszCmdLine)
{
if(lpszCmdLine == NULL || lpszCmdLine[0] == 0)
        return FALSE;

char szPath[_MAX_PATH];
GetModulePath(szPath,"xps2pdfsdk.dll");
HINSTANCE hXPS2PDFSDK = LoadLibrary(szPath);
if(hXPS2PDFSDK == NULL)
        return FALSE;

lpVeryPDFXPS2PDFConverter = (VeryPDFXPS2PDFConverterFunc)GetProcAddress(hXPS2PDFSDK, "VeryPDFXPS2PDFConverter");
if(lpVeryPDFXPS2PDFConverter == NULL)
        return FALSE;

lpVeryPDFXPS2PDFSetCode =(VeryPDFXPS2PDFSetCodeFunc)GetProcAddress(hXPS2PDFSDK, "VeryPDFXPS2PDFSetCode");
if(lpVeryPDFXPS2PDFSetCode ==NULL)
        return FALSE;

if(lpszLicenseKey && lpszLicenseKey[0] != 0)
        lpVeryPDFXPS2PDFSetCode(lpszLicenseKey);
int nResult = lpVeryPDFXPS2PDFConverter(lpszCmdLine);
FreeLibrary(hXPS2PDFSDK);
        return nResult;
}

XPS2PDFConverterSDK("XXXXXXXXXXXXXXXXX", "-$ XXXXXXXXXXXXXXXXX D:\test.xps D:\out.pdf");
+++++++++++++++++

If you encounter any problem with XPS to PDF Converter SDK, please feel free to let us know, we are glad to assist you asap.

VeryDOC
--------------------------------------------
Could you create an example c# console app (.NET 4.5+) that does not rely on the COM.exe?

None of the examples build or run for me, and I believe the above code is a c++ example.

Thanks in advance,
Customer
--------------------------------------------
Thanks for your message, we have created a new example C# console app (.NET 4.5+) that does not rely on the COM.exe for you, please download the new package from this URL,

http://www.verypdf.com/dl2.php/xps2pdf_sdk.zip

after you download and unzip it to a folder, please go to following folder,

xps2pdf_sdk\example_C#\WindowsFormsApplication_DLL

this C# example will let you know how to call xps2pdfsdk.dll directly and without depend on COM.exe, here is the sample source code,
+++++++++++++++++
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;

namespace WindowsFormsApplication_DLL
{
public partial class Form1 : Form
{
[DllImport(@"xps2pdfsdk.dll", CharSet = CharSet.Auto)]
public static extern int VeryPDFXPS2PDFConverter(
[MarshalAs(UnmanagedType.LPStr)] string strCommandLine);

[DllImport(@"xps2pdfsdk.dll", CharSet = CharSet.Ansi)]
public static extern void VeryPDFXPS2PDFSetCode(
[MarshalAs(UnmanagedType.LPStr)] string strLicenseKey);

public Form1()
{
        InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
string strPDFFile = appPath + "\\sample\\test.xps";
string strOutFile = appPath + "\\_out_C#_dll.pdf";
string strLicenseKey = "XXXXXXXXXXXXXXXXX";

string strCmd = "-$ " + strLicenseKey + " \"" + strPDFFile + "\" \"" + strOutFile + "\"";
VeryPDFXPS2PDFSetCode(strLicenseKey);
int nRet = VeryPDFXPS2PDFConverter(strCmd);
}
}
}
+++++++++++++++++

If you encounter any problem with the new package, please feel free to let us know, thank you.
VeryDOC
--------------------------------------------
Thank you for the updated example, I am making some progress integrating this. I have two questions below:

1. Can you tell me which of the following dlls are required:
- cximagecrt.dll (required)
- msvcr71.dll (is this required?)
- tiffcp.dll (is this required?)
- xps2pdf.dll (required)
- xps2pdfsdk.dll (required)
- xpssdk.dll (is this required?)
- zlib.dll (is this required?)

2. In addition, is the "-linearize" parameter supported? I know it wasn't supported in prior version.

Thanks again!
Customer
--------------------------------------------
Also, can you tell me what the various return codes are (int nRet) in your example above?

Customer
--------------------------------------------
>>Thank you for the updated example, I am making some progress integrating this. I have two questions below:
>>1. Can you tell me which of the following dlls are required:

- cximagecrt.dll (required): yes, required.
- msvcr71.dll (is this required?): if your system has already installed msvcr71, this DLL is not necessary.
- tiffcp.dll (is this required?): This is for TIFF image processing only, if you need only convert from XPS to PDF file, this DLL is not necessary.
- xps2pdf.dll (required): yes, required.
- xps2pdfsdk.dll (required): yes, required.
- xpssdk.dll (is this required?): This DLL is for "-useprinter" option, if you don't use "-useprinter" option, you can delete this DLL file.
- zlib.dll (is this required?): yes, this DLL is used to decompress XPS file to memory, it's required.

>>2. In addition, is the "-linearize" parameter supported? I know it wasn't supported in prior version.

Thanks for your message, "-linearize" parameter is not supported in the current version, we will try to support this option in the future.

>>Also, can you tell me what the various return codes are (int nRet) in your example above?

VeryPDFXPS2PDFConverter() function 1 is indicate conversion successful, 0 is conversion fail, if you are fail to convert a XPS file to PDF file, please feel free send to us that XPS file, we will analyze that XPS file and come back to you asap.

VeryDOC
--------------------------------------------
Thank you for the prompt responses - what is the -useprinter option?

Is there a full list of all of the options available aside from the "readme.txt"?

Customer
--------------------------------------------
>>Thank you for the prompt responses - what is the -useprinter option?

"-useprinter" option will install a Virtual Postscript Printer into your system first, print XPS file to this Virtual Postscript Printer to create PS file, and then convert from PS file to PDF file again. The XPS Printing method will maintain everything no difference between XPS and generated PDF file, so you can use this option to convert some XPS files which not supported very well by direct conversion method.

>>Is there a full list of all of the options available aside from the "readme.txt"?

Thanks for your message, we haven't a another document yet, however, if you encounter any problem with XPS to PDF Converter software, please feel free to let me know, we are glad to provide more information to you asap.

VeryDOC

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 XPS to PDF And Image Converter | Tagged | 1 Comment

How to turn off the filename and footer text printing at the bottom of the page when it prints using HTMLPrint to Any Converter Command Line?

Hello:

I have a couple of questions regarding:
HTMLPrint to Any Converter Command Line.

1) how much does it cost?
2) is there an easy way to turn off the file name printing at the bottom of the page when it prints?
3) can it run successfully as a service under the Windows 2012 OS?

Customer
---------------------------------------------------------------
In addition is there any way to stop the header info from being chopped off on the left and right of the documents printed?

Customer
---------------------------------------------------------------
I fixed the header issue. Is there any way to turn off the footer without removing the header too?

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

image
>>HTMLPrint to Any Converter Command Line.
>>1) how much does it cost?

Thanks for your message, the cost of HTMLPrint to Any Converter Command Line Server License is USD399 per server, the developer license is USD2495 per developer, you may purchase it from our website directly,

https://www.verydoc.com/htmlprint-to-any.html

>>2) is there an easy way to turn off the file name printing at the bottom of the page when it prints?
>>I fixed the header issue. Is there any way to turn off the footer without removing the header too?

You can simple set footer text with a space, for example,

html2any.exe -hfflag on -header "HTML Header" -footer " " -printtopdf D:\out.pdf http://www.verydoc.com

We hope -footer " " option will solve above two issues for you, you may give it a try.

>>3) can it run successfully as a service under the Windows 2012 OS?

Yes, it does support Windows 2012 OS, if you encounter any problem on Windows 2012 OS, please feel free to let us know, we will assist you asap.

VeryDOC

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 HTMLPrint to Any Converter | Tagged , , , , , | Leave a comment

How to convert from Landscape Excel Spreadsheet to PDF Document with -nooffice option?

Hello,

I am trying to convert an Excel document to PDF with doc2any.exe. The conversion was working when using Excel, but I need the conversion to occur through a scheduled task. Since this is not running in an interactive mode, the conversion is failing. I am attempting to convert the document by passing in -nooffice, but it is not picking up on the fact that the excel document has the page set to landscape. I tried to pass in -printerpaper "11x8.5in", but it is still being printed to 8.5x11. I also tried passing in -useprinter, but I am getting the same results.

I also tried to pass in in width and height as landscape (

c:\doc2any_cmd\doc2any.exe -debug -nooffice -width 792 -height 612 -view test.xlsx test.pdf

) and getting the same results.

Is there a way to have the excel document converted to a landscape PDF without using MS Excel?

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

image

https://www.verydoc.com/doc-to-any.html

Thanks for your message, the page size (-width 792 -height 612) and page orientation options will be ignored when you use -nooffice option, if you need to use the paper size option, you have to remove the -nooffice option, and also arrange doc2any.exe work from an interactive user account instead of system user account, because without "-nooffice" option, doc2any.exe will use MS Office to convert from Office documents to PDF files, MS Office application can't work properly from Local System user account, you have to run doc2any.exe from an interactive user account in order to get it work properly.

VeryDOC

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 | Tagged , , , , , , , , , | Leave a comment

Can't get correct page count from RAW .SPL files

Hello!

I'm working on a c# application that needs to analyse a .spl file in order to get some information about print jobs, to be more specific, I would like to have Page-Level colour detection in spool files since such information is not present on windows spooler API.

That when I came across VeryDOC API, I download the trial version of Spool File Page Counter SDK and made some tests with C-Sharp-AnyCPU project, basically I'm pausing the printing job when its spooled and analyzing the .spl file to get the correct page count.

The problem is that the API works well when the file is pooled as an EMF format, but when is RAW (most of them are) it gets all messy and wrong.

Is there any way to analyze .spl RAW files? can I convert the .spl to PCL or PS depending on the printer driver? 
VeryDOC
----------------------------------------------

* How to Count PDF Pages in a Folder using Spool File Page Counter SDK?

image

https://www.verydoc.com/spool-page-count.html

----------------------------------------------
Thanks for your message, yes, you are right, Spool File Page Counter SDK does support EMF-SPL, Postscript, PCL (include PCL-5C, PCL-5E, PCL-XL), PDF, EMF Spooling formats, it doesn't support RAW Spool format, because RAW format is just a binary format, it's not a specific file format like PDF, PS, PCL or EMF-SPL formats, so it's impossible to analyze the RAW format and read the information from RAW format, please understand this matter.

VeryDOC

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, PS, PDF Page Counter | Tagged , , , , , | Leave a comment
Page 2 of 33412345...102030...Last »