This method adds a web page to a document.
The page is added in accordance with the current XHtmlOptions settings. As a
convenience you can override the more commonly used settings as
detailed above.
Only the first page of the document is drawn. Subsequent pages
can be drawn using the AddImageToChain method.
The web page is scaled to fill the current Rect. It is transformed using the
current Transform.
Caching. Sometimes you may find that pages appear to be
cached.
If you are using AddImageUrl it is possible that the URL is in
some way being cached. So the PDF may be changing but the content
within it may be staying the same. See the HTML / CSS Rendering
section of the documentation for details.
Alternatively it is possible that the PDF itself is being
cached. Most commonly this can happen if you're streaming the PDF
direct to the browser and you have certain IIS settings (like
Expire Content) disabled.
Your first step should be to narrow down the problem. Why not
save the PDF to disk at the same time as sending it to the client?
That way you can establish whether the PDF itself is being cached
or whether the content is in some way being cached (resulting in
the same PDF being created again and again).
If the PDF is being cached you will need to look at your IIS
settings. ABCpdf is not doing the caching (and indeed it cannot
cache the PDF in this way) it will be something which is happening
either in IIS/ASP or on an intervening proxy server or on the
client.
|
In addition to accepting URLs to web pages, this method also
accepts file based URLs to MHT (MIME HTML) files.
MHT files contain a web page and any associated resources (such
as images and style sheets) in one compact archive. You can save
web pages in MHT format using IE.
Note that MHT files saved from more complex web pages sometimes
omit some required resources. In this situation ABCpdf will attempt
to download missing items from the original URL on the web. However
if these items are no longer available then ABCpdf may not be able
to produce a perfect output.
Make sure your URLs come from trusted sources. See the Security
section of the HTML
/ CSS Rendering section of the documentation for details.
|