How to print PDF file to Canon Printer 11×17 size paper?

I am trying to send a PDF document to a Canon iR-ADV C5235/5240 PS3 printer and specifying paper size 11x17 but the Canon printer is not understanding that size. I am using C# and the Process object. I set the process start arguments as -paper "11x17" -printer \\printserver\printername file.pdf. The printer shows an error saying that A5 paper is not available and that I need to select a different size. I do not have this problem sending to other printers.

I am using an evaluation version of PDFPrint and needing to know if it will work for us. If I cannot print these documents then I cannot use the product.

I have also tried using different sizes like ledger, tabloid, 11inx17in, 17x11 but none seem to work.

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

image
Please use "-paper pdf" option to try again, e.g.,

pdfprint.exe -paper pdf C:\test.pdf

You can also run following command lines to print your PDF file again,

pdfprint.exe -shell C:\test.pdf
pdfprint.exe -shell2 C:\test.pdf
pdfprint.exe -raster2 C:\test.pdf
pdfprint.exe -vector C:\test.pdf
pdfprint.exe -printermargins -raster2 C:\test.pdf
pdfprint.exe -raster2 -rasterbwtext -rasterbitcount 1 -xres 150 -yres 150 C:\input.pdf
pdfprint.exe -useembedfont C:\test.pdf

Can you print your PDF file properly with one of above command lines?

VeryPDF
----------------------------------------------
I can get the document to print using the -paper pdf option but it does not print on 11x17 paper. It prints on 8 1/2 x 11.

I can get the document to print on 11x17 paper from the command line using -paper "11x17" and -scalex 0 -scaley 0 options but cannot get the document to print on 11x17 paper from a C# program. When I specify these parameters the printer displays an error that it does not understand the printer size I specified.

Using the options below:
-shell option got an error saying .pdf is not a program
-shell2 the document printed but not on 11x17 paper. Printed 8 1/2 x 11
-raster2 document printed on 11x17 paper but the image was 8 1/2 x 11 with landscape orientation
-printmargins2 -raster2 document printed on 8 1/2 x 11 paper
-raster2 -rasterbwtext -rasterbitcount 1 -xres -yres 150 document printed on 8 1/2 x 11 paper.

Also I found that printing from my local machine using -paper "11x17" -scalex 0 -scaley 0 prints on 11x17 paper but printing from a windows 2008 r2 server with the same options prints on 8 1/2 x 11 paper.

Customer
----------------------------------------------
>>I can get the document to print on 11x17 paper from the command line using -paper "11x17" and -scalex 0 -scaley 0 options but cannot get the document to print on 11x17 paper from a c# program. When I specify these parameters the printer displays an error that it does not understand the printer size I specified.
>>Also I found that printing from my local machine using -paper "11x17" -scalex 0 -scaley 0 prints on 11x17 paper but printing from a windows 2008 r2 server with the same options prints on 8 1/2 x 11 paper.

Thanks for your message, this maybe caused by permission restriction, please run pdfprint.exe from Administrator user account instead of default system user account, then you will get it work.

You can call RunAs.exe from your C# code to run pdfprint.exe from Administrator user account.

You can also call pdfprint.exe by VeryPDFComRunCmd COM Component from C# code to run it inside Administrator user account. VeryPDFComRunCmd COM Component can be downloaded from following web page,

http://www.verydoc.com/exeshell.html#VeryPDFComRunCmd_COM_Component
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

If you run pdfprint.exe from Administrator user account, pdfprint.exe will work same as when you run it in CMD window by manual.

VeryPDF
----------------------------------------------
I tried all the suggestions below but none have worked. What I also found was that the only way I can print a document to print on 11x17 paper on the Canon printer is that I have to go into print preferences for the printer and select 11x17 paper size. I have found this to be the case on other Canon printers as well. No command line options seem to have any effect on what paper size the document prints to.

Initially I did not realize that the command line options were not working because I was getting documents to print on the correct size paper but that was because the printer preferences where set to the size I was printing. If I change the printer preferences to letter I cannot specify anything on the command line that will cause the document to print on any other size than letter. Same if I set the printer preferences to 11x17. I cannot specify anything on the command line to print on any other paper than 11x17. I have tried 11x17, ledger, 3, 4. I have also tried -chgbin and specified the bin holding the ledger size paper but it did not work.

I have also found this to be the same case whether windows 7 or windows 2008 R2.

Customer
----------------------------------------------
We suggest you may by following steps to adjust margins, duplex, paper size, staple, fold, etc. options,

1. Please run following command line to prompt the user Printer Dialog and save the printer settings to a disk file,

pdfprint.exe -savedevmode D:\printer.dat -printer "Your Printer Name"

2. In the Printer Dialog, you can set following options, such as,

set "Duplex" option to "Top-Top" or others;
set default paper tray to "Tray 3" or others;
set the paper size to "11x17" or others;
set other options that you want;
set staple to "on" or others,
set fold or staple option,
set double sided printing option,

click "OK" to close Printer Dialog, you will get a D:\printer.dat file,

3. Please run following command line to load the devmode from disk file and set it to printer,

pdfprint.exe -loaddevmode D:\printer.dat -printer "Your Printer Name" D:\input.pdf

4. OK, you will able to print your PDF file with correct options.

We hoping above solution will helpful to you, please to try.

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 Print | Tagged | Leave a comment

How to stitch PDF pages horizontally?

I am evaluating PDF Stitch for Mac, trial version.

http://www.verypdf.com/app/pdf-stitch/try-and-buy.html

I have two PDF pages, 8.5" by 11" and a third page that is 6" by 11".

I desire to stitch them together, horizontally, for a total combined page size of 23" W by 11" H.

I have tried 4 times without accomplishing this task.

What am I missing and failing to do?

If this works, I have a larger task to accomplish in which I would purchase the software to complete the task.

image

Thanks.
Customer
---------------------------------------------

Please look at following PDF file, this PDF file was Stitched by PDF Stitch Command Line application, we hoping this PDF file will useful to you,

image

We are get this stitched PDF file by following steps,

1. Use VeryPDF PDF Split-Merge Command Line software to combine three PDF files into one single PDF file,

http://www.verypdf.com/app/pdf-split-merge/try-and-buy.html

"C:\Program Files (x86)\VeryPDF PDF Split-Merge v3.0\pdfpg.exe" D:\downloads\20140825_pg_01.pdf D:\downloads\20140825_pg_02.pdf D:\downloads\20140825_pg_03.pdf D:\downloads\20140825.pdf

2. Use Advanced PDF Tools Command Line to resize all pages in this PDF file to Letter paper size,

http://www.verypdf.com/app/advanced-pdf-tools/try-and-buy.html

pdftools.exe -x " 0 0 612.0 792.0" -j "612.0 792.0 true" D:\downloads\20140825.pdf D:\downloads\20140825.pdf

If you are using Advanced PDF Tools GUI version, you can choose following options to scale all PDF pages to fit to Letter paper size,

image

3. Use PDF Stitch Command Line application to stitch this three PDF pages into one single PDF page,

http://www.verypdf.com/app/pdf-stitch/try-and-buy.html

"C:\Program Files (x86)\VeryPDF PDF Stitch v2.1\pdfstitch.exe" -per "3*1" D:\downloads\_20140825.pdf D:\downloads\1_20140825.pdf

OK, we will get a final stitched PDF file.

Please notice, because your original PDF files are not aligned at horizontal direction, so the stitched PDF file has a bit of misplaced, this is normal, the matched PDF files will be stitched perfectly.

VeryPDF

See Also:

http://www.verypdf.com/wordpress/201401/how-to-stitch-multi-page-pdf-file-to-one-single-pdf-page-vertically-stitch-join-merge-concatenate-pdf-pages-into-one-page-40250.html

http://www.verypdf.com/app/pdf-stitch/pdf-stitch-command-line-guide.html

http://www.verypdf.com/wordpress/201209/how-to-use-the-command-line-application-of-pdf-stitch-31921.html

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in PDF Stitcher | Tagged , , | Leave a comment

simple question about converting html to pdf

Hi

just trying to play with the command line version of htmltools. Before I buy and before I hand off to our internal support techies I was trying to convert a bunch of html files to pdf files

I had "htmltools c:\temp\in\*.html c:\temp\out\*.pdf" where the \in has the the html files and \out was the output directory.

but I'm getting an error response.

The windows version worked fine so I'm assuming I'm using the wrong command line. I need a separate file for each html file, the output file name should stay the same, and ideally I'd 200*200 resolution.

if there was a way of seeing what htmltool settings were set when running the windows version I'm sure i could sort it out myself but I'm in a hurry.

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

image
Thanks for your message, the latest version of htmltools.exe does support -webkit option, you can use this option to convert your HTML files to PDF files properly, e.g.,

htmltools -webkit c:\temp\in\test.html c:\temp\out\test.pdf

You can also use DOS FOR command line to the batch conversion, e.g.,

for %F in (c:\temp\in\*.html) do htmltools -webkit "%F" "c:\temp\out\%~nF.pdf"

Above command line will batch convert all HTML files in c:\temp\in\ folder to PDF files into c:\temp\out\ folder.

We hoping -webkit option will work fine to you, you may use it to try.

VeryPDF

See Also:

http://www.verypdf.com/wordpress/201311/batch-convert-html-files-to-pdf-files-by-htmltools-exe-webkit-command-39293.html

http://www.verypdf.com/app/html-converter/update.html

http://www.verypdf.com/wordpress/201312/how-to-call-htmltools-exe-from-iis7-5-how-to-show-detailed-log-message-in-iis-7-5-how-to-set-execute-permission-in-iis-7-5-40167.html

http://www.verypdf.com/wordpress/201311/html2pdf-htmltools-exe-is-stretching-content-39658.html

http://www.verypdf.com/wordpress/category/htmltools

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

Problem running htmltools from ASP.NET / IIS 7.5 / Server 2008 R2

I'm having trouble running htmltools.exe from ASP.NET C# code on a Windows Server 2008 R2. I have tried everything I could find, but still have no luck.

The exit code of the process is -1073741502, and each attempt run generates an event log entry with this message:
Application popup: htmltools.exe - Application Error : The application was unable to start correctly (0xc0000142). Click OK to close the application.

These are all the things I've tried, with no luck:

- ran the command manually from an administrator elevated command prompt (works)
- ran the command manually from a normal command prompt (works after the above is run first)
- registered the htmlshell.dll manually both using the 32bit and 64bit regsvr32
- copied the two dlls mentioned in install.bat in both system32 and syswow64 folders
- tried with the latest htmltools.zip downloaded from from verypdf.com (which even though I supply it with a valid license key it still says it's a trial)
- added write privileges to all folders of the web application and the htmltools folder for the IIS application pool
- tried setting the Domain, Username and Password fields of the ProcessStartInfo object to my own Domain Admin credentials, and added full write privileges to my own user to all folders involved
- tried using both a 32bit and a 64bit IIS application pool

At this point, I have nothing else left to try. As far as I can see, the application fails to start because it's DLLs are not being loaded properly. (the 0xc0000142 error is STATUS_DLL_INIT_FAILED)

Is there something else I can try? Does the application work at all when launched from .NET under IIS 7.5?

Thanks.
Customer
----------------------------------------------------

image
Thanks for your message, you can use "VeryPDFComRunCmd COM Component" to call htmltools.exe from your ASP.NET C# code to convert HTML file to PDF file, "VeryPDFComRunCmd COM Component" can be downloaded from following web page,

http://www.verydoc.com/exeshell.html#VeryPDFComRunCmd_COM_Component

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

You can set "VeryPDFCom.RunCmd" COM run inside administrator user account, then you can use following code to convert HTML file to PDF file from administrator user account,

set VeryPDFCom = CreateObject("VeryPDFCom.RunCmd")
dim nRetVal, bRet
strRet = VeryPDFCom.RunCmd2("D:\\verypdf\\htmltools.exe D:\\test.html D:\\out.pdf", 5)
strRet = VeryPDFCom.RunCmd2("D:\\verypdf\\htmltools.exe -webkit D:\\test.html D:\\out.pdf", 5)
msgbox strRet

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), VeryPDF SDK & COM | Tagged , | Leave a comment

VeryPDF Cloud OCR API does convert scanned PDF files to text files, it can also extract text positions from scanned PDF files

VeryPDF Cloud API Platform:

http://www.verypdf.com/online/cloud-api/index.html

VeryPDF Cloud API is support two type of OCR apps, one is "ocr", another is "pdf2txtocr". "ocr" app is for image formats only, "pdf2txtocr" is for PDF format only, please understand their difference.

"ocr" app is not support PDF format, it is support .tif, .tiff, .png, .gif, .bmp, .jpg image formats, it can convert these image files to plain text files or HTML files, it can also extract position for each word from these image files.

太阳  The following URL will convert a multi-page TIFF file to a single text file, word positions will be output to browser,

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXXX&app=ocr
&infile=https://dl.dropboxusercontent.com/u/5570462/multipage.tif
&outfile=out.txt&format=1&dumpwordpos=1&dumptofile=0

The following is the OCRed contents from input TIFF file,

***** page_1; image "20140823-102452-2088203320.tif"; bbox 0 0 2000 2388; ppageno 0
[23 32 262 74] 'Universal'
[278 31 569 73] 'Declaration'
[586 31 637 73] 'of'
[649 31 836 72] 'Human'
[853 30 1012 83] 'Rights'
[24 152 197 186] 'Whereas'
[212 151 438 196] 'recognition'
[453 150 497 185] 'of'
[507 150 567 185] 'the'
[582 150 745 185] 'inherent'
[759 150 899 195] 'dignity'
[914 149 983 184] 'and'
[998 149 1041 184] 'of'
[1051 149 1111 184] 'the'
[1126 149 1232 194] 'equal'
[1249 148 1319 183] 'and'
[1334 148 1551 183] 'inalienable'
[1565 148 1677 193] 'rights'

太阳  The following URL will convert a multi-page TIFF file to a single text file, word positions will be redirect to a disk file on the server, the converted file URL will be outputted to web browser,

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXXX&app=ocr
&infile=https://dl.dropboxusercontent.com/u/5570462/multipage.tif
&outfile=out.txt&format=1&dumpwordpos=1&dumptofile=1

太阳  The following URL will convert a multi-page TIFF file to a single text file and without word positions,

http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXXX&app=ocr
&infile=https://dl.dropboxusercontent.com/u/5570462/multipage.tif
&outfile=out.txt

If you want convert a scanned PDF file to text file, please use "pdf2txtocr" app to instead of "ocr" app. "pdf2txtocr" app is support PDF format only, it can convert online PDF files to text or HTML files, it can also extract word position for each word.

太阳  The following URL will extract text contents and text positions from PDF file and save to a disk file on server, the converted file URL will be outputted to web browser,

http://online.verypdf.com/api/?apikey=XXXXXXXXXX&app=pdf2txtocr
&infile=https://dl.dropboxusercontent.com/u/5570462/test-2pages.pdf
&outfile=out.txt&format=1&dumpwordpos=1&dumptofile=1

太阳  The following URL will extract text contents and text positions from PDF file, show text positions to web browser,

http://online.verypdf.com/api/?apikey=XXXXXXXXXX&app=pdf2txtocr
&infile=https://dl.dropboxusercontent.com/u/5570462/test-2pages.pdf
&outfile=out.txt&format=1&dumpwordpos=1&dumptofile=0

太阳  The following URL will extract text contents from PDF file and without text positions,

http://online.verypdf.com/api/?apikey=XXXXXXXXXX&app=pdf2txtocr
&infile=https://dl.dropboxusercontent.com/u/5570462/test-2pages.pdf
&outfile=out.txt

灯泡 Please Notice:

1. Input TIFF, JPG, PNG or PDF file should be 300DPI or more DPIs.

2. Input TIFF, JPG, PNG or PDF file should be blank and white color depth.

3. Input TIFF, JPG, PNG or PDF file should be less than 3MB or less than 5 pages, too big or too many pages will cause timeout problem or be killed by server monitor.

If you encounter any problem with "ocr" or "pdf2txtocr" app, please feel free to let us know, we will assist you asap.

http://support.verypdf.com/open.php

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 VeryPDF Cloud API | Tagged , , , , | Leave a comment
Page 1 of 1,28412345...102030...Last »