How do I import docx edit and export it?

  • Hi,

    I have a form that i want to import it to a layout , edit it(fill it with some information's name address etc) and then save it back to the pc.

    The form has texts and images also.

    Any ideas of how to start with that?

  • I really doubt you can integrate docx into the game and then export it again in docx format. The easiest workaround I think would be redirecting users to Google Docs or Google Form link with your form. Or maybe you can open this link inside the game in an iframe.

    You can also manually replicate all fields of this form on the layout with text boxes, and after user has filled them, send this information somewhere. (to your server, some database etc.) Here is a tutorial I made for sending data to Google Spreadsheet:

    scirra.com/tutorials/9704/sending-data-from-construct-23-to-google-spreadsheet

  • I really doubt you can integrate docx into the game and then export it again in docx format. The easiest workaround I think would be redirecting users to Google Docs or Google Form link with your form. Or maybe you can open this link inside the game in an iframe.

    You can also manually replicate all fields of this form on the layout with text boxes, and after user has filled them, send this information somewhere. (to your server, some database etc.) Here is a tutorial I made for sending data to Google Spreadsheet:

    https://www.scirra.com/tutorials/9704/sending-data-from-construct-23-to-google-spreadsheet

    Hello dop2000 ,thanks for the reply.

    My forms are in pdf format but i add docx at my question because reading threats in forum i understand that its impossible to insert pdf in project and edit it.

    I see your tutorial a long time ago when i was trying to make a leader board, but in this case i dont think it gone help me.

    Let me explain you what im trying to do.Its for my work only and im not intend to upload it or sell it somewhere

    At my work we have to fill a lot of informations in a lot of forms.

    The most of the informations are the same so instead of writing again and again, im trying to :

    I have 15 pages of pdf that i have to write my name and my address etc, so at first layout of construct to write my name address etc , my customer infos and at enter to fill all the pdfs using textboxs with my and my client infos.

    Until now and with your help of another question you answer before 2 days i can save and retrieve my informations using NWjs.

    I tried to import all the pdf as sprites and take a canvas snapshot or with window.print() to be able to print and save this pictures but the quality its horrible so i run to another solution but im stack.

    Im looking for a way to import pdf, edit it and save it.

    I found some plugins from Pode but i dont know how to use them or either there not working any more.

    drive.google.com/drive/folders/1Fl_-9SPqAncyGWzR1cDx5xV7Hcxie5sT

    drive.google.com/drive/folders/1dyetG37xSqLwAy_YuRx9LEqvfAQXZn4W

    Another plugin iv found

    drive.google.com/drive/folders/1TM8bA3vecfoF5_tt_LymAJcOPTCZC-ZY

    but i have to write all the pdfs from the start option that its ok for me to spend time to write it but im stack to images, i cant find a way to import images (it has the option to add image) and i cant find a way to add fonts , and because the pdf must be in Greek language i cant find a way to Greeks.

    What is the best option to start?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I really don't think Construct is the right tool for this job. You should google some other solution, maybe some script or software that can feed data into PDF forms.

    Something similar is discussed here:

    stackoverflow.com/questions/11701732/how-to-automate-pdf-form-filling-in-java

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)