Questions tagged [pdfclown]

PDF Clown is a free/libre open source implementation of the Portable Document Format (PDF) specification published by Adobe® Systems Inc., written as a class library in multiple languages (Java™ 6 and C#/.NET 4.0).

PDF Clown is a free/libre open source implementation of the Portable Document Format (PDF) specification published by Adobe® Systems Inc., written as a class library in multiple languages (Java™ 6 and C#/.NET 4.0).

Java version represents the reference implementation of PDF Clown.

C# version was developed upon the Mono flavour of the .NET framework, which allows it to run over multiple platforms (BSD and UNIX variants, including OS X and Solaris, and Microsoft® Windows®). As such code adheres to the related ECMA spec, it may also be run upon other .NET implementations, including MS'.

It's hosted here at SourceForge.

95 questions
8
votes
1 answer

Open, Edit and Save PDF File in C#.Net

I have a requirement to open an existing pdf file and need to add some comments or edit existing content and save the same file. I spent so many hours on this and most people referred itextsharp or pdf clown but unfortunately didn't get any samples…
user2218549
  • 155
  • 2
  • 2
  • 7
6
votes
1 answer

How to add picture to pdf file using PDFClown

I use PDFClown .jar library in order to convert jpeg images to pdf files. However, I get the below error: java.lang.RuntimeException: java.io.EOFException Here you can find the code: org.pdfclown.documents.contents.entities.Image image =…
Milad-Irani
  • 73
  • 1
  • 5
6
votes
3 answers

Debugging PDF for error

I'm creating PDF files using PDFClown java library. Sometimes, when openning these files with Adobe Acrobat Reader I get the famous error message: "An error exists on this page. Acrobat may not display the page correctly. Please contact the…
user1028741
  • 2,745
  • 6
  • 34
  • 68
3
votes
1 answer

Get pixeldata from scanned PDF-document in Java

I have some documents that I have digitalized with a Xerox scanner to a PDF file. Using Java, I am trying to extract RGB pixel data from it, to use in image recognition applications. Developing this from scratch is a little bit beyond my level, so I…
Torben
  • 53
  • 3
3
votes
1 answer

How to change color of a text field in pdfclown?

I want to fill in a PDF form. I am using library Pdfclown for this. I have a problem changing the color of a TextField. I can change font size without problems, but not the color of the text. I put the code where I managed to set values in the PDF…
3
votes
1 answer

How can I Extract words with its coordinates from pdf using .net?

I'm working with pdf in hebrew language with diacritical marks. I want to extract all the words with its coordinates. I tried to use ITextSharp and pdfClown and they both didn't give me what I want. In pdfClown there are missing letters\chars in…
Alex K
  • 5,092
  • 15
  • 50
  • 77
3
votes
2 answers

open pdf from stream using pdfclown in c#

I am really liking pdfclown in c# but I would like to open a pdf from a byte[] array or filestream. I have not found any examples of this for pdfclown. Could anyone help? An example would be something like: using (org.pdfclown.files.File file = new…
Dave
  • 53
  • 1
  • 5
3
votes
1 answer

Exception in thread "main" org.pdfclown.util.parsers.ParseException: 'name' table does NOT exist

I am trying to run the Java Code written by Stefano Chizzolini (Awesome guy : Creator of PDFClown) to Parse a PDF using PDF Clown library. I am getting this error and I dont know what I can do to fix this. Exception in thread "main"…
3
votes
1 answer

Annotation in pdfclown

I am trying to put a sticky note at some x,y location. For this i am using the pdfclown annotation class in .net. Below is what is available. using files = org.pdfclown.files; public override bool Run() { files::File file = new…
user1853803
  • 649
  • 3
  • 8
  • 27
2
votes
0 answers

PDFClown parse error while converting pdf to jpeg

I have a problem while converting a pdf document while using PDFClown in .NET environment. The pdf is succesfully created (I use MigrDoc for the rendering) and I can open it but when I use this function to convert it to jpeg images an exception is…
Marcus
  • 81
  • 9
2
votes
1 answer

Change font color in StaticNote of PDFClown

Referring to Build text callout with PDF Clown - Is there a possibility to change the font color of the text within the callout note? I haven't found a suitable method yet, can someone please give me a hint?
grml
  • 23
  • 3
2
votes
1 answer

Actually cropping a PDF with PDF Clown

My objective is actually cropping a PDF file with PdfClown. There are a lot of tools/library that allow cropping PDF, changing the PDF cropBox. This permits hiding contents outside a rectangular area, but content is still there, it might be…
Lorenza
  • 37
  • 3
2
votes
0 answers

edge browser doesnt show embedded font in pdf created by pdfclown

when i create a pdf document with pdfclown 0.1.2 (java) and embed the font via Font.get(pdfDocument, getResourceFile("lang/DejaVuSans.ttf")); i can view the pdf just fine in multiple browsers (ie 11, ff 42, chrome 46). but when i open the pdf in…
wrtlbrmpft
  • 29
  • 2
2
votes
1 answer

Can't change the font color

I discovered the font color doesn't work too well, regardless of whether it is blue, dark blue or light blue. They are still all the same color. var FontArialRegularFilePath = @"C:\Windows\Fonts\Arial.ttf"; var fontArialRegular =…
fletchsod
  • 3,560
  • 7
  • 39
  • 65
2
votes
1 answer

Convert measured inches (and pixels) to float?

Inches = Pixels / dpi I noticed that PDF Clown uses measurements in float: how do I convert inches and pixels to float for width, height, etc. to properly work in PDF? Does anybody have a mathematical formula for this? 1) Inches --> float 2)…
fletchsod
  • 3,560
  • 7
  • 39
  • 65
1
2 3 4 5 6 7