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).
95
questions
0
votes
0
answers
334
views
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 ...
0
votes
1
answer
420
views
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 ...
0
votes
1
answer
96
views
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 ...
0
votes
0
answers
201
views
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 от ...
0
votes
1
answer
440
views
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....
2
votes
0
answers
544
views
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 ...
1
vote
1
answer
175
views
PDFClown nuget package cannot load assembly
I've added the PDFClown nuget package to a .net core project and ran into the following error at runtime:
Could not load file or assembly 'PDFClown, Version=0.1.2.0,
Culture=neutral, ...
0
votes
1
answer
496
views
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 ...
0
votes
1
answer
225
views
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 ...
0
votes
0
answers
209
views
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();
...
1
vote
1
answer
936
views
Unable to extract cmyk colorspaces from pdf
I'm trying to extract colorspace data from pdf. I have a file with Pantone and CMYK colorspaces. When I extracted the colorspaces from PDF using any pdf library (I used pdfclown, pdfbox and icePdf), ...
0
votes
1
answer
2k
views
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 ...
-1
votes
1
answer
630
views
Pdfclown-Few different fonts of pdf files are not recognizing and also i am getting exceptions
I am facing issue with pdfclown frequently when few pdf files are non english and thier fonts are not recognizing and also i am getting below exception.Please find the pdf path and code path.Load ...
0
votes
2
answers
384
views
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 ...
0
votes
1
answer
207
views
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 ...
0
votes
1
answer
408
views
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 ...
-1
votes
1
answer
175
views
Using pdfclown few search keywords are not highlighting in chinese/japanese documents
Iam facing issue with some of the search keywords are not highlighting in chinese documents .Due to confidiential concerns iam not providing actual pdf . search keywords are 1)亿元或2) 收入亿来源 Please find ...
-2
votes
1
answer
101
views
How to improve performance for search keywords highlighting on file using pdfclown
I am using pdfclown and below code is taking around 100 seconds to highlighting search keywords in same file.Kindly provide your inputs for improving performance in below code.Please find the jar ...
-1
votes
1
answer
47
views
How to highlight the color for non english search keyword as orange in pdfclown
I am using pdf clown and i got the requirement like highlight the color for non english search keyword as orange.Currently i am able to search the keyword and highlight with yellow color for non ...
0
votes
1
answer
381
views
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 ...
1
vote
1
answer
615
views
pdf clown- not highlighting specific search keyword
I am using pdf-clown with pdfclown-0.2.0-HEAD.jar.I have written below code for highlighting search the keyword in Chinese language pdf file and same code is working fine with english pdf file.
...
0
votes
1
answer
433
views
PDFClown Find and replace page
Using pdfclown,
I was wondering the best practice to find a page in a Existing PDF doc, and replace with a page from another PDF doc.
I have the bookmark and pagelabel of both pages.
1
vote
0
answers
198
views
PDFClown Extract table How to extract a table from PDF using PDFClown
How would extract an Table from a PDF using PDFClown.
I want to take the Table Data and save it to a DB.
I am open to use different framework/package as long it is free
Thanks
0
votes
0
answers
87
views
Get rectangles of a document with pdfclown
I´m using PDFClown to analyze PDF documents. Some documents have pages with rectangles like :
Does pdfclown provide a function to work with these rectangles? For example to get there coordinates, ...
0
votes
1
answer
87
views
ClassNotFoundException org.odfclown.files.File [duplicate]
I´m using Maven and Spring MVC to create a webapp. When building with Maven the following error occurs:
java.lang.ClassNotFoundException: org.pdfclown.files.File
at org.apache.catalina.loader....
0
votes
1
answer
97
views
PDFClown: Creating a TextMarkup leads to an inaccurate Box of the TextMarkup
Im working with PDFClown to analyze and work with PDFDocuments. My aim is to highlight all numbers within a table. For all numbers which belong together (For example: All numbers in one column of a ...
0
votes
1
answer
394
views
PDF Clown Highlight multiple search word is failing for PDF contains images, color text, Complex Diagrams
I´m using PDFClown to highlight the multiple search word in a PDF Document. In many pdf documents which contains colorful images , Complex diagrams, colored text PDFClown throws exception there and ...
0
votes
1
answer
369
views
PDFClown Different font-size in one line
I´m using PDFClown to analyze a PDF Document. In many documents it seems that some characters in PDFClown have different heights even if they obviously have the same height.
Is there a workaround?
...
0
votes
0
answers
165
views
Want to add content of pdf page to another pdf
I have two pdfs both with limited data i.e. Single page. I want to merge the data of one pdf into another pdf but on the single page (It should not create the other page to append the external data). ...
0
votes
1
answer
126
views
PDFClown .NET Open a Windows Explorer instead of specifying path
Currently I have this test code
File file = new File();
Document document = file.Document;
Page page = new Page(document);
document.Pages.Add(page);
PrimitiveComposer composer = ...
0
votes
1
answer
798
views
How to remove Objects from PDF File using PDFClown
I have a pdf which contains a lot of invisible paths. Since the amount of path produces problems later on, I would like to remove the ones that have white colors.
So far I am trying to do this with a ...
1
vote
1
answer
2k
views
PDF Clown does not render text
I use PDF Clown to create PDF files containing text and different shapes. Saving the files brings the desired result. But when I print the pages or render them to bitmaps, only the shapes are visible ...
0
votes
0
answers
568
views
Text to PDF using PDFClown
Please tell me how to convert text to PDF using PDF Clown library. I am using first time pdflown library. Is there any way to bind my string to PDF using this library.
0
votes
1
answer
310
views
List embedded fonts using PDFClown (.net version)
Is there a way to get the list of embedded fonts in a PDF file using the PDFClown library? The aim is to check whether it is a scanned PDF of not, assuming it is a scanned document if it doesn't have ...
0
votes
1
answer
84
views
How to determine if text fits in frame?
I have a Frame and use a BlockComposer to write multiple lines of text into the Frame. The text of the lines is determined by user input so I don't know in advance how many characters they will ...
2
votes
1
answer
231
views
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 ...
1
vote
1
answer
173
views
PDFClown NullPointerException in GlyphMapping
I recently switched my code from PDFClown v0.1.2 to v0.1.2.1. There were some differences which I think I have already met now (changed constructors of TextMarkup() and switching from CallOutNote to ...
0
votes
0
answers
440
views
PDFClown - Compressing PDF
I am trying to compress PDF files using PDFClown 0.1.2, but i am facing issue like when i try to open PDF it says "An Error exists on this page"
also tried the approach mentioned in link
Stack
Below ...
0
votes
1
answer
319
views
Build text callout with PDF Clown
the adobe acrobat reader have markup tool called "text callout".
It's possible to build with PDF Clown a object of this type?
-1
votes
1
answer
541
views
Get position only from highlights in pdf document with PDF Clown
I use the method "Annotation.getBox" from PDF Clown library to get position of highlights in text. On this way also position of bolt or italic text is retrieved. How can this be avoided? I want to get ...
2
votes
1
answer
424
views
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,...
0
votes
1
answer
56
views
executable jar from eclipse unable to use images within packages... sometimes
I have wrote a swing application and it works fine in eclipse but when I export it as a runnable jar parts of the application fail, when dealing with images, this line for example;
logo = getClass()....
0
votes
0
answers
329
views
Spaces replaced by "?" question mark
I am use PDFClown 0.1.2 for .NET 4 for stamping PDF in C# console application.
When I Stamping string with spaces (e.g. "Stamped by PDFClown"), using any true type font (Font.Get(pdfdocument, "path\to\...
0
votes
1
answer
709
views
Text Highlighting with PDFClown without using PDF Annotations
I've started using PDFClown some weeks ago. My purpose is multi-word highlighting, mainly on newspapers. Starting from the org.pdfclown.samples.cli.TextHighlightSample example, I succeeded in ...
-1
votes
1
answer
125
views
casting an javax.swing.ImageIcon object to org.pdfclown.documents.contents.entities.Image
I'm trying to cast a javax.swing.ImageIcon to a org.pdfclown.documents.contents.entities.Image so that I can display images in PDF file created by PDF Clown from my Swing application.
I require a ...
0
votes
1
answer
376
views
Empty whitespace conversion in PDFClown
I'm having an issue when using the TextExtractor class in PDFClown, with occurrences of empty whitespace also known as a "discretionary newline". These characters are embedded randomly but ignored in ...
0
votes
1
answer
285
views
PDF Clown: creating lists
I'm looking to programmatically create PDF files using PDF Clown in Java. I require the use of lists, with bullet points. Is this possible using the current stable release of PDF Clown? If so, which ...
3
votes
1
answer
896
views
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 ...
0
votes
1
answer
1k
views
When printing a pdf with PdfClown, the print runs off the page without a PdfClown creating a new page, how to fix?
When printing a pdf with PdfClown, the print runs off the page without a PdfClown creating a new page, how can this be fixed?
The code is below, it prints text onto a pdf page, and another pdf page ...
0
votes
1
answer
489
views
PDFClown Editable Rectangle
Following the given examples pdfClown can both highlight a specific text and draw a rectangle around the respective words.
Is there a possibility to make this reactangle editable afterwards with the ...