You need to sign in to do that
Don't have an account?
MohanaGopal
Renderas ="PDF" return error index 4,size 4
Hi...
In my sandbox org I got Index 4, Size 4 error when I give renderas pdf for my VF page ..
My VF page work fine in HTML format.. I have to render a PDF when I click a Detail page button....
Some records rendered a PDF correctly.. Some record I got a error index 4, Size 4.....
How to avoid it... How to fix this problem...
Jeremy Kraybill
Austin, TX
Can you provide an example of your page that results in the error you described?
JRTConsult ,
Does your page compile as it stands? If so do you get warnings?
The conversion facility is fairly sensitive to markup that is not properly structured. Also it will not do anything with javascript. Finally it appears you have apex code embedded within a script tag which isn't going to do much more than throw javascript errors in a browser, was that a copy/paste error?
I found the same problem but I have index:1;size:1.
I checked all tags but that didn't change anything.
When I removed 'renderAs=PDF', I didn't have the message anymore and that worked verry well.
So where is the problem?
Thanks a lot
Hello Friends,
I was getting the same error on my page but was able to fix it up. So, thought of sharing it here.
As Doug pointed out above, that this error basically comes from improper use of tags in the rendered HTML which is used to convert to PDF by the 3rd party library.
I just commented portions of my page to check where exactly the error was propogating from. In this way i found out that it was just an <apex:outputPanel> tag which was misplaced between <tr><td> tags.
Once i fixed this, the error did not come. So, surely you need to check your page tags if they are properly structured or not.
Hope this helps!!
Cool_D