Print Page | Close Window

CapturePage, form values missing

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1336
Printed Date: 26 Jun 24 at 5:49AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: CapturePage, form values missing
Posted By: mjim79
Subject: CapturePage, form values missing
Date Posted: 04 Feb 10 at 3:46PM
Hi all,

When I use capturePage function, the form fields values are missing.  There are any way to keep the values?

Thanks!



Replies:
Posted By: Ingo
Date Posted: 04 Feb 10 at 4:54PM
Hi!

Perhaps you have access to the wrong layer ...
Try a CombineLayers before.

Cheers and welcome here,
Ingo


Posted By: mjim79
Date Posted: 04 Feb 10 at 5:15PM
Thanks Ingo.

I try a CombineLayers and doesn't works.  LayerCount returns me 1.  Has pdfs with form more than one layer always?


Posted By: Ingo
Date Posted: 04 Feb 10 at 7:16PM
Hi!

"Normal" pdf-documents have two layers ...
Forms won't have less ;-)

Cheers, Ingo


Posted By: mjim79
Date Posted: 05 Feb 10 at 10:28AM
Ok, I don't konw whats happen but LayerCount returns 1 and the form values are missing.  Other alternative?

Thanks!


Posted By: Ingo
Date Posted: 05 Feb 10 at 11:26AM
Hi!

Please send me the form... so i can check myself.
Use the "advanced search" here on the page and search for "ewetel"... then you'll get my email ;-)

Cheers, Ingo


Posted By: Ingo
Date Posted: 05 Feb 10 at 1:10PM
Hi Miguel!

There should be something wrong with your code.
If i check your form with QuickPDF i find two layers.
So if you get back only one then there is the problem.
Perhaps you don't do CombineLayers at the right position?

Cheers, Ingo



Posted By: mjim79
Date Posted: 08 Feb 10 at 7:42AM
Hi Ingo!

I try CombineLayers between the selectPage and capturePage, and before selectPage.  Doesn't work.  I sent  you the form and a new document with captured page embebed (DrawCapturedPage).  Also I sent you part of the code to do this. 

Thanks!




Posted By: mjim79
Date Posted: 11 Feb 10 at 1:13PM
Hi Ingo!

Now i get two layers, but the field values still missing doing a combinelayers.   I need to insert the captured page in other document with other information.  Can I use other functions?  I try a RenderPageToVariant but image returned is slow quality and hight size.

Thanks!


Posted By: Ingo
Date Posted: 11 Feb 10 at 1:53PM
Hi!

What type have the fields where the content is missing? Not simple text i assume...
BTW: I'm not all-knowing ... i'm a user as many here ... okay ... a bit longer but a user. So if you have problems why not try? Trying left, trying right, ... and share your experiences with us ;-)

Cheers, Ingo

 


Posted By: mjim79
Date Posted: 12 Feb 10 at 1:56PM
Hi all!

The fields are simple text.  Is the combinelayer in the rigth position?


With oQPDF

  lngDocId = .NewDocument
  If .LoadFromFile(strPath)<>0 Then
    ...
    For k=lngInitPage to lngEndPage
      .InsertPages k+1, 1
      .SelectPage k
      .CombineLayers
      cap = .CapturePage
      .DrawCapturedPage cap, ...
file:///C:%5CDOCUME%7E1%5CMJJIME%7E1%5CCONFIG%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml -


Posted By: asturcon3
Date Posted: 19 May 11 at 10:50AM
Just in case someone comes here (I have just reached googling)

If .LoadFromFile(path) then
    If .setneedappearances(1) Then
      While .formfieldcount
          .flattenformfield 1
      Wend
    End If
    ' ...
end if

This will commit the form values to the image, allowing capture functions to get the data.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk