Forums
>
Product Discussion - DotNetNuke Modules
>
Dynamic Forms
PDF margins und printing/paper formats
Last Post 11-01-2012 11:36 AM by Chad Nash. 5 Replies.
Author
Messages
Thomas Forster
Posts:15
10-04-2010 02:58 AM
Hi
I was searching for a way to influence how the margins and the paper-format of the generated PDF-Files can be influenced, but found no way so far.
The margins for all PDFs, when pronted is about 5mm (on A4).
Any way to change this?
Thank you.
Regards
Thomas
Candace
river guide
Posts:2431
10-04-2010 07:50 AM
Hi Thomas,
Unfortunately, this is not possible without modifying the source code. We can customize the code for you with
Premium Support Hours
or you can modify it yourself if you get the source code. Thanks!
Candace
Thomas Forster
Posts:15
10-04-2010 11:17 AM
Doing a special version just for this would be an overkill.
But mybe it's something for the next release...?
(which is due soon I hope).
Best regards
Thomas
Candace
river guide
Posts:2431
10-04-2010 02:25 PM
We got this in the wish list for the next release which is probably going to be around the end of the year or 1st quarter of 2011. Thanks!
Candace
NebRef
river guide
Posts:91
11-01-2012 10:00 AM
Candace:
Was this option ever included in subsequent releases? Is there code that can be inserted in the .pdf template to modify margins, page size, etc.? Thanks.
Jim
Chad Nash
Posts:5260
11-01-2012 11:36 AM
Hi Jim - I believe so... You have to include certain words in the "Short Field Name". Words like "Landscape", "Stretch", "AutoSize" etc...
Here is some of the code...
If strFileName.Contains("LandScape") = True Then
pdfConverter.PdfDocumentOptions.PdfPageOrientation = ExpertPdf.HtmlToPdf.PDFPageOrientation.Landscape
End If
If strFileName.Contains("Stretch") = True Then
pdfConverter.PdfDocumentOptions.StretchToFit = True
End If
If strFileName.Contains("FitWidth") = True Then
pdfConverter.PdfDocumentOptions.FitWidth = True
End If
If strFileName.Contains("AutoSize") = True Then
pdfConverter.PdfDocumentOptions.AutoSizePdfPage = True
End If
If strFileName.Contains("ScriptsEnabled") = True Then
pdfConverter.ScriptsEnabled = True
End If
Thanks,
Chad
Forums
>
Product Discussion - DotNetNuke Modules
>
Dynamic Forms
film izle
720 izle
film
sinema izle
film makinesi
T�rk�e dublaj film
film izle
film izle
baglan film izle
sinema izle
1080 film izle
film mercegi