Print PDF files with margins cut

F

Fabrizio

If I print a pdf file with the source listed below, print out with the
trimmed edges. In fact I get a technical drawing with the missing
information.

The same results if I print from explorer context menu.
If I open the pdf file with Acrobat and do printing, the printed sheet is
correct.


How do I properly print the entire PDF file through code?

Thanks
Regards
 
F

Fabrizio

i forgot the source that i use:

Process proc = new Process();
proc.StartInfo.FileName = "c:\\filo.pdf";
proc.StartInfo.Verb = "Print";
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.UseShellExecute = true;
proc.Start();
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
if (proc.HasExited == false)
{
proc.WaitForExit(10000);
}
proc.EnableRaisingEvents = true;
proc.CloseMainWindow();
proc.Close()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top