Are there any size limitations to the images that can be included and if not, is there any way of seeing what error is being generated (if any?) as currently it just returns a blank page (i.e. not a PDF document) so it's very difficult to debug.
No, I don't have Elmah installed, I will try and do so, I cannot see any exceptions unfortunately, nothing in the event log, unless there is somewhere else I should be looking?
The "Medium" sized image we have is too low a resolution and looks pretty naff when printed, hence wanted to use a higher resolution image, I was wondering if it was something to do with the DPI of the image, I know some applications when you produce PDF documents you can create them "for print" which has higher resolution images, hence I assumed it would scale a larger image?
Maybe there are some additional attributes that I have to set?
Unable to attach "certain" images as external-graphic elements.
Hi Darren ( or anyone else there who might have a clue about XSL-FO )
I am quickly getting the hang of things, but I have been stumped by one thing and I cannot see a way of debugging the issue.
The following will work:
But the following identical statement ( different graphic ) will fail:
These two file for your reference can be found online here:
Medium Image
Large Image
Are there any size limitations to the images that can be included and if not, is there any way of seeing what error is being generated (if any?) as currently it just returns a blank page (i.e. not a PDF document) so it's very difficult to debug.
Cheers,
Chris
Chris, suggest that the large image is bigger than the bounds of the page.
Do you have elmah installed? Can you see if any exceptions are being thrown?
Thanks,
Darren.
Hi Darren,
No, I don't have Elmah installed, I will try and do so, I cannot see any exceptions unfortunately, nothing in the event log, unless there is somewhere else I should be looking?
The "Medium" sized image we have is too low a resolution and looks pretty naff when printed, hence wanted to use a higher resolution image, I was wondering if it was something to do with the DPI of the image, I know some applications when you produce PDF documents you can create them "for print" which has higher resolution images, hence I assumed it would scale a larger image?
Maybe there are some additional attributes that I have to set?
Best regards,
Chris
Chris, Have a look at this:
http://www.xmlpdf.com/builds/ibex.pdf
especially sections 16.2 and 16.5 to see if playing with these help.
Definitely recommend you install elmah though. not all exceptions will be in the event log.
Thanks Darren,
I have managed to sort it out now, the documentation link was useful.
The solution was as follows:
In other words the addition of the scaling="uniform" and the content-width="5.5cm" did the trick.
Best regards,
Chris
is working on a reply...