Hello,
I am trying to convert the following HTML to PDF using Aspose PDF for Java 9.3.1
As you can see, the images are absolutely positioned and layered on top of each other. I have seen references in past Aspose PDF forum posts to absolutely positioned images, but the output does not seem to support it. Using the following code:
<img src=“http://upload.wikimedia.org/wikipedia/en/b/b4/Wh_14_row_beach.jpg”
style=“position:absolute;left:35px;top:103px;z-index:5;width:500;” />
<img src=“http://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Smiley.svg/220px-Smiley.svg.png”
style=“position:absolute;left:362px;top:84px;z-index:6;width:125;” />
<img src=“http://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Smiley.svg/220px-Smiley.svg.png”
style=“position:absolute;left:116px;top:783px;z-index:6;width:125;” />
<cfset variables.license = createObject(“java”,“com.aspose.pdf.License”).init()>
<cfset variables.license.setLicense(licenseFile) />
<cfset var htmlLoadOptions=createObject(“java”,“com.aspose.pdf.HtmlLoadOptions”).init()>
<cfset pdf=createObject(“java”,“com.aspose.pdf.Document”).init(tempHTMLFile,htmlLoadOptions)>
<cfset pdf.save(tempPDFFIle)>
The saved PDF shows the images lined up one after the other, and not absolutely positioned.
Can you tell me if Aspose PDF is intended to support absolute positioning in HTML?
Further, does Aspose PDF support CSS3 properties such as rotation?
Thank you.