PDF to CSS conversion (converting generated CSS back to PDF must look exact!)

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.

TelRiddlerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mreuringCommented:
I hardly think any of us here have much of a clue about pdf to accurately predict how it will behave on the screen.

It's quite obvious you're between a rock and a hard place here. You're converting between a printer based document and screen based presentation. Now, oficially a 'screen' is 72 dpi where a printer is usually 300dpi or more. Altough is is generally no longer true for screens, they may vary a lot, most programs are still set up to assume 72 dpi. Fonts in PDF most likely are set to a pt value and this is again linked to the dots-per-inch, though most browsers will ink this to pixels with no variance as the screen gets bigger.

You're best best is starting to set up your document with the proper font-size and then setting up all the margins and what-not using 'em' as the unit-type. As this is relative to your font-size it might convert better to print or even pdf in this case. Although with no experience in accually doing this, it's only a suggestion based on my experience with print stylesheet...

Good luck,

  Martin

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.