suryakantap | Posts: 9

Invalid position. Object placed outside of document page boundary

0 votes
Hi, I am trying to add signature and signature date in a PDF, using "extractAnchor" to find the white text inside the PDF. It is working for most of the PDF. But I am getting error for some specific PDF. I can see enough space is available after the white text. I have attached the PDF for reference. Still wondering what is going wrong. Could you please help to resolve this issue ? JSON Text:- {"documents":[{"approvals":[{"fields":[{"left":0,"top":0,"height":0,"subtype":"FULLNAME","width":0,"extractAnchor":{"height":25,"text":"Insured_Signature","width":125,"anchorPoint":"BOTTOMLEFT","characterIndex":0,"leftOffset":0,"topOffset":0,"index":0},"extract":false,"type":"SIGNATURE"},{"left":0,"top":0,"height":0,"subtype":"LABEL","width":0,"extractAnchor":{"height":5,"text":"Insured_Sign_Date","width":25,"anchorPoint":"BOTTOMLEFT","characterIndex":0,"leftOffset":-30,"topOffset":0,"index":0},"binding":"{approval.signed}","extract":false,"type":"INPUT"}],"name":"Insured approval required for written statement","role":"Insured"}],"name":"PC_ESign_HO32-100000016_0006290441_Insured_1486374694607.pdf"}],"autoComplete":"true","emailMessage":"Please e-sign the package","name":"Policy No. HO32-100000016","language":"en","type":"PACKAGE","description":"Policy No. HO32-100000016","roles":[{"emailMessage":{"content":""},"reassign":false,"specialTypes":[],"attachmentRequirements":[],"name":"Insured","signers":[{"email":"[email protected]","company":"","firstName":"JOYCE","lastName":"BRYANT","delivery":{"download":true,"email":true,"provider":false},"name":"Insured","language":"en"}],"id":"Insured","type":"SIGNER","locked":false,"index":0}],"status":"SENT"} ERROR:{"messageKey":"error.validation.invalidPageLocation","code":400,"message":"Invalid position. Object placed outside of document page boundary.","name":"Validation Error"}

Attachments
mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hey suryakantap, One quick question before I look at this. Is the information in the document dummy data or actual data? If actual, I will need to pull this document down. Let me know.

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Thank you for the email that this is only test data. I have tested this out and it works for me with your JSON payload. I had some issues with a couple of your quotes in the JSON text that were a different font that got lost in translation. Beyond that, the only thing I changed was making the status DRAFT so you didn't get an email (you may want to edit that out of your JSON post above). After running, I got no errors and I opened the draft in the UI and the signature and date fields were both there.

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Thanks Michael, It is not working for me. Even I tried with DRAFT, same error I am getting. I did some trials. This PDF is generated by Thunderhead. If I edit the PDF manually and add the same white text at same location, then it is working. Or, if I remove the "Insured_Sign_Date", then it is working. Still wondering, where is it going wrong. I believe, Sandbox should have the latest library. Thanks, Surya

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hey Surya, That is very odd as I didn't make any changes to the file at all. I simply downloaded and executed the code. What base language/technology are you running your REST call from? Also, what version of eSignLive are you running this against? sandbox.e-signlive.com? sandbox.esignlive.com? another?

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hi Michael, Please find the details below, eSign Sand box: https://sandbox.esignlive.com Java version: JDK 1.8.x For REST service: Jackson 2.3.3 JSON: json-smart-2.2.1 Thanks, Surya

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hi Michael, Did you get a chance to look in "esignlive" version ? Is it working ? I did some observation. I can see error only for the Thunderhead generated PDFs, which are created from a table inside another table. Those Thunderhead PDFs are generated from a single table, are working fine. Thanks, Surya

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hey Surya, I tried the exact PDF you sent with the same version, as did another colleague of mine. Neither of us noticed an issue with it working properly. I had done the call in C#. I will check with him what he did and get back to you. Note: I'm at a conference, this week, but I'll try to try with Java, tomorrow, with the services you mentioned above.

llovett | Posts: 2

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hi Michael, My name is Lorell Lovett with AAA Carolinas. We most definitely appreciate your assistance with us this particular issue. We understand that you are attending a conference at the moment but is there anyone else we can work with to get this issue resolved? The reason why we're needing this resolved quickly is because we are currently in System Integration Testing (SIT) so we're currently unable to verify that this integration is fully working. If it will be easier to discuss via the phone please let us know and I'll be happy to set up a call with you or whomever from the Silanas side. Cheers, Lorell

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
I have contacted Haris Haidary, the colleague of mine that had tried this and had success, just like I did. He used Postman to do it. Do you all have Postman available to see if it works for you through that avenue? In the meantime, he will be trying out the libraries you have listed above. :)

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
He will let you know what he sees with that, in this thread. If there continue to be issues, I can definitely make myself available for a call.

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Surya/Lorell, Is there any way you can send your code to [email protected] so we can make sure we're testing apples to apples? Thanks!!

harishaidary | Posts: 1812

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Also, you said that for the REST service you used Jackson. But Jackson is a library for processing JSON. Are you sure you are using Jackson to make API calls?

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

1 votes
Hi Michael, I tried from Postman and working fine. Not getting any error. I suspect, might be some library issue. Thanks, Surya

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Good morning Haris, Thanks for your quick response. I am using Jackson for generating the JSON and using Apache httpclient-4.3.1.jar for service call. Thanks, Surya

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
That's at least a positive step forward. If you can send your code to the email address above, we'd still be happy to help check out the library issue. Let us know! :)

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hi Michael, I sent you the code in two emails. The weird is the same code is working for other PDFs. Even working for PDF is having more than 10 pages. The issue is only with this PDF. If I remove the "Insured_Sign_Date" white text, then also it is working perfectly. Thanks, Surya

mwilliams | Posts: 957

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Could always be an issue with the client and how it sends the data, I guess. We'll just have to troubleshoot it. Haris is working on getting a Gosu Code environment set up to test your code exactly. I will do the same if I have time and we aren't able to understand the issue, soon. As you noted though, it doesn't appear to be an eSignLive issue.

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Hi Michael, I am also trying with different API and let you know. If required I can share desktop to avoid the Gosu environment set up at your end. Thanks, Surya

llovett | Posts: 2

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Thanks everyone for jumping on this quickly, it is much appreciated. Michael and Harish, if you need anything from our end please let us know and we'll get it over to you asap.

suryakantap | Posts: 9

Reply to: Invalid position. Object placed outside of document page boundary

0 votes
Thanks a lot to both Haris and Michael for helping to identify the issue. After adjustment in offset and signature width, it is working now. I will make sure PDF has enough space to accommodate the signature and date field.

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