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
neela prasadneela prasad 

is it possible to rotate an attachment in the preview view that was uploaded in the wrong direction In Salesforce?. I.E. upside down or sideways. Sometimes when we get documents from scans/faxes they are in the wrong direction.

NagendraNagendra (Salesforce Developers) 
Hi Prasad,

Sorry for this issue you are encountering.

Please try with below piece of code and let us know if this helps.
<apex:page id="page"> 
<style>
    .logo {
           -ms-transform: rotate(90deg); /* IE 9 */
           -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
          transform: rotate(90deg);
    } 
    img:hover
    {
    cursor: default;
    transform: rotate(360deg);
    transition: all 0.3s ease-in-out 0s;
     }
 </style>
    <apex:image styleClass="logo" url="https://vigneshb1-dev-ed--c.ap2.visual.force.com/img/seasonLogos/2016_spring.png" id="rotate"/> 
</apex:page>
Regards,
Nagendra