PDF to Vector Converter

How to convert PDF to flash via programming C#?

For developing software with functions around flash, some time we need to use programming C#. And when you need to create flash from PDF together with programming C#, the following article will be helpful for you. VeryDOC PDF to Vector Converter can be used to convert PDF to flash by programming or scripting languages. Please check more information about this software on homepage, in the following part, let us check how to use this software.

Step 1. Download PDF to Vector Converter 

  • There are different licenses of this software, please choose the proper version according to your needs. And this is Windows application, it can not work under Mac, Linux system for now.
  • When downloading finishes, there will be an zip file. Please extract it to some folder then you can find the examples and executable file. You’d better download SDK version as there are more examples directly related programming C#.

Step 2. Convert PDF to Flash from programming C#.

  • When you use this software, please refer to the usage and examples.
  • Here are some programming C# code examples for your reference:

Sample code #1 (C# example),
Make use of the PROCESS class available in SYSTEM.DIOGNOSTICS namaspace, use the following piece of code to execute the pdf2vec.exe file,
~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
{
static void Main(string[] args)
{
Process proc = new Process();
proc.StartInfo.FileName = @"C:\\pdf2vec.exe";
string strArguments = "";
strArguments += "-swfburst";
strArguments += " D:\\temp\\sample.pdf D:\\temp\\out.swf";
Console.WriteLine(strArguments);
proc.StartInfo.Arguments = @strArguments;
proc.Start();
proc.WaitForExit();
}
}
}
~~~~~~~~~~~~~~~~~
Sample code #2 (C# example),
Please by following steps to call pdf2vec.exe inside a special user account,
1. Please download and install EXEShell COM Library (freeware) from following URL first,
https://www.verydoc.com/exeshell.html
https://www.verydoc.com/download/exeshell.zip
2. Please use following C# code to run the conversion inside a special user account,
~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class Program
{
static void Main(string[] args)
{
System.Type otype = System.Type.GetTypeFromProgID("exeshell.shell");
Object o = System.Activator.CreateInstance(otype);
otype.InvokeMember("RunCommandLine", System.Reflection.BindingFlags.InvokeMethod, null, o,
new object[] { "UserName", "Password", @"C:\pdf2vec.exe ""C:\test.pdf"" ""C:\out.swf""" });
otype = null;
}
}
}
~~~~~~~~~~~~~~~~~
Remark:
You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please by following steps to solve this 1314 Error,
ERROR 1314:
~~~~~~~~~~~~~
1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD
~~~~~~~~~~~~~
To resolve this issue:
1. Click Start, click Run, type "secpol.msc", and then press ENTER.
2. Double-click "Local Policies".
3. Double-click "User Rights Assignment".
4. Double-click "Replace a process level token".
5. Click "Add", and then double-click the "Everyone" group
6. Click "OK".
7. You may have to logout or even reboot to have this change take effect.
Please refer to following two screenshots to understand above steps,
https://www.verydoc.com/images/err1314-1.png
https://www.verydoc.com/images/err1314-2.png
Please look at following page for the details about ERROR 1314,
https://www.verydoc.com/exeshell.html

This software also allows you to call it from as Visual Basic, C/C++, Delphi, ASP, PHP.NET, etc. and converting PDF to flash is a part of functions of this software, it can give you more than you can image. During the using, if you have any question, please contact us as soon as possible.  

VN:F [1.9.20_1166]
Rating: 5.5/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 2 votes)
XPS to PDF and Image Converter

Convert XPS to PDF in WPF C# application

Question: I need to convert an XPS file I create with my application to a PDF file, what is the best way to do so? I prefer this to be done from inside C# using a managed assembly. Open source is preferred upon third party solutions.

Answer: An open source managed assembly might be hard to find, but you can look for a commercial product that might help. You can have a look at VeryDOC.com, where there is software named VeryDOC XPS to PDF Converter. By this software, you can convert large volumes of XPS files in real-time. XPS to PDF Converter is available via an easily integrated COM object (or DLL Library, or Command Line), enabling developers to access the converter via any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.  Please check more information of this software on homepage, in the following part, let us check how to use it.

Step 1. Download XPS to PDF Converter Command Line Developer License

  • By this developer version, you can integrate the corresponding SOFTWARE into your developed software and redistribute it with royalty-free. If the SOFTWARE contains source codes, you have the right to modify and reuse the codes under the Developer License.
  • When downloading finishes, there will be a zip folder. Please extract it to some folder then you can check elements in it.

Step 2. Convert XPS to PDF in C# application.

  • When you use this software, please refer to the usage and examples.
  • Here are one example of C#, please have a check.

Make use of the PROCESS class available in SYSTEM.DIOGNOSTICS namaspace, use the following piece of code to execute the xps2pdf.exe file,
~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
{
static void Main(string[] args)
{
Process proc = new Process();
proc.StartInfo.FileName = @"C:\\xps2pdf.exe";
string strArguments = "";
strArguments += " D:\\temp\\sample.xps D:\\temp\\out.pdf";
Console.WriteLine(strArguments);
proc.StartInfo.Arguments = @strArguments;
proc.Start();
proc.WaitForExit();
}
}
}
~~~~~~~~~~~~~~~~~
Sample code #2 (C# example),
Please by following steps to call xps2pdf.exe inside a special user account,
1. Please download and install EXEShell COM Library (freeware) from following URL first,
https://www.verydoc.com/exeshell.html
https://www.verydoc.com/download/exeshell.zip
2. Please use following C# code to run the conversion inside a special user account,
~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class Program
{
static void Main(string[] args)
{
System.Type otype = System.Type.GetTypeFromProgID("exeshell.shell");
Object o = System.Activator.CreateInstance(otype);
otype.InvokeMember("RunCommandLine", System.Reflection.BindingFlags.InvokeMethod, null, o,
new object[] { "UserName", "Password", @"C:\xps2pdf.exe ""C:\test.xps"" ""C:\out.pdf""" });
otype = null;
}
}
}
~~~~~~~~~~~~~~~~~
Remark:
You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please by following steps to solve this 1314 Error,
ERROR 1314:
~~~~~~~~~~~~~
1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD
~~~~~~~~~~~~~
To resolve this issue:
1. Click Start, click Run, type "secpol.msc", and then press ENTER.
2. Double-click "Local Policies".
3. Double-click "User Rights Assignment".
4. Double-click "Replace a process level token".
5. Click "Add", and then double-click the "Everyone" group
6. Click "OK".
7. You may have to logout or even reboot to have this change take effect.

If you need to check more examples, please visit homepage. During the using, if you have any question, please contact us as soon as possible.

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

VB.NET, C# examples for Postscript to Text Converter SDK DLL Library

VeryDOC Postscript to Text Converter SDK does convert Postscript files to text files,

https://www.verydoc.com/ps-to-text.html

https://www.verydoc.com/ps2txt.zip

The following is the VB, VB.NET and C# examples for Postscript to Text Converter SDK  product,

VB example,

----------------------------------------------
Private Declare Function VeryPDF_PSToText Lib "ps2txtsdk.dll" (ByVal strCommandLine As String) As Long

Private Sub ps2txt_Click()
Dim nRet As Long
Dim strCmd As String

strCmd = "ps2txt -$ XXXXXXXXXXXXXXXXXXXXXXXX"
strCmd = strCmd & " C:\test.ps"
strCmd = strCmd & " C:\test.txt"

nRet = VeryPDF_PSToText(strCmd)
MsgBox (Str(nRet))
End Sub
----------------------------------------------

This the VB.NET example,
----------------------------------------------
Public Class Form1

Private Declare Function VeryPDF_PSToText Lib "ps2txtsdk.dll" (ByVal strCommandLine As String) As Integer

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim nRet As Long
Dim strCmd As String
Dim strInPDFFile As String
Dim strOutFile As String

strInPDFFile = Application.StartupPath() & "\test.ps"
strOutFile = Application.StartupPath() & "\vb_net_test.txt"

strCmd = "ps2txt -$ XXXXXXXXXXXXXXXXXXXXXXXX"
strCmd = strCmd & " """ & strInPDFFile & """"
strCmd = strCmd & " """ & strOutFile & """"

MsgBox(strCmd)
nRet = VeryPDF_PSToText(strCmd)
MsgBox(Str(nRet))
End Sub
End Class
----------------------------------------------

This is the C# source code to convert PS file to Text file,
----------------------------------------------
[DllImport("ps2txtsdk.dll")]
internal static extern int VeryPDF_PSToText(string strCommandLine);

private void button1_Click(object sender, EventArgs e)
{
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
string strCmd = string.Empty;
string psFile = appPath + "\\test.ps";
string txtFile = appPath + "\\_out_C#_test.txt";
int nRet;
strCmd = "ps2txt -$ XXXXXXXXXXXXXXXXXXXXXXXX " + "\"" + psFile + "\" " + "\"" + txtFile + "\" ";
MessageBox.Show(strCmd);
nRet = VeryPDF_PSToText(strCmd);
}
----------------------------------------------

If you need any other examples, please feel free to let us know.

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)
@VeryDOC SDK & COM

PDF Optimizer (PDF Linearizer) is slow on mapped drive

Hello, we are using your PDF Optimizer (PDF Linearizer) Command Line v2.0.

We've noticed it's very slow in a 64bit environment. We've had to limit our users to files no bigger than 5mg, because we've had so many server crashes.

Do you have any suggestions?

Thanks as always.
Customer
-----------------------------------------------
I think I have the problem figured out. The pdfs we were optimizing were on a mapped drive. If I change to work locally, performance is much better 🙂

Thanks!
Customer
-----------------------------------------------

Thanks for your great information.

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)
DOC to Any Converter

Questions for Free Trial version of DOC to Any Converter SDK/COM software

Hi,

We are evaluating your product for integration with one of our malware products. Originally we built a converter in-house, but we are becoming increasingly overwhelmed by the amount of file conversions that we must support. Therefor, we have decided to try a third party solution and VeryDoc looks very promising.

We specifically need to support:
doc/docx -> txt, pdf, bmp, jpg, (html)
xls/xlsx -> csv, pdf, bmp, jpg, (html)
ppt/pptx -> pdf, bmp, jpg, (html)

pdf -> txt, bmp, jpg, (html)
html -> txt, pdf, bmp, jpg

any image -> pdf, bmp, jpg

(converting to html is not mandatory but a nice to have..)

Furthermore, we need to be sure of several items or need clarification (please respond inline):
1)Is there a single sdk which we can call that will do all of the above conversions? If not a single, than how many different sdk?

2)Is the sdk threadsafe?

3)When converting from doc, xls, ppt, I am assuming VeryDoc has built their own binary parsing algorithm which is based off the published information on MSDN. The only developers which I know that have successfully performed this are the fellows at Open Office. If VeryDOC has not taken this path, then please disclose in general terms how you tackled this issue. The method by which you extract data has direct effects on our Program since we deal with malware.

4)When converting from docx, xlsx, pptx, I am again assuming VeryDoc uses OpenXML SDK 2.5. Do you have any known limitations when converting? For example, no foreign characters. Cannot handle graphs in xslx, etc.

5)If any of the above conversions use a "intermediate" conversion, we will need to know. Again, since we deal with malware, these could pose as major risks. For example, when we convert to docx -> jpg. We first convert docx to html, and from html we convert to jpg.

6)Are there any size limitations on the conversions?

7)All conversions complete within 10seconds. (From our own conversions, we have noted that conversion to bmp for large files (50mb+) can take a bit of time.)

8)What is your relationship with VeryPDF? I understand you are partners, however, when I click on your "License Agreement", I am sent to VeryPDF's. We just need one SDK, whether it comes from VeryDOC or VeryPDF, this does not concern us.

Best regards,
Customer

------------------------------------------------------

>>We specifically need to support:
>>doc/docx -> txt, pdf, bmp, jpg, (html)
>>xls/xlsx -> csv, pdf, bmp, jpg, (html)
>>ppt/pptx -> pdf, bmp, jpg, (html)
>>pdf -> txt, bmp, jpg, (html)
>>html -> txt, pdf, bmp, jpg
>>any image -> pdf, bmp, jpg
>>(converting to html is not mandatory but a nice to have..)

Yes, our "DOC to Any Converter Command Line" product has above functions, you may download the trial version of "DOC to Any Converter Command Line" from our website to try,

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

>>1)Is there a single sdk which we can call that will do all of the above conversions? If not a single, than how many different sdk?

Yes, we have "DOC to Any Converter SDK/COM" product on following web page,

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

"DOC to Any Converter SDK/COM" is a single SDK product to do the above conversion.

>>2)Is the sdk threadsafe?

Yes, "DOC to Any Converter SDK/COM" is threadsafe.

>>3)When converting from doc, xls, ppt, I am assuming VeryDoc has built their own binary parsing algorithm which is based off the published information on MSDN. The only developers which I know that have successfully performed this are the fellows at Open Office. If VeryDOC has not taken this path, then please disclose in general terms how you tackled this issue. The method by which you extract data has direct effects on our Program since we deal with malware.

Thanks for your message, yes, we can parse DOC format by ourself (without depend on MS Office and OpenOffice), but we can't parse the XLS and PPT formats without MS Office and OpenOffice installed.

Our "DOC to Any Converter SDK/COM" and "DOC to Any Converter Command Line" products are not require MS Office installed to convert Office documents to PDF files and Image files.

"DOC to Any Converter SDK/COM" and "DOC to Any Converter Command Line" products will work by following solutions:

1. If your system has MS Office 2007 + PDF&XPS addon installed, doc2any will use PDF&XPS addon to save MS Office documents to PDF and XPS files,
2. If your system has MS Office installed but without PDF&XPS addon, doc2any will use MS Office to print documents to PDF and XPS files,
3. If your system hasn't MS Office installed, but has OpenOffice installed, doc2any will use OpenOffice to convert documents,
4. If your system hasn't both MS Office and OpenOffice installed, doc2any will use ourself's DOC/RTF render to convert DOC and RTF formats to other formats, but doc2any will not support PPT and XLS formats at this time.

In general, you can do following conversions if your system hasn't MS Office and OpenOffice installed,
1. RTF to HTML without MS Word or OpenOffice,
2. RTF to DOC without MS Word or OpenOffice,
3. RTF to PDF without MS Word or OpenOffice,
4. DOC to HTML without MS Word or OpenOffice,
5. DOC to RTF without MS Word or OpenOffice,
6. DOC to PDF without MS Word or OpenOffice,

If you need convert DOCX, PPT, PPTX, XLS, XLSX document formats to PDF or XPS format, you need install MS Office or OpenOffice.

>>4)When converting from docx, xlsx, pptx, I am again assuming VeryDoc uses OpenXML SDK 2.5. Do you have any known limitations when converting? For example, no foreign characters. Cannot handle graphs in xslx, etc.

Thanks for your message, we are not using OpenXML SDK to convert DOCX, XLSX, PPTX formats, we are using OpenOffice or MS Office to convert DOCX, XLSX, PPTX formats.

>>5)If any of the above conversions use a "intermediate" conversion, we will need to know. Again, since we deal with malware, these could pose as major risks. For example, when we convert to docx -> jpg. We first convert docx to html, and from html we convert to jpg.

Thanks for your message, it is not a good solution to convert DOCX => HTML => JPEG, because HTML may lost the layout or format in original DOCX format. So, our doc2any does convert DOCX to JPEG format directly, we don't use HTML or other formats as the "intermediate".

>>6)Are there any size limitations on the conversions?

Our doc2any is no maximum number of file size limited. It is also no limitation on maximum number of document pages which can be processed at one time.

>>7)All conversions complete within 10seconds. (From our own conversions, we have noted that conversion to bmp for large files (50mb+) can take a bit of time.)

The conversion time is depend on the complexity of input document, if input document contains complexity graphics, the conversion is need more time.

>>8)What is your relationship with VeryPDF? I understand you are partners, however, when I click on your "License Agreement", I am sent to VeryPDF's. We just need one SDK, whether it comes from VeryDOC or VeryPDF, this does not concern us.

VeryDOC is another website which belong to VeryPDF, VeryPDF is focus on PDF products, VeryDOC is focus on DOC, PPT, XLS, RTF, DOCX, PPTX, XLSX, Postscript, XPS, XML, etc. document formats, it is not limited to PDF format. They are belong to same company, just for different type of software.

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)