PDF to CSS conversion (converting generated CSS back to PDF must look exact!)
Posted on 2006-04-17
I have looked at a lot of solutions out there and I had a few questions.
Here is my task:
I have a document that has been given to me in PDF format. I cannot get the document in its original format it is only available in PDF. I have to create the document in a CSS based webpage. Then I have to take this CSS based webpage and convert it back to PDF, using Adobe Acrobat or SuperGoo. Once converted back the this new PDF document must match the original that has been giving to me. The client compares each document by printing both PDF forms and then holding them up to the light to see any differences. If there are any, the document is rejected.
I can create the CSS correctly and have learned many advanced techniques. The problem is when I convert back to PDF using Adobe Acrobat all my alignment for tables gets messed up.
My main question here is not automation as I know the degree of accuracy I am looking for is not attainable by an automated method. My question is layout. How to I found out what fonts and sizes were used for text in the original PDF? How to I find out how big to make my starting "canvas" from the original PDF? I am looking for a size to create my master table to base all other measurements off.
I have been using the measuring tool in Adobe Acrobat on the main document but cannot establish a good ratio to use (IE pixels to inches).
Any ideas are appreciated.