PDF to Flash Converter

How to convert PDF to SWF and set quality of embedded jpeg pictures there?

With PDF to Flash Converter, the conversion from PDF to SWF can be fulfilled easily, and besides that, you can set quality of embedded jpeg pictures in Windows platforms. To know more details, you can keep reading this article.

Step1. Before this process, you need to have PDF to Flash Converter installed on your computer:

  • First, please download zip file from here on your computer
  • Open this zip file > extract folder of “pdftoflash_cmd” to your computer, then PDF to Flash Converter can be installed on your computer successfully

Step2. Follow steps below to open operating environment of PDF to Flash Converter on your computer of Windows systems:

  • Click “start” button in order to get its menu popped on your screen
  • Click “Run” on start menu in order to get dialog box of “Run”
  • Input “cmd.exe” in edit box of “Run” and click “OK”, the command prompt window, which is the running environment of PDF to Flash Converter can be opened on your computer

Step3. Convert PDF to SWF and set quality of embedded jpeg pictures there

Please see the following example about this process firstly:

f:\pdftoflash_cmd\pdftoflash.exe –swfopt “-j 100” d:\sources\a.pdf d:\targets\a.swf<enter>

where:

  • f:\pdftoflash_cmd\pdftoflash.exe is the path of “pdftoflash.exe”, which is essential to use PDF to Flash Converter in command prompt window, which is the first step you need to take in command prompt window
  • –swfopt “-j 100” is a parameter to set quality of embedded jpeg images as best quality as far as PDF to Flash Converter can offers. Here int of “-swfopt “-j <int>” can be any int between 0 and 100, and along with the growing of int, the quality of embedded jpeg images can be larger with the bigger size gradually. However, if you do not set quality of embedded jpeg images, int of default is 85
  • d:\sources\a.pdf is the path of source PDF file, which is typed for adding this PDF file for this process
  • d:\targets\a.swf is the targeting path used for saving and naming SWF file

Finally, please do not get one click on “enter” button in command prompt window, which is essential to produce SWF file with PDF to Flash Converter in command prompt window.

After the illustration about converting PDF to SWF and setting quality of embedded jpeg pictures, if you have some questions on PDF to Flash Converter and this process, please go to homepage of PDF to Flash Converter and leave your comment here, thank you for your support here. Have a nice day.

@VeryDOC

How to burst PDF file to single page SWF file?

If you want to burst PDF to SWF of single page, PDF to Flash Converter can help you with that in Windows platforms. You can find more details in following paragraphs.

1. Installation

Please click here so that a zip file can be downloaded on your computer, then please open it and extract the content to your computer, then from this moment on, PDF to Flash Converter can be used on your computer.

2. Process

After installation, please follow steps below to open environment of PDF to Flash Converter:

click “Windows + R” hotkey > input “cmd.exe” in edit box of “Run” dialog box > click “Ok”

Then, in command prompt window, which is running environment of PDF to Flash Converter, you need to do the followings to accomplish this process from PDF to SWF on your computer:

  • Input the path of “pdftoflash.exe” in order to launch PDF to Flash Converter in command prompt window, then please click “space” there in order to type other commands later
  • Type the parameter “-swfburst” in order to burst PDF to single page SWF files with PDF to Flash Converter, then one click need to be on “space” button for other commands, too
  • Add source PDF file: please type the path of this PDF file in command prompt window directly, or just drag and drop this PDF file into command prompt window directly, then please get one click on “space” button
  • Type a targeting path in command prompt window in order to save these SWF files later
  • At last, you need to click “enter” in command prompt window so that PDF to Flash Converter can process this task successfully

Here is an example about this process below:

F:\pdftoflash_cmd\pdftoflash.exe -swfburst D:\input.pdf D:\output.swf

By now, after you get the method to convert PDF to SWF with PDF bursted into single pages SWF files, you can log on website of PDF to Flash Converter from here if you want to get more information of PDF to Flash Converter. For some concerns about this process, you can leave your comment here, we will give you a perfect reply.

@VeryDOC

Convert documents of HTML to PCX by command line

PCX is a kind of image format and if you want to convert the document of html to pcx format image, the command line application of Document Converter will do you a great favor. With the function of converting any printable documents to various image formats, you can do this job successfully with the command line application.

You should know something about Document Converter at first. It is a software product that dynamically converts MS Office 97/2000/XP/2003/2007, WordPerfect, AutoCAD DWG, PostScript, Adobe Acrobat PDF and many other document types to Adobe Acrobat PDF, PostScript, EPS, XPS, PCL, JPEG, TIFF, PNG, PCX, EMF, WMF, GIF, TGA, PIC, PCD and BMP formats.

Document Converter works in three applications: command line application which is to play the leading role in this article, GUI application and virtual printer application. The GUI application can be used to convert documents to images in a friendly and clear user interface. The virtual printer application can help you save paper and ink when you print documents.

For smoothly using the command line application, please download it at http://www.verypdf.com/artprint/docprint_pro_setup.exe for free trial. After installing the command line application, you will see the executable file doc2pdf.exe appear in installation package and it is the called program file used in the conversion from html to pcx.

At the beginning of the conversion, MS-DOS interface should be opened. Please click “Start”—“Run” to open “Run” dialog box in which you need to input “cmd” in “Open” combo box and click “OK” button. The other way to open “Run” dialog box is to press “Window”+ “R” on the keyboard at the same time.

The command line contains called program, source file and target file. If you want to input the command line yourself, please see the following command line example which is a reference for you:

doc2pdf –i “www.google.com” –o D:\out.pcx

Where

  1. doc2pdf stands for the called program doc2pdf.exe. You need to input its path when calling it in MS-DOS interface.
  2. –i “www.google.com” stands for the link of the html document and please don’t forget the option “-i” and the double quotes for enclosing the link.
  3. –o D:\out.pcx specifies the name of target file. You should set this parameter yourself.

In the end of the conversion from html to pcx, you should hit “Enter” button on the keyboard to run the conversion. When the conversion is completed, you can check the target file in specified location.

If you want to buy the command line application, just click the following link: https://usd.swreg.org/com/shop/102518/cart/4049122801.

PCL, PS, PDF Page Counter

How to use relative path when you use software PCL Page Counter SDK?

Software home page: https://www.verydoc.com/pcl-page-count/pcl-page-count.html

Download: ps-and-pcl-info-sdk.zip

If you do not know whether relative path can be used or not, you can to use "DIR" command to have a test. As to the details, please refer to the following example.

For example:

dir ".\sub Folder\testcmd.pdf"

Command line information:

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

relative_path_test

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

There are three circumstances which will lead to the relative path can work or not.

ONE: PDF file is contained executable program directory.

*********************************

For example:

".\sub Folder\testcmd.pdf"

"C#_ParsingTest.exe" Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin]

Current Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin]

"tesetcmd.pdf" Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin\sub Folder\testcmd.pdf]

Command line information:

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

relative_path

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

TWO: PDF file in sub folder of exe program.

*********************************

The difference between TWO and ONE is that when the current directory is same with the exe file directory, you can input the executable file name directly.

For example:

".\sub Folder\testcmd.pdf"

"C#_ParsingTest.exe" Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin]

Current Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin]

"tesetcmd.pdf" Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin\sub Folder\testcmd.pdf]

Command line information:

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

relative_path2

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

THREE: PDF file is saved in other folder.

*********************************

This way is different with the former ones because PDF file path has been changed.

For example:

"..\..\testcmd.pdf"

"C#_ParsingTest.exe" Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin]

Current Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\bin]

"tesetcmd.pdf" Directory:[C:\Documents and Settings\admin\My Documents\Downloads\ps-and-pcl-info-sdk\tiger_pdf_cshap\testcmd.pdf]

Command line information:

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

relative_path3

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

PDF to Vector Converter

How can I use C# to call com components of pdf2vec?

Use “VeryDOC PDF to Vector Converter”  for development.

First Add reference “PDF2VectorCOM”.

Project –> Add reference… –> COM –> PDF2VectorCOM –> OK

C# 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 PDF2VectorCom;
using System.Reflection;

namespace CSharp_COM_WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void PDF2VectorCOM_Click(object sender, EventArgs e)
        {
            string strStartupPath = System.Windows.Forms.Application.StartupPath + "\\";

            System.Type pdf2vecName = Type.GetTypeFromProgID("PDF2VectorCom.pdf2vec");
            if (pdf2vecName != null)
            {
                object pdf2vec = Activator.CreateInstance(pdf2vecName);
                string strPDFFile = strStartupPath + "test.pdf";
                string strOutFile = strStartupPath + "test.swf";
                string strCmd = "pdf2vec -$ XXXXXXXXXXXXXXXXXXXX \"" + strPDFFile + "\" \"" + strOutFile + "\"";

//                MessageBox.Show(strCmd);
                object[] argn = new object[1];
                argn[0] = strCmd;
                int nRet = (int)pdf2vecName.InvokeMember("com_PDF2Vector", BindingFlags.InvokeMethod, null, pdf2vec, argn);

                //int nRet = pdf2vec.com_PDF2Vector(strCmd);

                MessageBox.Show("Return Value is: " + string.Format("{0}", nRet));
            }
        }
    }
}