Questions tagged [pd4ml]

An HTML to PDF converter for Java and .NET

An HTML to PDF converter for Java and .NET

See http://pd4ml.com/

14 questions
6
votes
1 answer

pd4ml first page takes default width (640)

I've got an issue where I have to generate pdf using pd4ml tool. It works fine for all the pages except the first page. I've used the following lines of code. Page2 and Page3 are working fine without any issues. But the first page doesn't accept…
Som
  • 270
  • 1
  • 13
2
votes
4 answers

Maven dependency for pd4ml

HI I searched on google and did not find the dependency for PD4ML.I have added the jar manually but everytime i do mvn clean install it is giving me compile time error error: package org.zefer.pd4ml does not exist org.zefer.pd4ml does not exist
Akshay jain
  • 555
  • 1
  • 7
  • 22
1
vote
1 answer

Unwanted extra space in PDF page while converting HTML to PDF using pd4ml in java

In my existing project, I'm trying to convert HTML content to PDF using PD4ML version-3. I'm facing some padding issue in the PDF page while I'm setting some custom size for the PDF page size. Please find the below java code to convert HTML to…
Kavi Chinna
  • 237
  • 2
  • 7
  • 18
1
vote
3 answers

Arabic contents are appearing as "?" while generating PDF from HTML [JAVA] [PD4ML]

I am trying to write a code using that PDF can be generated for different languages. Its working for most of the language like (english ,japanese ,korean ,chinese) but for arabic language text is appearing as "?" .This is git HTML TO PDF converted…
vikash srivastava
  • 393
  • 2
  • 4
  • 16
1
vote
0 answers

Pd4ml not supporting Thai language and also some south Indian languages

I give ನೀವು ಹೇಗಿದ್ದೀರಿ == kannada language which is Tunga font and telugu, tamil and thai language and along with hebrew sometimes. it gives output with special characters. for example :: for kannada "ನೀವು ಹೇಗಿದ್ದೀರಿ" it generates, "ನೀವೕ…
Muazzam
  • 25
  • 1
  • 11
1
vote
2 answers

How can I open a file when it is already opened by other user in system?

PD4ML pd4ml = new PD4ML(); pd4ml.enableTableBreaks(true); pd4ml.PageInsets = new System.Drawing.Rectangle(5, 5, 5, 5); pd4ml.PageSize = PD4Constants.getSizeByName("LETTER"); Byte[] byteArray = Encoding.ASCII.GetBytes(content); MemoryStream stream =…
1
vote
1 answer

HTML-PD4ML Java

I trying to convert Html to pdf using pd4ml. Loaded pd4ml.jar in lib folder. I am getting the error Error. ss_css2.jar is not in the classpath. Is there any other jar I have to download? My code is : private void runConverter(String url,…
Pratty
  • 85
  • 2
  • 13
1
vote
1 answer

Creating a non-editable pdf document using PD4ml

I am using pd4ml to create pdf documents, however I don't want the user to be able to edit those documents using ms word 2013. here is what I have tried so far pd4ml = new PD4ML(); pd4ml.setPageSize(PD4Constants.A4); pd4ml.setPageInsetsMM(new…
QuakeCore
  • 1,886
  • 2
  • 15
  • 33
1
vote
2 answers

How to integrate Orbeon Forms with PD4ML, which doesn't support JavaScript?

I'm using pd4ml to render a URL produced by the Orbeon XForms engine and convert it to PDF. pd4ml.render( urlstring, fileOutputStram); The HTML produced by Orbeon from my XForms shows OK in the browser. But when trying to render the XForms with…
panox
  • 507
  • 4
  • 13
0
votes
0 answers

Issue with Line Breaks and Blank Page After Updating PD4ML from Version 3 to 4

I recently updated PD4ML from version 3 to version 4 in my project. After the update, I've noticed that the generated PDFs now have unexpected line breaks in each row of tables, and there's also an extra blank page added at the end of the PDFs. I've…
mahsa
  • 58
  • 1
  • 7
0
votes
5 answers

How do i avoid text overlapping in td?

I have genertaed a pdf from html using pd4ml jar. The image shown is the resultant pdf that has text in td overlapping each other. the code is as follows
Pri_stack
  • 179
  • 1
  • 12
0
votes
0 answers

PD4ML issue while converting an HTML that contains Chinese characters

While using PD4ML for pdf creation, I have noticed that there is a problem with HTMLs that contain Chinese characters. Those characters are Chinese and can be seen in their normal form in the source html. snippet from pdf:
VictorV
  • 9
  • 2
0
votes
0 answers

iText - Can't read the content of a PD4ML generated pdf

I have an issue at reading pdf content with iText. I have tested all the different technics. They all work with standard pdf documents, but I have one pdf document that I need to amend and I can't get the content. This document has been generated by…
Gilles
  • 357
  • 3
  • 20
0
votes
0 answers

Converting jsp page to PDF format

I have a jsp page containing a dynamic report with images, which is producing the data from the database. I want an option in jsp page Save as PDF so that entire page should be saved in PDF format. I am using the PD4ML converter. The code where I…