I have this code that collects text and/or an image and puts it in a php sql database. (the user submits this code). But how do I store markdown code in my database? And how does my user submit markdown code. For example if I want to use markdown in my html page, I want the user to be able to make their text bold or italic, but how do I include markdown in the page?
Related
When I format my doc document into html file via LibreOffice, I'm getting a black dots instead of the valid one's.
Example doc. document list before formatting:
doc document before saving as html
After saving as html page via LibreOffice:
After saving as html file
Is there any plugin for LibreOffice to make the marking exactly the same or is there any other way to make it look exactly the same after formatting?
We would like to generate a PDF without using the existing "PDF" button, but we would like to add our own button that gets a custom template and generates a document filled by the data in the form.
Which Orbeon API we can use for this purpose? This API will get the form id and the PDF template and will generate the document.
The API should give us the possibility to :
Map data to the PDF.
Save the PDF in a given directory.
Sdd some changes to the PDF like adding an image and save the document (this will be our custom code).
Download the PDF after process.
What you're looking for sounds very much like Orbeon Forms' PDF template feature. With Form Runner, you can add your own buttons to the form, and those buttons can have their own label and "logic". The latter is defined in a process, which is a sequence of actions. One of those actions is send(), which as its name implies, "sends" some information related to the form to a service you provide.
You can configure that action to send a PDF generated by "filling" a PDF template with the data entered by users in the form by using send(content = "pdf"). You can find more about this in the documentation for the send() action.
I am having issues with displaying an image in a Rich Text field on Notes document on the web. On web form, I have a form with a computed Rich Text field with this logic for the value:
#DbLookup("":"NoCache";"":#DbName;"notices";"americas-en-LoginMsg";"Error_Body";[FailSilent])
The source document is different than the destination document.
When The Web form opens up, only the formatted text displays and the image is just a placeholder with no image displaying. Any ideas on how to get it displayed. Using Domino server vers. 9.0.1.
I placed the image(s) in Resources>Images area of the database and used pass thru HTML on source document to reference it (them): img src="https://something.com/webpages/database.nsf/Buyback.gif?OpenImageResource" (with proper formatting of course).
I am using apache pdfbox framework to read pdf text content.
I have to get the content from "Table of Content" page (if present in the pdf), should be able to identify the Table of content page through pdfbox api.
kindly provide your suggestions.
The table of content in a PDF file is not easily identified by any structure you can just pull from the PDF document. You will have to do text extraction and identify the table of content by its properties.
PDF in general doesn't contain content structure such as table of contents, chapters, headers, footers or even paragraphs or lines of text.
Is there a script that anyone can suggest that would allow me to create a HTML or PHP web based form to collect data and save that data. the call the data to be populated in a fillable pdf?
If you have an existing PDF that you want to populate, and that PDF just has text fields (no checkboxes or radio buttons) then CAM::PDF may be able to help you. You can use it as a Perl library directly, or use its command-line interface. CAM::PDF is not useful for generating PDFs from scratch, however. Furthermore, if you have embedded fonts, then you need to ensure that all of the characters you plan to insert are represented in the embedded font.
Use a normal web page to get the data. If not sure how to do it, look for "php forms" on google, there are plenty of tutorials.
Then use a php pdf generator, like this one, to create the PDF file. If you look hard enough, you will probably find a pdf generator that will let you use a template with placeholders where the entered data should be.