HI.
How to set the size of view pdf ?
I Like to see all fisrt page in View.
I Like to see especific size in List View.Have an exemple ?Sorry my bad english.
You can set your options to ew.PDFObjectOptions in Client Scripts (see Server Events and Client Script in help file), refer to the PDFObject site for the available options. For example,ew.PDFObjectOptions = {
width: “…”,
height: “…”
};
Thanks for your answer.But I use this for open pdf in other page to see all fisrt page:// Row Rendering event
function Row_Rendering() {
// Enter your code here
$this->Grupo->ViewValue = “Link”;}When i put your sugest, Dont work.// Row Rendering event
function Row_Rendering() {
// Enter your code here
ew.PDFObjectOptions = {width: "800",height: "600"};
$this->Grupo->ViewValue = "<a href='/anexos/contrato.pdf'>Link</a>";
}Is possible change the size of pdf image/thumb in this 2020 version ?
If i enable in advanced options for see thumbs in PDF, Work fine, but i dont now how change the size of thumbs…
Whe i use an Image work fine.
Webmaster wrote:
You can set your options to ew.PDFObjectOptions in Client Scripts (see Server Events and Client Script in help file)“ew.PDFObjectOption” is JavaScript, it should placed in Client Scripts, for example.Read: help file → Server Events and Client Script → Client Scripts → Client Script
Now…
Works for me.
.pdfobject{
width: 1000px !important;
height: 560px !important;
}
Thnaks.
ok thanks,
In what event function do I need to add the code
thx
Webmaster wrote:
You can set your options to ew.PDFObjectOptions in Client Scripts (see Server Events and Client Script in help file), refer to the PDFObject site for the available options.