font subset

2016-06-13 Thread Croe . David
hi, i would like to add headers/footers to each page of a pdf file. footers may contain dynamic data like page numbers. current approach is to copy those headers/footers from a template pdf file, but then the font is missing. As far as I've understood each page has its own font resources , is

AW: unable to calculate text width

2016-06-06 Thread Croe . David
Hi, this is a pretty simple example created with powerpoint: it displays the '%' Sign but pdfbox isn't able to calculate the width: http://www.buir.de/ABCD.pdf best regards, David -Ursprüngliche Nachricht- Von: John Hewson [mailto:j...@jahewson.com] Gesendet: Dienstag, 31. Mai

AW: unable to calculate text width

2016-05-31 Thread Croe . David
Thanks for reply, the pdf looks correct in pdf debugger and reader, thus if it can display the "%" sign why pdfbox can't calculate the width ? It lacks a part in the puzzle. How to determine if it’s a subset ? The toUnicode seems to have the character "%" .. 0025 ... <0001> <0024> [<0025>

AW: help with api usage (inline link target)

2016-05-09 Thread Croe . David
thank you for the example and the fast reply! your example shows how to create a page link. Sorry I didn't explain the kind of link very well. what I need is an inline link to a paragraph or section/text fragment. What is the corresponding PD* class for that kind of link? best regards David

help with api usage (inline link target)

2016-05-06 Thread Croe . David
Hi, i'm new to pdf and pdfbox. currently I'm trying to understand the pdfbox 2.0 api and the pdf spec. To get into it, I've inspected some pdfs with the PDFDebugger and/or an text editor in combination with qpdf to uncompress the contents and the pdf specification. which (free) tools might

unable to calculate text width

2016-05-25 Thread Croe . David
Dear all, i'm trying to replace and center a text in a pdf which has been created by phantomjs. I'm not sure if it's a problem within phantomjs or pdfbox, but I get following exception while calculating the text width of a string starting with Symbol %: Exception in thread "main"

embedded fonts an subsets

2016-08-01 Thread Croe . David
hi, i would like to use a pdf as a template in which certain variables will be replaced. If I create a template pdf via powerpoint or word and export it, it only exports a pdf file with an embedded subset font. This subset seems to contain only the characters already in the document and not all

AW: embedded fonts an subsets

2016-08-02 Thread Croe . David
I've placed some text let's call it variables in the document for example: %NAME% now I want to replace %NAME% with Mr.Realname this doesn't work because of the missing characters in the subset font, thus i had the idea to reload the complete font and use that instead. >Alternatively, just

AW: embedded fonts an subsets

2016-08-03 Thread Croe . David
thank you for fast reply, > This won't work due to different length / positions. PDF isn't HTML where > positioning is done depending on the browser size and where you can easily > insert a text into a paragraph. yes I know. I've to collect all Tj and TJ calculate positions and so on, of

Overlay in landscape pdf

2016-09-08 Thread Croe . David
Hi all, i would like to overlay a pdf in landscape orientation, but in 2.0.1 the overlay items appear rotated. Is this a bug, or is there a way to customize Overlayers behaviour ? best regards, david

AW: Overlay in landscape pdf

2016-09-13 Thread Croe . David
Hi, after closer inspection of the pdf's, I've found the cause of the problem. The problem is that the overlay pdf uses a matrix which transforms the origin to another corner and page.Rotate=0. the other pdf uses a matrix which is based on page.Rotate=90. After searching the web I found out, that

links and scroll position

2016-09-22 Thread Croe . David
Hi, i would like to create a bookmark which scrolls to a position within the pdf. For that purpose I've tried to use a PDPageXYZDestination, which comes with a setTop method. Does anyone know, how setTop works in combination with and without page.Rotation and what exactly should be the behavior