Create PDF and Reader Open Parameters

14 posts by 4 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 4, 2011   (RSS)

By Jason - March 31, 2011

Hi Jerry,

I don't think it's a matter of appending anything to the url that's passed to the plugin. The parameters you're specifying I'm assuming would be used to manipulate the settings of the reader displaying the pdf, it doesn't change the format of the pdf itself. That being said, we would probably be at the mercy of which ever browser and whichever version of the reader is being run at that particular time. For example, for this url:
http://50.6.159.105/about.php?pdf=1&1#toolbar=1&navpanes=1&scrollbar=1&zoom=100,

I looked at this in firefox and it seemed to work. The zoom was set to 100% at there was a toolbar at the top. However, when I look at the same link in Chrome, there is no toolbar indicating what the zoom level is, but there are links to the side to control zooming in and out. This can only be due to different browsers/readers.

Like I said the "Convert to PDF" link you currently have seems to be working, but I don't know if you'll be able to control those setting consistently.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Jason - April 4, 2011

Hi Jerry,

From the looks of it, these url parameters work inconsistently. Also, they only seem to work on the actual pdf reader. This means that we wouldn't want to put it in as part of the actual creation of the pdf.

You could try something like this:

$url = "http://www.elleschorrphotography.com/exhibitions3.php".$common_informationRecord['pdf_parameters'] ;
$data = createPDF_fromUrl($url);
createPDF_display('inline',$data, 'example.pdf');


Otherwise, I'd just apply the parameters to the link that a user clicks on to view the pdf

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Create PDF and Reader Open Parameters

By gkornbluth - April 4, 2011

Jason,

Thanks very much for all your help.

That didn't work, and now that I've upgraded to FF 4, there are a whole new set of inconsistency issues.

I think that I'll have to move on and not pursue this for now.

If anything comes to mind, I'm willing to try it.

Again.

Thanks,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php