Method: Pdfcrowd::HtmlToPdfClient#setMultipageWatermarkUrl
- Defined in:
- lib/pdfcrowd.rb
#setMultipageWatermarkUrl(url) ⇒ Object
Load a file from the specified URL and apply each page of the file as a watermark to the corresponding page of the output PDF. A watermark can be either a PDF or an image.
-
url
- Supported protocols are http:// and https://. -
Returns - The converter object.
1375 1376 1377 1378 1379 1380 1381 1382 |
# File 'lib/pdfcrowd.rb', line 1375 def setMultipageWatermarkUrl(url) unless /(?i)^https?:\/\/.*$/.match(url) raise Error.new(Pdfcrowd.(url, "setMultipageWatermarkUrl", "html-to-pdf", "Supported protocols are http:// and https://.", "set_multipage_watermark_url"), 470); end @fields['multipage_watermark_url'] = url self end |