I am using latest version of TCPDF inorder to generate my PDF files and it is working fine
the problem where I stuck is I want to display file attachment annotation pane by default as it opens when user clicks on attachment image …
I have tried the following :
$pdf->SetDisplayMode($zoom, $layout, $mode='UseAttachments');
but its not working.
Tell me how it is possible please ….
In my version of TCPDF,
SetDisplayModefunction looks like this:Take a look at the last case. It will set a PageMode to “UseAttachments”, but it looks to be defined in wrong way. Instead of
case 'UseAttachments':there iscase '':.So, try to change your code to this: