function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hoffmann1.39658926698286E12hoffmann1.39658926698286E12 

Apex Image code for import images

Hello

I have the following two tags. The first tag I want to define that it only shows 6 pictures on one site. The next tag should show the next 6 pictures and so on. All pictures coming from listings. Ech listing will have a diffrent number of images. How can I define the tag that all pictures from the listing mask  will be imported to the PDF, first 6 images on the first page than the next images on the next page. 

Many thanks!

<div class="divImagesWrapper">
<div style="background-color: white; margin-top:100px;">
<apex:variable var="cnt" value="{!1}" />
<apex:repeat value="{!images}" var="image">
<div class="divSmallImg" style="display:{!IF(cnt > 6,'none','inline-block')}; Padding-top:10px; margin-right: 0px; margin-left: 30px; margin-top:0px; margin-bottom: 20px;">
<apex:image styleClass="imgSmallImg" url="{!image.pba__MidresURL__c}" style="width: 300px;"/>
</div>
<apex:variable var="cnt" value="{!cnt + 1}" />
</apex:repeat>
</div></div>
<div style="page-break-after:auto;"></div>    

<div class="divImagesWrapper">
<div style="background-color: white; margin-top:190px;">
<apex:variable var="cnt" value="{!5}" />
<apex:repeat value="{!images}" var="image">
<div class="divSmallImg" style="display:{!IF(cnt > 6,'float','inline-block')}; Padding-top:10px; margin-right: 0px; margin-left: 30px; margin-top:0px; margin-bottom: 20px;">
<apex:image styleClass="imgSmallImg" url="{!image.pba__MidresURL__c}" style="width: 300px;"/>
</div>
<apex:variable var="cnt" value="{!cnt + 1}" />
</apex:repeat>
</div></div>
<div style="page-break-after:auto;"></div>
VikashVikash (Salesforce Developers) 
Hi ,

Please follow the below link:
http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_renderas_pdf.htm
This link will explain you about how you can get the visualforce page to be rendered as PDF.

Thanks
Vikash_SFDC