Good morning Jason,
I agree, and I’m using the same FF browser for all my testing.
I’m sorry if it seems that I’m beating on this to excess, but let me back track a bit...
I’d like to be able to pass open parameters to the PDF reader using the url_as_inline_pdf code, as I'm able to using the output_as_inline_pdf.
The basic issues are that:
_____________________________________________________
I can always get the added open parameters to work for the the output_as_inline_pdf code.
In the head of my viewer:
<?php if (@$_REQUEST['pdf']) { createPDF_fromOutput('inline', 'example.pdf'); } ?>
In the body of my viewer:
<?php if (@$_REQUEST['pdf']): ?> <?php else: ?><a href="http://my_site.com/about.php? pdf=1&<?php echo $my_tableRecord['num'] ?>#toolbar=1&navpanes=1&scrollbar=1&zoom=100">CLICK TO CONVERT THIS PAGE TO A PDF</a><?php endif ?>
Example:
http://50.6.159.105/about.php____________________________________________________
But I can’t seem to get the parameters to work at all with the url_as_inline_pdf code.
Original code:
<?php
$url = "http://www.my_site.com/about3.php";
$data = createPDF_fromUrl($url);
createPDF_display('inline', $data, 'example.pdf');
?>
As modified per your suggestion: (pdf_parameters value: #zoom=185)
<?php
$url = "http://www.elleschorrphotography.com/exhibitions3.php";
$addon = $common_informationRecord['pdf_parameters'] ;
$data = createPDF_fromUrl($url);
createPDF_display('inline',$data, 'example.pdf'.$addon);
?>
Example:
http://www.elleschorrphotography.com/exhibitions4.php_____________________________________________________
_____________________________________________________
I’ve also tried using a command line switch with this code to no avail.
<?php
$GLOBALS['CREATEPDF_CUSTOM_SWITCHES'] = '--zoom 50';
$url = "http://www.elleschorrphotography.com/exhibitions3.php";
$data = createPDF_fromUrl($url);
createPDF_display('inline', $data, 'example.pdf');
?>
Example:
http://www.elleschorrphotography.com/exhibitions7.phpI can only assume that my zoom syntax is wrong, because if I substitute –toc for --zoom 50 a table of contents is generated.
Example:
http://www.elleschorrphotography.com/exhibitions8.phpThe wkhtmltopdf help docs specify the format to be:
--zoom <float> Use this zoom factor (default 1)
No matter what syntax I’ve tried, --zoom 50%, [--zoom 50], and both with commas after ‘zoom, I get errors.
Wow, am I lost.
Thanks for your continued help.
Jerry Kornbluth
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