Quantcast
Viewing all articles
Browse latest Browse all 4990

Calling NConvert from ASP.Net

by cday (Posted Mon Apr 04, 2016 7:47 pm)
Some problems with your NConvert code, I think:

Code: Select all
"-c fax -multi -out pdf -o %.pdf - overwrite -quiet {0}"

For a PDF file Fax compression is 1 :

Code: Select all
-c value          : Compression number
              default : 0 (uncompressed)
              PDF    : 1 (Fax), 2 (Rle), 3 (LZW), 4(ZIP), 5 (JPEG)

So:

Code: Select all
"-out pdf -multi -quiet -overwrite -c 1 -o %.pdf {0}"

And the order of some terms looks wrong, so try this ordrer:

Code: Select all
"-out pdf -multi -quiet -overwrite -c 1 -o %.pdf {0}"

There's not much documentation on the permitted order of terms but about that order worked earlier today in another thread...

I can't comment on your ASP code, and the command line is so unforgiving in some respects that the above changes may only be steps on the way to final working code... Image may be NSFW.
Clik here to view.
:wink:


Read Main Topic

Viewing all articles
Browse latest Browse all 4990

Trending Articles