Hello Thanks for that.
The issue I'm trying to solve is a bit different now. Please let me start over....
I have a PDF document (a transport label) received from DHL via a web service as Base64String.
- Code: Select all
File.WriteAllBytes(pdfFileName, Convert.FromBase64String(val.Value))
Dim proc As New Process
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
proc.Start("AcroRd32.exe", String.Format("/N /T {0} ""{1}""", pdfFileName, printer))
The only thing I want to do with it is to get it printed on a Datamax printer without losing resolution. I can get this done saving the pdf document on disc and start an adobe process that prints the file. But this only works if I set the default papersize exactly to the pdf document size, otherwise the printed resolution will bad.
SO what I'm looking for is to be able to set the printer papersize based on the pdf document size as received from DHL (it varies with purpose) and print it.
I'm convinced Spire can do this for me, looking forward to You suggestions.
Bernt