PDF-printing
PDF-printing
- Subject: PDF-printing
- From: Frank Stock <email@hidden>
- Date: Wed, 15 Jul 2009 15:38:55 +0200
Hi All,
I want to include a PDF in an iFrame and let the user click to print the iFrame. But when I print the pdf, the left margin is always to large! Is this the best way to include an PDF? The PDF is generated in a WOResponse (WOActionResults):
response.setHeader("application/pdf", "Content-Type"); response.setHeader("inline; filename=Certificate Chem-Lab", "Content-Disposition"); response.setContent(new NSData(baosPDF.toByteArray()));
IN html:
<wo:ERXIFrame id="frameID" action="$dePdf" name="PrintFrame" ></wo:ERXIFrame>
public WOActionResults dePdf() { return _dePDF; }
Thanks, Frank Stock belgium
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden