convert pdf to html using abcpdf - abcpdf

i am looking for a method to convert a pdf document into corresponding html document using abcpdf. kindly let me know if it is feasible. FYI, My pdf document has rich text along with images.

You can. Try this. Hopefully it'll work.
var doc = new WebSupergoo.ABCpdf10.Doc();
doc.Read('your Pdf byte array');
doc.Save('your HTML file path with .html extension');
doc.Clear();
doc.Dispose();
For documentation please have a look at the note section
http://www.websupergoo.com/helppdfnet/source/5-abcpdf/doc/1-methods/save.htm
To export as XPS, PostScript, DOCX or HTML you need to specify a file path with an appropriate extension - ".xps", ".ps", ".docx", ".htm", ".html" or ".swf". If the file extension is unrecognized then the default PDF format will be used.

You can definitely convert HTML to PDF, but I am not sure the inverse is possible to do with abcpdf.
Perhaps you can give a try to iText (iTextsharp)

Related

Is there any way to convert ckeditor html content to ms word document?

I have a Laravel project where I need to create a doc/docx document based on user input in Ckeditor. I have previously worked with PHPword where I can convert simple text input to a docx document. But the problem with ckeditor is it gives you html with inline css (which i need) and PHPWORD can not convert this to a docx.
I also tried to convert the html to word by xml but no luck. I know there is a paid tool called phpdocx but I am looking for a free solution.
Just a note, I can actually convert the html to pdf. But again, there is no solution from pdf to doc.
So, any help in converting the html to word or pdf to word?
thanks

Is it possible to convert vue js chart to pdf in laravel?

I have to generate a page data of my web site in PDF format. I need to export all the dynamic data with line, bar and pie charts. Is it possible to download in pdf format? For reminder, I am using laravel-dompdf to generate a file.
Let me know if you have any solution for this.
Thanks in advance.
I did research on it, we can not directly convert chartjs into pdf but what we can do is we can convert JS chart into image format and append into tag. Then, we can easily convert them into pdf format.
Let me know if anyone need in detail.
Thanks,

How can I the image start from a new line when using dita-ot-3.0 pdf plug outputting PDF?

hope someone to help me, thanks!
When I use dita-ot-3.0 to output pdf, I find in many places, the images are displayed in the same line with text.
I try two plugins:
- default pdf2 plugin
- a customization pdf plugin using PDF Plugin Generator at https://github.com/jelovirt/dita-generator (I didnot find any place to set image attribute)
So here is my question, I write xml like this:
source xml file
When I output pdf, I get this:
image is shown in the same line with text
there are many other images showing like that. How can I make the image show starting from a new line? Am I misusing the element? Is the difference between inline element or block?
You should be able to do this by setting the attribute placement="break" to the <image> element. This is explained in the spec.

Convert HTML to PDF using TCPDF

I need to convert on the fly an HTML into PDF. I've been using the old HTMLDoc library for a while, but now I need to print SVG graphics and HTMLDoc doesn't support SVG nor base64-enconded images.
So far it seems to me that TCPDF (or a tool based on it) is a good way. The only problem is that I don't want to "build" the PDF document in PHP, as the HTML is dynamic.
Is there any way to write a script that simply takes a portion of HTML page and returns a PDF? That would imply some sort of way to specify start/stop markers in the HTML page (just like in HTMLDoc).
Thanks for any advice,
Thomas
TCPDF has got very limited css support and some bugs with " quotes, so from any html to pdf TCPDF is not an option for you unfortunetly
TCPDF not supports all css functionality, mpdf 6.0 is best ever pdf library for convert html to pdf, It also supports almost required css as well. I prefers htmlcanvas jquery for convert html to image.

Prevent asciidoc from converting a file path into a link

I'm manually converting a MS Word document to asciidoc format.
By doing so I ran into an issue that I can't work around yet.
There is an example where I want to show the reader of how the syntax of a file link should look like.
So I used this as an example:
file:///<Path>/<to>/<Keytab>
Asciidoc now renders this pseudo link into an actual link and warns me about this while converting my asciidoc document into HTML and PDF.
Usually, I would simply use the [source] element to prevent the link rendering. But the file link is part of a table.
[options="header,footer",cols="15%,85%"]
|=======================
|parameter|usage
|keyTabLocation |file:///<Path>/<to>/<Keytab>
|=======================
Is there a way to prevent the rendering/convertion of the file link?
Okay, I found the solution. I had to escape the whole macro using a \ at the beginning.
So this did the trick:
[options="header,footer",cols="15%,85%"]
|=======================
|parameter|usage
|keyTabLocation |\file:///<Path>/<to>/<Keytab>
|=======================

Resources