MonicaGB

documentGetPageImage and page size returned by PDF engine

0 votes

Hi Forum members

Where is it  defined the default page size for documents?

Can the page size be assigned different values per account?

We have 2 accounts in our OSS (on premise) and same document is showing the signatures on incorrect locations just for 1 of the accounts.

We save the template identicaly and then when retrived with  documentGetPageImage for one of the account we get a different (incorrect) page size)

 

thanks!

 


Reply to: documentGetPageImage and page size returned by PDF engine

0 votes

Hi Monica,

 

Thanks for your post!

First of all, I'd like to explain how the page size get converted in OSS system:

For an A4 size page, it's 8.5 * 11 inch

In SaaS environment, when the page get converted to coordinates, it becomes 796 * 1030 px
Thus the resolution is 93.6 dpi (796/8.5 or 1030/11)

Considering an inch roughly has 72 points

You may see the term "conversion factor" somewhere, and it refers to 93.6/72 = 1.3

 

Without knowing the whole background, I knew that for some of the previous on-premise versions, the conversion factor used is 1.33333, and this might caused the offset you saw when migrating templates from environment to environment.

If this fits your scenario, for each field position and field size, you simply need to time 0.975 (1.3/1.33333) and this should correct the offset.

 

BTW, are you migrating the templates using your own code, or use the Template Copy Tool I developed?

 

Let me know if this makes sense to you and if this resolves your issue.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: documentGetPageImage and page size returned by PDF engine

1 votes

Hi Duo

Thanks for your answer.

We've been investigating 

We have on premise , 2 accounts, same document

We have different DPI for document in one account from the other, if this is set in OSS we can´t find where it is, can you clarify.

 

Thanks


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off