In previous version of text edit in knowledgebase(qnamaker), I had created table format using spaces and brought that into table kind of structure. In latest May2020 Rich-text editing release I am not able to create that table.
Issues faced:
Orientation changes automatically in markdown for next edit.(Previously created spaces are not reflecting)
Is there a way to create a table format.
Example for previously created table:
Name dept availability
X OD yes
Y OD No
The latest Rich-text editing feature of your answer text gives you markdown styling from a simple toolbar. The details are specified in the documentation. Having said that, you can implement a table using markdowns. From this SO answer,
If you add or edit your content directly in your knowledge base, use markdown formatting to create rich text content or change the markdown format content that is already in the answer. QnA Maker supports much of the markdown format to bring rich text capabilities to your content. However, the client application, such as a chatbot may not support the same set of markdown formats. It is important to test the client application's display of answers.
Also, keep in mind as to when to use rich-text editing and markdowns to best suit your needs.
Rich-text editing of answers allows you, as the author, to use a formatting toolbar to quickly select and format text.
Markdown is a better tool when you need to autogenerate content to create knowledge bases to be imported as part of a CI/CD pipeline or for batch testing.
Hope this helps.
Related
I'm trying to develop an extension that needs to render text, images and the preview of an external file in the code as a decoration. The problem is that I only can find text decoration and nothing that allows me to for example show a PNG between two lines of code without modifying the file.
Is this possible or I need to create a Custom Editor using the API? The problem of this solution is the need to integrate all the extension on the language I'm working what will take too much time.
I have seen the Comments API allows to show the reference of a text file but I can't find where is the API to generate this type of views:
The closest thing I can find is the Comments API with this sample. However, I need to add more than just text and the idea is to only show the content, nothing more.
Any guide, information or reference is highly appreciated.
I am exploring couple of third party components to work with PDF through C#. These are Aspose.pdf.net and iTextSharp. Following are the details about what I am exploring them for:
I have some PDFs that contain sensitive information in form of text, like name of person, city, etc.
These PDFs need to be duplicated into another copy but while creating duplicated copy, sensitive text needs to be searched & replaced with some dummy text. The replacement is essential to avoid tracing original information, by any fraudulent means.
Also, the replaced text requires to be redacted.
Finding text is expected to support RegEx, as there could be variations of text that needs to be masked.
Could you please assist me how can this be done using iTextShart.
Thanks in advance.
iTextSharp is capable of complete redaction(both visual as well as the data stored in the pdf) using the PdfSweep module (http://itextpdf.com/itext7/pdfsweep).
In order to have the redaction happen after text search you'd have to:
Extract the text from the document (can be done using iText).
Search through the extracted text and obtain the positions of the text you want redacted. (needs an implementation from your side)
Use these positions to define where PdfSweep has to redact. (a couple of lines of code)
By default, PdfSweep visualy redacts by drawing coloured bars over the locations, and internally removes the text and any image.
While it is technically possible to use iText to fill the redacted positions with some dummy text, the implementation thereof has a number of pitfalls.
PdfSweep is closed source module for iText7, you can contact our sales team for more information on the licensing.
I have an application, which has pdf attachment inside documents. Need to edit the pdf meta data and append or add document information(some field values from document) into that pdf.
I want to add the values into meta data so that when pdf is printed these values should not be seen. If we go to File Properties of any pdf we can find Author and other information, it should similarly show field values which I want to insert.
All above functionality has to be done using Lotus Notes, might be any tool can help.
I am using CutePDF SDK in one of my recent project to manipulate PDF files. You install a COM object on the system (cclient or server) where the code is executing, then you can update meta data like author, etc. Even password protect the file if you like.
You can download a demo version here: http://www.cutepdf.com/solutions/formsdk.asp
In your case, you must detatch the PDF file first, the perform the changes and then reattach it to the Notes document.
If Java is an option you can try iText. http://itextpdf.com/
We use that to generate PDF's from Lotus.
I'm working on a tool in Python to extract highlighted passages from PDF files. I regularly highlight PDFs in Preview on OS X Lion but haven't found a good tool to extract these passages. Other apps exist that do allow you to highlight and export such as Skim but I figure there has to be a way to extract the ones I add in Preview.
I figured that the highlights would be stored in the HFS+ extended attributes for the PDF file but after looking at them using xattr it seems that they're stored elsewhere. I also looked at PDFKit but I only saw how to create annotations rather than locate them.
If someone could tell me where to find the highlights/annotations or point me at some documentation that explains this I would really appreciate it.
When using PDFKit you can get annotation from any PDFPage instance.
[myPDFPage annotations] will return an array of annotations for that particular page.
See the docs for more info.
Technically speaking, highlighting parts of a PDF is adding an annotation to the file. These annotations are PDF objects defined in the PDF specification. They are stored inside the PDF file itself, i.e. they do modify the original file! That's why you'll not find a trace of the highlights in the HFS+ extended attributes...
So the answer to the question of your title line is: Preview stores the highlights inside the PDF file as fully compliant PDF objects.
The answer to your real question implied in your text ('I want to extract the highlighted passages') was well answered by sosborn.
I have a lengthy PDF time tracking document that was printed out and used in a paper process to schedule appointments. Now this paper process is being converted to an online application and this application needs to generate reports in the same format as the PDF document (this time programatically inserting values into rows instead of having someone write them on the piece of paper).
My question is this, is possible to somehow import the layout of that PDF document into Telerik reporter's designer? Otherwise, is there some sort of an intermediary tool that I can use to make the layout more exportable?
Just to clarify, I am not trying to save my reports as PDF but trying to use a given PDF's layout to create a similar looking report in Telerik.
Any tips would be very welcome.
Thank you very much!
There are numerous tools for extracting text or images from pdf files, but I am pretty sure nothing exists to extract the layout of a pdf. The pdf format is just text and symbols with coordinates. There is no layout to extract.