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
1
vote
1 answer

Instantiating a .NET class with a reference to a dll causes FileNotFoundException

I've added as reference PDFSharp classes for a project. When I tried to use a method in a class that includes PDFSharp libraries I get a FileNotFoundException that states I'm missing the referenced (PDFSharp) file (while I can assure you the dll…
misleadingTitle
  • 657
  • 6
  • 21
1
vote
0 answers

Copy protecting a single page in PDF document using C#?

Is it possible to restrict/disable copy/cut/print option (Copy Protect) for a single page in PDF document using C#? I know it is very much possible to copy protect the whole PDF document using third party library like PDFSharp, PDFClown etc. But all…
urpalreloaded
  • 468
  • 3
  • 13
0
votes
0 answers

PDF clown field value editing

I am using the PDF clown library to edit a pre-existing PDF (mass autofilling them based on user input) and i'm having trouble changing the form fields (specifically the textfields) value, when attempting to run the code below i will be given this…
Lydess
  • 33
  • 6
0
votes
1 answer

How to move text in PDF?

Is there a Java or Nodejs library that can move existing text in a PDF file? I'd like to extract all the text nodes, then move some of them to a new location based on some conditions. I tried PdfClown, galkahana/HummusJS, Hopding/pdf-lib, but seems…
junli
  • 25
  • 10
0
votes
1 answer

PDFClown MarkerContent gives only first two ContentObjects

I am a newbee to PDFClown and need help in parsing my pdf contents. My PDF has huge number of MarkedContents which is displayed when converted as Stream. But i am not able to parse them into objects to extract the Path Information contained within,…
ss_mj
  • 167
  • 1
  • 15
0
votes
0 answers

How to search cyrillic pdf using PDF Clown

I'm trying to programmatically search a Russian-language pdf file for a string using PDF Clown like this: var FilePath = @"‪C:\Users\Yvoloshin\source\repos\SearchPdf\Газета «Красная Звезда» №001 от 01 января 1942 года.pdf"; org.pdfclown.files.File…
yvoloshin
  • 378
  • 6
  • 18
0
votes
1 answer

Unable find location of ColorSpace objects in PDF document

I want to identify the ColorSpace objects in PDF and fetch their location(coordinates, width and height of the colorspace) in the page. I tried traversing through the BaseDataObject in Contents.ContentContext.Resources.ColorSpaces, I can identify…
ksa
  • 47
  • 8
0
votes
1 answer

PDFClown cannot edit created PDF

I’m using PDF Clown (in C#) to generate a PDF file containing graphics (lines, polygons and circles) on separate layers. Now I run into a problem and I have searched the internet for days but cannot find the solution. I have the following…
Erik
  • 3
  • 3
0
votes
1 answer

PDFClown System.OutOfMemoryException while populating large file

I am generating a large Report pdf file using PDFClown using data from a database. The process takes a very long time and eventually runs out of memory when the number of pages nears the 150 mark taking up more than 1.5GB of ram and with the…
Alex
  • 57
  • 8
0
votes
0 answers

PDFClown: How to clone a page

I want to copy pages from an old pdf file into a new one with the help of pdfclown. So far I have tried the following: File newFile = new File(); Document document = newFile.getDocument(); for (int pageNumber : pageNumbers) { …
Jannik
  • 965
  • 2
  • 12
  • 21
0
votes
1 answer

Text info extraction from pdf

How can I extract text information such as text positional coordinates, width, height and e.t.c., ?? I tried this with 'Pdf clown' library and It works perfectly fine for normal text, but, for rotated text (90/-90degrees) it outputs width/height…
ksa
  • 47
  • 8
0
votes
2 answers

PDFClown Copy annotations and then manipulate them

I have the need to copy annotations from one PDF File to another. I have used the excellent PDFClown library but unable to manipulate things like color,rotation etc. Is this possible? I can see the baseobject information but also unsure how to…
tapaccos
  • 3
  • 3
0
votes
1 answer

Pdfclown:How to override the existing highlighted keyword in pdfclown

I got the requirement in pdfclown like if there are few keywords which are substring/matched with another keyword, while highlighting those keywords has to be override and should allow to highlight full keyword .For example in below map ETS keyword…
Seshadri
  • 101
  • 1
  • 1
  • 9
0
votes
1 answer

how to resolve org.pdfclown.util.NotImplementedException

I am getting below exception when i load one of the chinese document not all chinese documents.My requirement document is not encoded format and it looks like normal/plain chinese document.As per confidential concerns i am not providing my…
seshadri p
  • 29
  • 7
0
votes
1 answer

PDF write error using PDF Clown

I have a PDF file which i am reading using PDF Clown and then adding some annotations to it. After that i am trying to serialize the file to disk using Save method of org.pdfclown.files.File. In doing so i am getting following error An exception…
uzair_syed
  • 313
  • 3
  • 16