I need to render a small pdf page, height = 15mm and width = 30 mm.
I have developed a VF page but I am not able to get the required page size.
I am getting the error 'Page style attributes result in invalid (negative) page size.'
Below is my code:
<apex:page renderAs="pdf" standardController="Account" standardStylesheets="false" cache="false" showHeader="false" sidebar="false" applyHtmlTag="true" applyBodyTag="false" >
<head>
<style type = "text/css">
@page {
size: landscape;
size:15mm 30mm!important;
}
</style>
</head>
<apex:outputText value="test"></apex:outputText>
</apex:page>
I can't figure out the CSS to apply.
Please help.