when I called htmltools ActiveX Component from VB6 source code, I got Error 429, ActiveX component can't create object, how to solve this problem?

Hello

I have downloaded your trial version of htmltools.exe.

I wish to use it in a VB6 program that I use. In my program, I can only generate .rtf files, but my client now wants .pdf.

I tried to use your included VB example, but I get the following error when I try to to run it.

Error 429, ActiveX component can't create object. It happens when VB tries to run the line,

Set HTMLConverter = CreateObject("HtmlSchee.HtmlShell")

The program is being tested on a Windows 10 PC.

Thank you in advance.

All the best.
Customer
--------------------------------------------
I tested your VB sample program on an old Windows XP PC and it works fine. I think it’s a Windows 10 issue.

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

image

HTML Converter Command Line (htmltools.exe)
http://www.verypdf.com/app/html-converter/try-and-buy.html#cmd

Thanks for your message, on the Windows 10 system, you need run the software with administrator privilege, you will able to get it work fine.

VeryPDF
--------------------------------------------
Hello

Thank you for your reply.

This not the answer. I am running VB6 with admin privilege.

Also the account I use has administrator privilege.

Customer
--------------------------------------------
Thanks for your message, we suggest you may use Shell() function to call htmltools.exe directly, for example,

+++++++++++++++++++
Module Module1
    Sub Main()
        Shell("D:\htmltools.exe D:\test.html D:\out.pdf", AppWinStyle.NormalFocus)
        Shell("D:\htmltools.exe -webkit D:\test.html D:\out.pdf", AppWinStyle.NormalFocus)
        Shell("D:\htmltools.exe -webkit2 D:\test.html D:\out.pdf", AppWinStyle.NormalFocus)
    End Sub
End Module
+++++++++++++++++++

You can use Shell() function to call htmltools.exe directly, this way will avoid the permission problem.

btw, htmltools.exe can't convert RTF file to PDF file very well, if you wish convert from RTF files to PDF files, we suggest you may download VeryDOC DOC to Any Converter Command Line from following web page to try,

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

You can use "-nooffice" option to convert office files to PDF files without MS Office and OpenOffice installed, please look at following web page for more information,

https://www.verydoc.com/blog/verydoc-doc-to-any-converter-command-line-v3-5-release-notes-convert-word-to-pdf-without-office-and-openoffice.html

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 HTML Converter (htmltools) | Tagged , , | Leave a comment

How to get correct page count from XPS and .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 verypdf 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? 

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

image

VeryPDF Spool File Page Counter SDK,

http://www.verypdf.com/app/hookprinter/spool-file-page-counter-sdk.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.

VeryPDF
-------------------------------------------
Yes, I do understand that.

I made some other tests, it looks like the SDK is able to get the right page counter when the files are spooled as PCL or PostScript by the printers driver, but not when is XPS.

In other words, when there are PostScript or PCL codes inside the .spl file it works properly, but if is a XPS inside de .spl it gets all information wrong.

I sending my the .SPL file that is not being counted properly.

I notice that your site says that XPS support is included within the SDK,

http://www.verypdf.com/app/hookprinter/spool-file-page-counter-sdk.html

Customer
-------------------------------------------
Hello,

Thanks for message, the latest version of Spool File Page Counter SDK does already support the XPS format, it can read the page count and page size information from XPS files, you may download the latest version of Spool File Page Counter SDK from our website to try again,

http://www.verypdf.com/app/hookprinter/try-and-buy.html#spl-page-counter-sdk
http://www.verypdf.com/dl2.php/ps-and-pcl-info-sdk.zip

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 Spool File Page Counter SDK | Tagged , , | Leave a comment

I'm looking for a PDF Editor SDK which has View, Edit, Draw, Highlight, Add text, Add pictures, add hyperlinks, add shapes, etc. functions, this will work on a server and supports both Website and iPad app.

Hi,

Which of your product packages supports the below for C# and Azure and Ionic environments.
(All below for PDF pages)

  • View, Edit
  • Draw, Highlight
  • Add text or predefined shapes (circle, rectangle, rounded rectangle, small predefine symbols (electrical, star) etc.)
  • Measure distance and convert to ft/meters etc.,
  • Compare two PDFs,
  • Add hyperlink to PDF pages, add pictures.

This will work on a server and supports both Website and iPad app.

How long is your license valid?

Please respond with email for initial quote.
Customer
-------------------------------------------------------
Thanks for your message, VeryPDF PDF Annotator OCX (ActiveX) Control has these functions, you may download PDF Annotator OCX (ActiveX) Control 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
http://www.verypdf.com/app/pdf-editor/pdf-editor-ocx-control.html

image

VeryPDF PDF Annotator Framework SDK for iOS can be downloaded from this web page,

http://www.verypdf.com/app/pdf-annotator-framework-sdk/index.html
http://www.verypdf.com/app/pdf-annotator-framework-sdk/try-and-buy.html#buy
http://www.verypdf.com/dl2.php/VeryPDFKitSDK-iOS.zip

You may also refer to following web pages for more information,

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

http://www.verypdf.com/app/pdf-editor/pdf-annotator-ocx-demo.html

http://www.verypdf.com/wordpress/201809/how-to-integrate-a-pdf-editor-or-pdf-annotation-into-my-windows-application-44150.html

You may download and test these products, if you encounter any problem with these products, please feel free to let us know, we are glad to assist you asap.

btw, the price can be found from above web pages directly.

These prices are one time price, once you purchase them, you can use them forever, you needn't renew them annually.

also, if you wish run PDF Annotator on a web server, you may also use VeryPDF HTML5 PDF Annotation, you may buy and test it from following web pages,

http://www.verypdf.com/app/html5-document-annotation/try-and-buy.html
http://online.verypdf.com/app/annotator/?url=http://online.verypdf.com/examples/pdfeditor.pdf

VeryPDF HTML5 PDF Annotation is a Web Application, it's written in PHP and JavaScript, you can buy the full source code license from us, then you can deploy it to your server, your customers will able to annotate PDF files on your owned servers easily.

The following web page is another version of VeryPDF Online PDF Editor, you may upload a PDF file and evaluate it online easily, we are also provide the source code license for this Online PDF Editor, this solution will allow you to run this PDF Editor on your owned servers, please feel free to let us know if you are interest in its source code license,

http://online.verypdf.com/online-pdf-editor

This is a screenshot for VeryPDF Online PDF Editor, you can add shapes easily with this Online PDF Editor,

image

VeryPDF

VN:F [1.9.20_1166]
Rating: 8.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in PDF Editor, VeryPDF Cloud API, VeryPDF SDK & COM | Tagged , , , , , | Leave a comment

How to batch convert scanned PDF files to Searchable PDF files and remove background color from new created PDF files (OCRed PDF files)?

I'm looking for a way to convert thousands of pdf's to searchable pdf's. I've used an OCR program. However, you can't select a folder, you have to go into each sub folder, select the files to convert, and then go to the next folder.

What is another way to convert a large number of pdf's to searchable pdf's?

Haven't had any suggestions. Surely there must be a way to batch convert pdf's(?).

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

image
This is a good question, VeryPDF has a solution to batch convert all of your PDF files in a folder and its subfolders to searchable PDF files with one command line, it's very easy and quickly.

In general, you can use "Image to PDF OCR Converter Command Line" software to do this work, only one software is enough, however, because some PDF files are contain color information, in order to remove color and grayscale background, we will use PDF to Image Converter Command Line to remove color and grayscale background from PDF files first, and then use "Image to PDF OCR Converter Command Line" software to convert from modified image files to searchable PDF files again.

Please refer to following steps to finish this work,

1. Please download PDF to Image Converter Command Line software from this web page first,

http://www.verypdf.com/app/pdf-to-image-converter/try-and-buy.html#buy-cmd
http://www.verypdf.com/dl2.php/pdf2image_win.zip

After you download and unzip it to a folder, you can run following command line to convert a PDF file to black and white TIFF file, and also remove the color background from TIFF file,

pdf2img.exe -$ "XXXXXXXXXXXXXX" -r 300 -threshold 180 "D:\verypdf.pdf" "D:\out.tif"

"-threshold 180" option will remove colors which threshold value less than 180, this option will remove background color automatically.

2. Please download "Image to PDF OCR Converter Command Line" software from this web page,

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

After you download and unzip it to a folder, you can run following command line to convert and combine modified TIFF files to a multi-page PDF file, with OCR option,

img2pdfnew.exe -$ XXXXXXXXXXXXXXXXXX -width 595 -height 842 -ocr 1 -tsocr -tsocrlang eng "D:\out*.tif" "D:\VeryPDF.pdf"

With above two steps, you will able to remove background color from PDF file and create a searchable PDF file.

If you have thousands of PDF files in a folder, you can use following .bat file to batch convert all of PDF files in this folder to searchable PDF file on the fly,
-------------------------------------
ECHO ON
set InputFolder=D:\downloads\pdf
set OutputFolder=D:\downloads\pdfocr
set TempFolder=D:\test

mkdir %OutputFolder%
mkdir %TempFolder%

for %%F in ("%InputFolder%\*.pdf") do (

del /Q "%TempFolder%\%%~nF*.tif"

.\pdf2image_win\pdf2img.exe -$ "XXXXXXXXXXXXXX" -r 300 "%%F" "%TempFolder%\%%~nF.tif"

.\img2pdfnew.exe -$ XXXXXXXXXXXXXXXXXX -width 595 -height 842 -ocr 1 -tsocr -tsocrlang eng "%TempFolder%\%%~nF*.tif" "%OutputFolder%\%%~nF.pdf"

)
-------------------------------------

Above .bat file is work for one folder at one time, however, if you wish support subfolders automatically, you can use following .bat file,
-------------------------------------
ECHO ON
set InputFolder=D:\downloads\pdf
set TempFolder=D:\test

mkdir %TempFolder%

for /r "%InputFolder%" %%F in (*.pdf) do (

del /Q "%TempFolder%\%%~nF*.tif"

.\pdf2image_win\pdf2img.exe -$ "XXXXXXXXXXXXXX" -r 300 "%%F" "%TempFolder%\%%~nF.tif"

.\img2pdfnew.exe -$ XXXXXXXXXXXXXXXXXX -width 595 -height 842 -ocr 1 -tsocr -tsocrlang eng "%TempFolder%\%%~nF*.tif" "%~dpnF-ocr.pdf"

)
-------------------------------------

even if you have thousands and thousands of PDF files it a folder and its subfolders, above .bat script will OCR all of them with one command line, it's wonderful.

image

We have another option which allow you to monitor a folder and its subfolders automatically, once a PDF file be copied into the monitored folder, the monitor application will convert this PDF file to searchable PDF file automatically, this function can be done by a "PHP Folder Watcher" application, you may download and buy "PHP Folder Watcher" from this web page,

https://veryutils.com/php-folder-watcher

PHP Folder Watcher is a PHP Script to monitor folders recursively, it's also support xcopy function to backup files.

PHP Folder Watcher is a convenient, automated way to monitor folders at background. PHP Folder Watch monitors one or more folders on your computer for new files. When a file is added to a monitored folder, it will call external script or application to process this new file automatically.

PHP Folder Watcher is especially useful for quickly posting scanned documents to a folder. If you save a scanned document to a folder that is being monitored by PHP Folder Watch, the file posting workflow begins automatically.

Enjoy!

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 Image to PDF Converter | Tagged , , , , | Leave a comment

Does PDF Text Replacer software support regular expressions?

hi,

Does it possible to use regular expressions in PDF text replacer?

do you have some examples?

regards,
Customer
---------------------------------------

image
Thanks for your message, PDF Text Replacer doesn't support regular expressions currently, it does support simple text replacement only.

btw, we have a PDF Text Replacer Command Line software, the command line version is work better than PDF Text Replacer GUI version, you may download PDF Text Replacer Command Line software from our website to try,

http://www.verypdf.com/app/pdf-text-replacer/try-and-buy.html#buy-cmd
http://www.verypdf.com/dl2.php/pdftextreplacer_cmd.zip

You may also look at following web pages for more information about PDF Text Replacer Command Line software,

http://www.verypdf.com/app/pdf-text-replacer/search-and-replace-pdf-text-command-line.html

http://www.verypdf.com/wordpress/201303/verypdf-releases-pdf-text-replacer-command-line-software-35653.html

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
Page 1 of 1,41912345...102030...Last »