Have any one Worked on The fillable pdf in sales force - salesforce

hi I am working on the fillable pdf in Salesforce, i have uploaded the pdf in the static resource in Salesforce , now need to handle the data to fill in it and download the file , can any suggestions to achieve it
Thanks in advance

There is no functionality in Apex to interact with fillable PDFs. While it's possible to interact with binary formats such as PDF in Apex, it's difficult, slow, and subject to the extensive limitations of the Salesforce governor limits. You'd have to implement this from scratch based on your knowledge of the PDF format.
You will likely have much more success either building PDF manipulation functionality in JavaScript on the front end, or calling out to an external service on Heroku or elsewhere that uses PDF libraries available in some other stack to do this work.

Salesforce does not support inputs on generated pdf via Visualforce
pages.
To achieve this functionality, you can create a form with all the
inputs that are required in the pdf.
Once the user fills in the information in the created form and submits it, generate the pdf with the filled information by the user.
Bonus: you can save the filled-in information as well by creating a record under the object for future reference (data is everything)

Related

Content Management Api to POST media files from external source

I am looking for a solution in episerver to add media files from external sources into episerver.I am aware that episerver has recently released Episerver Content Management API to post contents within Episerver.Is it possible to use this for media files as well.As this is newly introduced in episerver, i cant find any references other than the documentation within epi which has more of CRUD operations on Content.Can someone please point out some reference links for me to get this started?
Any input is appreciated.
Regards,
The content management API is useful if you want to create a headless website that talks to Episerver via an API to get content.
Depending on what you want to use the media for will depend on the optimal approach. I assume you want the content editors to be able to pick these items from within the CMS? If so there are two main appraoches:
You could write a scheduled task using the content repository API to import the media into the Episerver media library
The other option is to create a content provider, so the media is available in the editor, read this to learn how to do it. This option is more fidley so I would go with option 1 if possible.
If you just want to render images on a web page, then call the API using AJAX. Job done!

Make web form that outputs multiple pdf among other things

I'm writing contracts by hand along with itineraries that contain much of the same data. Is there a way to do the following...
web form that will fill the fields of my contract and outputs in .pdf format
button that gives the option to also output the data in the form of my itinerary layout in .pdf
save various details to a database.
what tutorials might be useful to me? what videos should i be watching to steer me down the right path?
Many thanks!
This looks very much like an application for a server-side form filling tool. The tool of choice would be FDFMerge by Appligent.
A typical workflow would be as follows:
• you have a web form where the user fills in the required information
• user submits the web form to your server where the data gets filled into a database
• selects are made in the database, bringing together the data for a specific document
• assemble the result of the selects into an FDF file
• the base form is filled with the data, using the above mentioned tool
• the filled document(s) is/are made available for the user
And that should do it.

Converting Blob object to html in google app

I have stored user uploaded document (.doc ,.pdf) as a Blob object into data-store.
Instead of allowing user to download the document, I would like to present it as an HTML page
for viewing the doc. how do I convert Blob into HTML ? does google app engine provides any ready made API for the same?
There is no ready made API in AppEngine to convert .doc or .pdf (or or other types of) files to HTML. You would need to find a library for your preferred language to parse the blob file into its parts structured as an object model (like a DOM). Then you would need to write code to convert individual parts of the object model to HTML, unless you are lucky enough to find another library. And no, StackOverflow is not a good place to ask "what library is there...".
No. AppEngine itself does not provide any file format conversion tools. You might want to look into Google Drive API, which might, to some extent, do the format conversion for you.
You can have embed a PDF reader on a web page by using pdf.js.
Most browsers already have a built-in PDF viewer. If you provide a link to a PDF file, when users click on it, many browsers will automatically display the document. Those browsers that do not support this option, will offer a user to download the file to their hard-drive.
This is the easiest solution - you don't have to do anything at all.

Issues with displaying salesforce rich text editor image

We are having few rich text box in our custom objects in force.com enterprise edition. These rich text box are rendered in an android application given to our clients. Till now we were using the android app online but due to huge customer demand, we wish to make our app offline. But we are facing difficulties due to images in rich text box. The images in rich text box are stored as in a form
But when we try to use the android app offline, we cannot see the images in webview. Consulting our web developer, he said that the images do not have static path and so they cannot be downloaded and stored for offline use. So my query is, is there some way, which will help us to get static path for the images inserted in Rich Text Box available in force.com, so that we can use them offline.
Thanks!
I had the same problem some time ago and also raised the issue with salesforce. They got back to me saying that images within rich text boxes could be stored in any server and needs to be authenticated to via a browser to have access too.
But you could try to use this, but its not a guaranteed approach as salesforce can change the way they store images.
http://boards.developerforce.com/t5/General-Development/API-access-to-Knowledge-article-content-inline-images/td-p/233065
Hope this helps.
Here's the response from SFDC :
As discussed over the call, as of now Salesforce does not have this feature built in the current release, else we would be more than happy to help you.
However, you can also post an idea on our Idea Exchange, where our customers share their ideas and expectations. (http://sites.force.com/ideaexchange/ideaHome)
Please feel free to contact us, if you need any further assistance.
Thank you for contacting salesforce.
Regards
Developer Support Engineer
salesforce.com

How to auto generate a webpage after user submits form

I am looking for some initial direction on this one because I cannot seem to find my way with it. Let me explain...
I am developing a website wherein a logged in site member (Joomla 1.6) can fill out a simple form and attach a pdf to be uploaded upon submission. The user then clicks the submit button and the page will refresh to a new and unique web page.
User Submits data on http://www.examplesite.com and then after submission a new web page is generated that is called http://www.examplesite.com/userSubmittedValue
This newly generated web page would come from a template that is specified by the administrator and, most important, it will display all of the information that the user submitted. Also, there would be a link to download the pdf they uploaded. The user could then view a list of all the pages they have created in this manner via their profile.
I have seen this all over, but I am at a loss for how to generate this. Any help is much appreciated.
This is not something you will be able to easily do or get a detailed answer for here. If you just wanted to do the submission form with a thank you page that shows the data submitted you could use any number of form wizard type extensions - http://extensions.joomla.org/extensions/contacts-and-feedback/forms
If you just needed a way for users to upload PDfs and have access to them you could use one of the file management extensions that offer front end upload features - http://extensions.joomla.org/extensions/directory-a-documentation/downloads
If the additional data that is being submitted is simply data related to the file - title, description, etc then one of the file download components should work fine for you. The choices are limited in 1.6 at this time though so you might have to go with 1.5 to get the extension that works best for your needs.
So this probably isn't the best way to do it if your using Joomla but it just might help.
I would use PHP and inside of you're directory have a file like "template.html". Then I would create some php to handle the task of....
Opening "template.html"
Finding and replacing the values that the user passed you
Save the "template.html" under a new name (userSubmittedValue.html)
Again, I never really use Joomla. If you were to try this I'd suggest checking out php's file system functions (http://us2.php.net/manual/en/ref.filesystem.php).
Hope this helps a bit.

Resources