How to convert from Office documents to PDF files from scheduled task?

VeryDoc:

We have doc2any v2.2.0.1 and we got a new server (windows server 2016 w/MS Word 2016 only installed and all Office Tools). I am having trouble getting doc2any to run on this new server as a scheduled task.

When I run the following command using cmd using "Run as Administrator", it converts the file:

D:\doc2any_cmd\doc2any.exe "-$" "XXXXXXXXXXXXXXX" "D:\Scheduler\GradConvertUpload\Resume.docx" "D:\Scheduler\GradConvertUpload\Resume.pdf"

I can also execute the entire program that would have run as a scheduled task if I run it manually using the method above. However, when I try to run as a scheduled task, doc2any just hangs after briefly seeing doc2rtf.dll.

Is there anything I need to make sure of when I run the scheduled task (runs as a different user, but should also be an admin)?

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

image
Thanks for your message, you can run doc2any.exe or MS Office DCOM inside an interactive user account instead of system user account, you will able to get it work properly.

Please look at following web pages for more information,

https://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm

https://www.verydoc.com/others/configure-word-and-excel.htm

https://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

If you still can't get it work, please feel free to let us know, we are glad to 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 DOC to Any Converter | Tagged , , , , , , , , , , | Leave a comment

Wrong PDF/A Converted Document, the different fonts in original PDF file and converted PDF/A file

Hello,

Our problem:
We generate an PDF with our ERP-System. After that the Batch-Converter converts this PDF into a PDF A.

The original document contains the fonts Arial. When we copy some lines out of the PDF after the converting process and paste it to any text editor the fonts is completely different (Russian-Fonts)

We need your help! All our customers cannot process these documents in their system.

Best regards
Customer
---------------------------------------------------

image
Thanks for your message, you may download "PDF to PDF/A Converter Command Line" from this web page to try,

https://www.verydoc.com/pdf-to-pdfa.html
http://www.verydoc.com/pdf2pdfa_cmd.zip

after you download it, you can use "-mode 2" parameter to convert from your normal PDF files to PDF/A files, this "-mode 2" parameter will analyze all objects in PDF file, it will check and repair all objects in PDF file and arrange them to comply with the PDF/A compliance, this parameter is great to process various kinds of PDF files over the world, you can use this parameter like below,

pdf2pdfa.exe -mode 2 "sample1.pdf" "_sample1-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample2.pdf" "_sample2-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample3.pdf" "_sample3-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample4.pdf" "_sample4-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample5.pdf" "_sample5-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample6.pdf" "_sample6-pdfa.pdf"
pdf2pdfa.exe -mode 2 "sample7.pdf" "_sample7-pdfa.pdf"

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

Error on pcltool.dll when a large number of files are processed

Hello!

We are using the Spool File Page Counter SDK on our print management service. Basically, we have a service and every time it intercepts a new print job, it analyzes its .SPL file.

So, we could have multiple threads accessing and using the SDK at the same time, it works well when there aren't a large number of files being processed.

But on our load/stress tests we usually send a large number of print jobs to the printers, that's when we are getting an error within the SDK, on the windows event viewer a pcltool.dll error can be found.

After the first error occurs, we will get the same problem every time we try to analyze a file, no matter how many files or its sizes.

I'm sending a print of the problem, I believe that is related to the amount of files that the SDK try to process, maybe a thread problem, as a many of them are using the SDK at the same time.

In our production version, we will most likely face this kind of environment, where a large number of files will be processed at the "same time".

Have you ever faced this kind of issue ? Is there a solution for this or a workaround that we could use?

Customer
---------------------------------------
here is the print of the error.

I forgot to mention but when this error occurs, the results of the SDK analyzes are all wrong.

image

Customer
---------------------------------------
Yes, I guess it may caused by multiple thread problem. In order to solve this problem completely, I guess the following two solutions may useful to you,

Solution 1:

If you are calling ReadInfo.dll library inside a multiple thread function in your source code, you may call ReadInfoFromAllFormats() function to parse all of your SPL files one by one, you may use a Global Value or a Mutex Object to avoid multiple thread call to ReadInfoFromAllFormats() function at same time, this problem will be solved completely.

Solution 2:

You can create a simple Command Line EXE application to call ReadInfoFromAllFormats() function from ReadInfo.dll library, then you can call this EXE application from your main EXE application, because this Command Line EXE application running inside another process space, so you can run multiple instances of this Command Line EXE application without any problem.

With this method, you could able to use "Spool File Page Counter SDK" to analyze more of your SPL files at same time.

We hoping above two solutions will useful to you, you may give them to try.

VeryDOC

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

After I sent the ticket to you, I thought another solution.

I guess this problem may caused by memory management mechanism between C# and C++, I have another solution for you to solve this problem quickly and completely.

This solution will work like below,

1. You may register FileInfoCOM.exe into your system by following command line with administrator privilege,

FileInfoCOM.exe /regserver

You can also run "install.vbs" to register FileInfoCOM.exe into your system automatically.

2. You can use FileInfoCOM.exe to instead of ReadInfo.dll DLL library, you can call FileInfoCOM.exe from C# by following sample source code,

--------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using FileInfoCOM;

namespace ParsingTest {
    class Program {

        static void Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("test.exe C:\\test.pcl");
                Console.WriteLine("test.exe C:\\test.ps");
                return;
            }
            Console.Write("args length is ");
            Console.WriteLine(args.Length); // Write array length
            for (int i = 0; i < args.Length; i++) // Loop through array
            {
                string argument = args[i];
                Console.Write("args index ");
                Console.Write(i); // Write index
                Console.Write(" is [");
                Console.Write(argument); // Write string
                Console.WriteLine("]");
            }
            string fileName = args[0];
            int bIsRenderToPDF = 0;
            int bwPageCount = 0;
            int colorPageCount = 0;
            int copyCount = 0;
            double nPageWidth = 0;
            double nPageHeight = 0;
            string strPaperSizeName = new string(' ', 300);

            FileInfoCOM.FileInfoClass objFileInfoCom = new FileInfoCOM.FileInfoClassClass();

            objFileInfoCom.com_ReadInfoSetCode("XXXXXXXXXXXXXXXXXX");
            objFileInfoCom.com_ReadInfoFromPCLFile(fileName, bIsRenderToPDF, ref bwPageCount, ref colorPageCount,
                    ref copyCount, ref nPageWidth, ref nPageHeight, ref strPaperSizeName);

            Console.WriteLine(String.Format("File: {0}", fileName));
            Console.WriteLine(String.Format("Render To PDF: {0}", bIsRenderToPDF));
            Console.WriteLine(String.Format("BW Pages: {0}", bwPageCount));
            Console.WriteLine(String.Format("Color Pages: {0}", colorPageCount));
            Console.WriteLine(String.Format("Width: {0}", nPageWidth));
            Console.WriteLine(String.Format("Height: {0}", nPageHeight));
            Console.WriteLine(String.Format("Paper name: {0}", strPaperSizeName));
        }
    }
}
--------------------

3. You may call "FileInfoCOM.FileInfoClass objFileInfoCom" from a multiple thread function to parse more SPL files at same time, you can use this method to check if you could parse more SPL files from C# multiple threads properly.

Because "FileInfoCOM.exe" is another EXE process, it does use a different memory management mechanism compare to C# process, I guess the "FileInfoCOM.exe" will able to solve this problem to you too.

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

Error at FileInfoCOM.exe when I try to count the page number from SPL, PCL, PDF, PS, SPL-EMF, Spool files by Spool File Page Counter SDK

Hello,

We are using the Spool File Page Counter SDK in one of our projects.
Basically, we're monitoring the windows print spooler and every time that a new print job is identified, the application gets its respective .SPL file and process it through your SDK.
We are getting an error in this process though, for some reason the SDK is not being able to process some .SPL file and crashes the windows spoolsv.exe, as the file is kept in the SDK process.

Here is the log from windows event viewer that revealed the error:

Faulting application name: FileInfoCOM.exe, version: 1.0.0.0, time stamp: 0x59093997
Faulting module name: ReadInfo.dll, version: 1.0.0.1, time stamp: 0x5c9e7533
Exception code: 0xc0000005
Fault offset: 0x00004da0
Faulting process id: 0x26f8
Faulting application start time: 0x01d4f92f883a560c
Faulting application path: C:\Program Files (x86)\NetClientService\FileInfoCOM.exe
Faulting module path: C:\Program Files (x86)\NetClientService\ReadInfo.dll
Report Id: bdeaec7e-6523-11e9-a3f6-000c2931ae13
Faulting package full name: %14
Faulting package-relative application ID: %15

My question is: Have you guys faced this kind of issue before? Is this a well know behavior or not ?

Thank you! 
Customer
------------------------------

image
We suggest you may download the latest version of Spool File Page Counter SDK from our website to try again,

https://www.verydoc.com/spool-page-count.html
http://www.verydoc.com/ps-and-pcl-info-sdk.zip

If you still have same problem with the latest version of Spool File Page Counter SDK product, please feel free send to us your sample SPL file for test purpose, after we check your sample SPL file, we will figure out a solution 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 PCL, PS, PDF Page Counter | Tagged , , , , , | Leave a comment

AutoCAD DWG and DXF to PDF Converter v2.2 failed to convert my DWG files to PDF files

I finally got the files to add. I've clicked all the filenames and one of them and then clicked the "Make pdf" button, named the file in the place I want it but nothing ever shows up. How do I get these files to convert so I can see if we want to purchase this program?

image

Customer
-------------------------------------------
Thanks for your sample DWG files, we will test with AutoCAD DWG and DXF to PDF Converter v2.2 shortly. In the meantime, we suggest you may download VeryDOC DWG to Vector Converter Command Line from our website to try, DWG to Vector Converter Command Line does support all versions of DWG formats, we hope this product will work better to you.

btw, I just tested these DWG files with VeryDOC DWG to Vector Converter Command Line software, these DWG files can be converted to PDF files without any problem, you may download VeryDOC DWG to Vector Converter Command Line from this web page and try it by yourself,

https://www.verydoc.com/dwg-to-vector.html
http://www.verydoc.com/verydoc_dwg2vector_cmd.zip

after you download it and unzip it to a folder, you can run following command line to batch convert all of your DWG files to PDF files properly,

dwg2vec.exe D:\downloads\*.dwg

Please look at following screenshot for a PDF file which converted from your DWG file,

image

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 DWG to PDF Converter, DWG to Vector Converter | Tagged , , , , | Leave a comment
Page 1 of 33412345...102030...Last »