PDF Margin Crop

## PDF Margin Crop Issue, crop PDF pages automatically from C# and command line options, remove PDF margins from PDF files

We have been using the PDF Margin Crop utility for some time to crop documents. We are using C#.NET to call the utility. We currently just pass 20x20x20x20 margin, line width 1 and speckle size 1.

Issue that we are seeing is that with certain PDF documents, some of the page numbers are removed or cutoff in the cropped document, and in some cases certain pages are trimmed down too far causing them to auto-print in landscape versus portrait. What is unusual is that when comparing files that have these issues to files that don't, there is not an obvious cause. Is this something that you have experienced and may have an idea what the root cause may be?

Customer
-----------------------------------------------------
Hello,
Attached are examples. I included both a good example (B) compared to the example with issues (A). We have seen others with similar issues. If you need more of these examples let me know.

DocA = Original Chinese Version PDF

DocB = Original English Version PDF

DocACrop = Cropped Chinese Version PDF, pages 2-7 (missing or cut-off page numbers), Observed Issues: pages 41 & 43 auto-rotate to landscape when printed (only heading height in attached example)

DocBCrop = Cropped English Version PDF, no issues (respective pages to Chinese version with issues are pages 2-11, 53 & 55)

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

Thanks for your message, you can run following command line to crop your PDF file properly,

"-linewidth 0 -specklesize 0 -margin 3x3x3x3pt" options will work fine to you, please give it a try.

VeryDOC

VN:F [1.9.20_1166]
VN:F [1.9.20_1166]
DOC to Any Converter

## How to call doc2any.exe from web application to convert Office documents include DOC, DOCX, XLS, XLSX, PPT, PPTX, ODT etc. documents to PDF files?

Hi,

We purchase a verydoc cmd line package for using on a Windows Server. Our license is: XXXXXXXXXXXXXXXXX.
We moved to another VM and now VeryDoc CmdLine is not working anymore. ExitCode = 4.

Pls help with this issue as our cistomers are awaiting for solution.

I attached the order.

Our code to convert a odt file (could also be an .xls, .xlsx, etc file):
string appPath = @"c:\VeryDoc\doc2any_cmd\doc2any.exe ";
string strCmd1 = @" -useopenoffice -$XXXXXXXXXXXXXXXXX 'E:\sources\GMS\VMH2.WebApp\DownloadedFile\Email\example_01_30_2020_01_14_59.odt' 'E:\sources\GMS\VMH2.WebApp\UploadTempFile\TempPdf\EmailViewPDF_6f48c036-09f5-4968-bdb4-f6c8dc2ca46c.pdf' "; Process proc = new Process(); proc.StartInfo.FileName = appPath; proc.StartInfo.Arguments = strCmd; proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; try { //Converting Input file format to .pdf proc.Start(); proc.WaitForExit(); } catch (Exception ex) { _log.Error(ex); Console.WriteLine(ex.Message); if (!string.IsNullOrEmpty(AttachmentPath)) { System.IO.File.Delete(AttachmentPath); } message = "Error.Unable to Generate PDF"; } In above case the input file is just the example.odt which is included in the zip package. When I am on a command line windows and executed the command manually, it convert the .odt to .pdf. But when executed within our web application it does not convert. Pls help asap. Customer ---------------------------------------- Thanks for your message, we understand your meaning, this problem is caused by the restrictions in Local System user account, when you call doc2any.exe from a web application, you need run doc2any.exe inside an interactive user account instead of default Local System user account, because Local System account has lots of restrictions. You can use VeryPDFComRunCmd COM Component to run doc2any.exe from interactive user account, VeryPDFComRunCmd COM Component can be downloaded from this web page, VeryPDFComRunCmd is an EXE COM Component which can be used to launch any EXE or Office application from ASP, PHP, C#, .NET etc. program languages. VeryPDFComRunCmd COM is a freeware. http://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 http://www.verypdf.com/dl2.php/VeryPDFComRunCmd.zip You can use following ASP code to call any EXE or MS Office without any permission problem, <% set VeryPDFCom = Server.CreateObject("VeryPDFCom.RunCmd") dim nRetVal, bRet bRet = VeryPDFCom.RunCmd("C:\windows\notepad.exe", 5, 0) strRet = VeryPDFCom.RunCmd2("cmd /c dir C:\", 5) Response.Write strRet & vbCrlf %> Here is a PHP example to call an EXE application by VeryPDFComRunCmd COM, <?php$comobj = new COM("VeryPDFCom.RunCmd") or die("Couldn't create the COM Component");
$strCmd =$comobj->RunCmd2("cmd /c dir C:\", 5);
echo("Output is:\r\n" . \$strCmd);

?>

ASP.NET example to call an EXE application by VeryPDFComRunCmd COM,
<%

dim VeryPDFCom = Server.CreateObject("VeryPDFCom.RunCmd")
dim strCmd = """C:\VeryPDF\htmltopdf.exe"" C:\Test\in.html C:\Test\out.pdf"
Response.Write(strCmd & vbCrlf)
dim strRet = VeryPDFCom.RunCmd2(strCmd, 5)
Response.Write(strRet & vbCrlf)

%>

http://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

VeryDOC

VN:F [1.9.20_1166]
VN:F [1.9.20_1166]

## Purchase the software to convert from Office Word documents and AutoCAD DWG, DXF files to PDF files

Purchase of word and auto cad DWG, DXF files to pdf converter. I have a laptop OS-2008. Printer is hp deskjet 1510.

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

Thanks for your message, do you want to convert from AutoCAD DWG and DXF files to PDF files? if yes, you may download and buy following products from our website,

DWG to Vector Converter Command Line,
https://www.verydoc.com/dwg-to-vector.html
http://www.verydoc.com/verydoc_dwg2vector_cmd.zip

AutoCAD DWG and DXF To PDF Converter v2.0 (+ Command Line),
https://www.verydoc.com/dwg-converter.html

These products are all can convert from AutoCAD DWG and DXF files to PDF files, you may download the trial version of them from our website to try.

If you wish convert from Word DOC files to PDF files, you may download and purchase VeryDOC DOC to Any Converter Command Line from this web page,

You can use VeryDOC DOC to Any Converter Command Line to convert from Word documents to PDF files easily.

VeryDOC

VN:F [1.9.20_1166]
VN:F [1.9.20_1166]
DWG to Vector Converter

## How to convert from AutoCAD DWG drawing to SVG images?

Sirs,

We are attempting to convert CAD DWG images to SVG images. The images we have converted on a free site will not convert the scale of the DWG image. Will your software make the conversion on a one to one scale?

Customer
-----------------------------------------
Thanks for your message, yes, our software does able to make the conversion on an one to one scale, please download "DWG to Vector Converter Command Line" from this web page to convert from AutoCAD DWG files to SVG files,

after you download it, you can run following command line to convert your DWG files to SVG files easily,

dwg2vec.exe C:\test.dwg C:\out.svg

or, you can special DPI resolution for the DWG to SVG conversion, for example,

dwg2vec.exe -dpi 72 C:\test.dwg C:\out.svg

VeryDOC

VN:F [1.9.20_1166]
VN:F [1.9.20_1166]
DOC to Any Converter

## Will VeryDOC Doc to Any Converter Command Line converts Microsoft Publisher (.pub) files to PDF files?

Does the Office to Any Converter always require an administrator password/authorization to run?

I am trying to trial version and every time I attempt to run the program (startup) it requires the administrator password. However, there may have been an abnormality in the installation process.

Customer
-----------------------------------------------
We apologize for any inconvenience this may have caused to you, yes, the current version of Office to Any Converter always require an administrator password/authorization to run, however, if you don't want to use administrator privilege to convert from office files to PDF files, we suggest you may download "VeryDOC DOC to Any Converter Command Line" from this web page to try,

"VeryDOC DOC to Any Converter Command Line" can be used to convert office files to PDF files and other formats without administrator privilege, you can also call doc2any.exe from a script for batch conversion, we hope this software will useful to you.

VeryDOC
-----------------------------------------------

And VeryDOC Doc to Any Converter Command Line will work for Microsoft Publisher (.pub) files?

I was looking at the documentation and didn't see it listed.

Customer
-----------------------------------------------
Thanks for your message, yes, VeryDOC Doc to Any Converter Command Line doesn't support .pub files, please look at supported formats from this web page, the .pub format is included in this web page,

https://www.verydoc.com/blog/doc2any-command-line-and-sdk-supported-document-formats.html

VeryDOC

VN:F [1.9.20_1166]