[iText-questions] QRcode and CMYK

2013-04-04 Thread Mathias Nilsson
Hi, I'm using BarcodeQRCode to create qr code. Is it possible to create a CMYK qr code? -- View this message in context: http://itext-general.2136553.n4.nabble.com/QRcode-and-CMYK-tp4657978.html Sent from the iText - General mailing list archive at Nabble.com. -

Re: [iText-questions] create Thumbnails of pdf

2011-10-21 Thread Mathias Nilsson
You could use Imagemagick for this. convert test.pdf test.jpg -- View this message in context: http://itext-general.2136553.n4.nabble.com/create-Thumbnails-of-pdf-tp3922635p3925535.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Need to be certain images and scale

2010-04-25 Thread Mathias Nilsson
Thanks, yes I have the old book and have now bought the new MEAP version. I just read the chapter on compression but I need more differens. I'll look foreward to the new chapter. / Mathias -- View this message in context: http://old.nabble.com/Need-to-be-certain-images-and-scale-tp28355138p283

[iText-questions] Need to be certain images and scale

2010-04-25 Thread Mathias Nilsson
Hi, I'm trying to make some sort of wysiwyg for datasheets. The end user can produce highres and lowres pdf. The only thing that come in mind was to make the images lowres and keep fonts etc the same way as the high pdf. I have 450, 300 dpi images for highres. when setting this in my application

Re: [iText-questions] problem with rounded corners

2010-04-22 Thread Mathias Nilsson
Hi, Yes I'm sure that there is something in my code making this but I can't find it. I have now managed to remove the sharp edges to smoth but with very odd settings. I must create a round rectangle twice to make it work. @Override public void onRender( PdfContentByte cb ) throws PdfDocumentExce

Re: [iText-questions] problem with rounded corners

2010-04-22 Thread Mathias Nilsson
can anyone give me some pointer on why PdfTemplate.roundRectangle() doesn't make fine edges as PdfContentByte does? -- View this message in context: http://old.nabble.com/problem-with-rounded-corners-tp28328340p28329580.html Sent from the iText - General mailing list archive at Nabble.com. --

[iText-questions] problem with rounded corners

2010-04-22 Thread Mathias Nilsson
Hi, I have problems with rounded corners. If I use the cb directly here and don't create a Pdftemplate everythings works fine with the rounded corners but if the background I set every block in my page will get them. cell.setCellEvent( new PdfPCellEvent(){ public void cellLayout(PdfPCell cell,

Re: [iText-questions] re solution images indesign-server my implementation

2010-04-22 Thread Mathias Nilsson
never mind, the itext approach is correct. It is a 3 party that integrates with indesign-server så it must be some fit-in-block that makes this oddness. -- View this message in context: http://old.nabble.com/resolution-images-indesign-server-my-implementation-tp28326082p28327964.html Sent from t

[iText-questions] re solution images indesign-server my implementation

2010-04-22 Thread Mathias Nilsson
Hi, I have a high resolution image that is 450x450 dpi and 3983x5524 pixels When adding this it a pdf with IText i use scalePercent(); I use 72 / 450 * 100 and it's 16% scale. When indesign does this the same image is 3912x5454 pixels 450x450 dpi. can anyone give me a hint on how to produce the

Re: [iText-questions] How to set the Height of a Line if a Image is inside the chunks

2010-02-18 Thread Mathias Nilsson
Thanks for all your time. / Mathias -- View this message in context: http://old.nabble.com/Separation-color-for-cut-marks-tp27637814p27646301.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Separation color for cut marks

2010-02-18 Thread Mathias Nilsson
Thanks! This is what I ended up with. I can not test this so I don't know if it is correct. PdfContentByte cb = writer.getDirectContent(); cb.setLineWidth( 0.1f ); cb.setColorStroke(new PdfSpotColor( "All", 1f, new CMYKColor( 1f, 1f, 1f, 1f ) ) , 1f); // MoveTo and LineTo cb.stroke();

Re: [iText-questions] Separation color for cut marks

2010-02-18 Thread Mathias Nilsson
he spot color needed (probably "CONTOUR" or "CutContour" depending on > the RIP). Then construct a PdfSpotColor with the given name: > > http://api.itextpdf.com/com/itextpdf/text/pdf/PdfSpotColor.html > > Regards, > Markus > > Am 18.02.2010 15:30, schrieb M

Re: [iText-questions] Separation color for cut marks

2010-02-18 Thread Mathias Nilsson
Hi!, My bad. I needed to add the extra x,y to every block in the pdf when I wanted cut marks. Anyway, still have problem with the cut marks lines color. I don't know what press they are printed on. I thought it was a default value or a standard for the cut mark color -- View this message in con

Re: [iText-questions] Separation color for cut marks

2010-02-18 Thread Mathias Nilsson
I still have a lot of problems with this. I have a A4 page that I need to add crop marks to. I set the trim box to 210x297mm and the pageSize increased by 20 mm. ( for adding the cut marks ) Problem is that the content that is added is squezed together -

[iText-questions] Separation color for cut marks

2010-02-18 Thread Mathias Nilsson
Hi, can anyone help me on how to create the correct separation color for cut marks. -- View this message in context: http://old.nabble.com/Separation-color-for-cut-marks-tp27637814p27637814.html Sent from the iText - General mailing list archive at Nabble.com.

Re: [iText-questions] Create cut marks for pdf

2010-01-10 Thread Mathias Nilsson
When extending the pdf to allow cut marks what should I use Media Box, Crop box,Bleed Box,Trim Box, Art box? I think one of this should be set to a bigger size than the original pdf. Then I should add marks by drawing in these boundries. is this the right way? -- View this message in context:

Re: [iText-questions] Create cut marks for pdf

2010-01-09 Thread Mathias Nilsson
Thanks. I'll look into this. -- View this message in context: http://old.nabble.com/Create-cut-marks-for-pdf-tp27077823p27089753.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.Net em

[iText-questions] Create cut marks for pdf

2010-01-08 Thread Mathias Nilsson
Hi, In indesign when creating a pdf you can add crop marks or cut marks for printing the pdf. What is the best way of achieving this. I generate pdf in a kinds of sizes so I need a generic solution to this. Any pointers? / Mathias -- View this message in context: http://old.nabble.com/Create-c

Re: [iText-questions] IDENTITY-H encoding in iText

2009-11-08 Thread Mathias Nilsson
I don't have pit stop or other tools to check it right now but the problem was rather simple. When checking the ghost script it complains about a font IDENTITY-H. I forgot that my list item used a none unicode font to make a box before every listitem. -- View this message in context: http://old

Re: [iText-questions] IDENTITY-H encoding in iText

2009-11-07 Thread Mathias Nilsson
Mathias Nilsson wrote: > > I'm using Ghostscript 8.7 and I can't see any newer version. > > / Mathias > Here is the file I'm working with http://old.nabble.com/file/p26240922/test.pdf test.pdf -- View this message in context: http://old.nabble.co

Re: [iText-questions] IDENTITY-H encoding in iText

2009-11-07 Thread Mathias Nilsson
I'm using Ghostscript 8.7 and I can't see any newer version. / Mathias -- View this message in context: http://old.nabble.com/IDENTITY-H-encoding-in-iText-tp26230847p26240921.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Editor for iText

2009-11-04 Thread Mathias Nilsson
I know, an editor to create xml markup that can be translated to iText format. The big question is. How can I make WYSIWYG when it comes to text in block, hyphenation. What editor in swing? Is it possible? / Mathias -- View this message in context: http://old.nabble.com/Editor-for-iText-tp26160

[iText-questions] Editor for iText

2009-11-03 Thread Mathias Nilsson
Hi, I don't know if this can be done but here it goes. Is there a change to make an java application, applet that creates datasheets with iText as an engine? I have already implemented this in some sort but when it comes to Swing HTMLEditor and to get the same result with fonts, hyphenation I ca

Re: [iText-questions] Paragraph and leading

2009-10-15 Thread Mathias Nilsson
cell.setUseAscender( true ) was the solution. // Mathias -- View this message in context: http://www.nabble.com/Paragraph-and-leading-tp25914314p25916595.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] Paragraph and leading

2009-10-15 Thread Mathias Nilsson
Hi, I guess this is a simple question but I don't know how to fix this. I have a paragraph with a leading. The paragraph is wrapped inside a cell in a PdfTable. When setting the leading for the paragraph it does not start 0,0 in x,y axis. It starts a little down. if I set the leading to 0 everyt

Re: [iText-questions] encoding and fonts

2009-10-15 Thread Mathias Nilsson
I have a greek font that is not unicode and I'm using cp1253 but the characters are not right. What code page should be used for a greek font only? // Mathias -- View this message in context: http://www.nabble.com/encoding-and-fonts-tp25888960p25905260.html Sent from the iText - General mailin

Re: [iText-questions] encoding and fonts

2009-10-14 Thread Mathias Nilsson
I guess ISO-8859-1 is the right encoding here. // Mathias -- View this message in context: http://www.nabble.com/encoding-and-fonts-tp25888960p25898647.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] encoding and fonts

2009-10-14 Thread Mathias Nilsson
Thanks! The arialuni.ttf worked with IDENTITY_H. I have fonts for Central european that should work with spanish, french etc. Should I use another encoding than IDENTITY_H here? -- View this message in context: http://www.nabble.com/encoding-and-fonts-tp25888960p25894889.html Sent from the iTex

[iText-questions] encoding and fonts

2009-10-14 Thread Mathias Nilsson
Hi, I have an html editor from swing. The data is htmlentity escaped and can produces greek, chinese etc. When trying to get the text to work with my iText font I must st an encoding. new com.lowagie.text.Font( BaseFont.createFont("c:/windows/fonts/Arial.ttf", "cp1253" ,BaseFont.EMBEDDED)); Thi

Re: [iText-questions] Thumbnail image of PDF

2009-10-01 Thread Mathias Nilsson
have a look a image magick -- View this message in context: http://www.nabble.com/Thumbnail-image-of-PDF-tp25664627p25707526.html Sent from the iText - General mailing list archive at Nabble.com. -- Come build with u

Re: [iText-questions] Thumbnail image of PDF

2009-10-01 Thread Mathias Nilsson
Have a look at image magick. convert test.pdf test.jpg // Mathias 2009/9/30 wasegraves > > > > -Original Message- > > From: Davis Ford [mailto:davisf...@zenoconsulting.biz] > > Sent: September 29, 2009 10:49 AM > > To: Post all your questions about iText here > > Subject: [iText-questi

[iText-questions] another dpi image question

2009-09-25 Thread Mathias Nilsson
Hi, I have searched this forum for a solution of adding images to my pdf but I'm stuck. When using the getDpiX(),getDpiY() method it returns 0 for my image. I've read that whenever a program like photoshop can't determine dpi the default is 300. Is there another way around this? Right now I tr

Re: [iText-questions] DottedLineSeparator and borders

2009-09-08 Thread Mathias Nilsson
Hi Bruno, The problem was in the Adobe Illustrator that I Used. When opening the pdf there the dotted lines was all over the place. When downgrading the illustrator it all worked fine. I also used pdftron for generating jpg from the pdf. It had the same effect as Illustrator. When using ImageMagi

Re: [iText-questions] DottedLineSeparator and borders

2009-09-04 Thread Mathias Nilsson
I am adding it to the chunk. Separator is the chunk and sep the dottedline. and I'm not implying that itext is doing anything wrong. It's just that I can't get it right. -- View this message in context: http://www.nabble.com/DottedLineSeparator-and-borders-tp25288829p25290372.html Sent from the

[iText-questions] Keep the background in pdf

2009-09-04 Thread Mathias Nilsson
I have a pdf that I stamp on. I add some blocks with backgrounds colors. when adding the last block I want the null color ( ie the color used when no color was set for background ). How can this be done? -- View this message in context: http://www.nabble.com/Keep-the-background-in-pdf-tp25289941

Re: [iText-questions] DottedLineSeparator and borders

2009-09-04 Thread Mathias Nilsson
Also when using the DottedLineSeparator my pdf get's corrupted. If I open it in acrobat and resave then everythings works fine again. -- View this message in context: http://www.nabble.com/DottedLineSeparator-and-borders-tp25288829p25288833.html Sent from the iText - General mailing list arc

[iText-questions] DottedLineSeparator and borders

2009-09-03 Thread Mathias Nilsson
Hi, When using the DottedLineSeparator I get a dotted border around other tables that is not defined dotted. public void onRender(com.lowagie.text.Paragraph paragraph) { DottedLineSeparator sep = new DottedLineSeparator(); sep.setAlignment( Elemen

Re: [iText-questions] Hyphenation for iText

2009-08-18 Thread Mathias Nilsson
Well, to make a long answer short. I have developed an Applet for positioning elements like block, images, tables and we have used indesign to create pdf files and jpg. Now we don't want that anymore. -- View this message in context: http://www.nabble.com/Hyphenation-for-iText-tp25022751p250249

Re: [iText-questions] Hyphenation for iText

2009-08-18 Thread Mathias Nilsson
and no, we don't use indd files. We have a third-party that does this for us that we don't want to use anymore. Is not the Indesign server that is the problem. -- View this message in context: http://www.nabble.com/Hyphenation-for-iText-tp25022751p25025019.html Sent from the iText - Genera

[iText-questions] Hyphenation for iText

2009-08-18 Thread Mathias Nilsson
Hi, I'm currently working on a project that uses Indesign Server and a third-party software for communicating with the Indesign server. The problem is that it has grown and I'm moving to iText because it is faster, simpler and more maintainable. My concern is now hyphenation. I have downloaded t

Re: [iText-questions] DottedLineSeparator and paragraph alignment

2009-05-30 Thread Mathias Nilsson
Pardon me for asking but you say that I shouldn't wrap my table in a columntext. How can I absolute position the table? -- View this message in context: http://www.nabble.com/DottedLineSeparator-and-paragraph-alignment-tp23763684p23800131.html Sent from the iText - General mailing list archive a

Re: [iText-questions] DottedLineSeparator and paragraph alignment

2009-05-30 Thread Mathias Nilsson
Ok -- View this message in context: http://www.nabble.com/DottedLineSeparator-and-paragraph-alignment-tp23763684p23799855.html Sent from the iText - General mailing list archive at Nabble.com. -- Register Now for Creat

Re: [iText-questions] DottedLineSeparator and paragraph alignment

2009-05-30 Thread Mathias Nilsson
Hi, I hope I'm not making a simple mistake here but here is some simple code. package se.edgesoft; import java.io.FileOutputStream; import com.lowagie.text.Chunk; import com.lowagie.text.Document; import com.lowagie.text.Element; import com.lowagie.text.Font; import com.lowagie.text.Paragraph;

[iText-questions] DottedLineSeparator and paragraph alignment

2009-05-28 Thread Mathias Nilsson
Hi, When using the DottedLineSeparator I can get it to work if the Paragraph is aligned left. I have a columnText and a pdftable with one cell. The paragraph is added to the cell. If I have 3 chunks and the middle is a DottedLineSeparator then it will only work if the paragraph is aligned left.

[iText-questions] barcode and position of code

2009-05-26 Thread Mathias Nilsson
Hi, I'm looking at a pdf that I must redo and the code of the barcode is between the guardbars. When I try the same code with BarcodeEAN the first digit is always placed left to the first guardbar. Is there anyway of placing the first 7 digits between the first pair of guardbar and the last 6 dig

Re: [iText-questions] Rounding an Image with border

2009-05-22 Thread Mathias Nilsson
That makes perfect sense. -- View this message in context: http://www.nabble.com/Rounding-an-Image-with-border-tp23673724p23674403.html Sent from the iText - General mailing list archive at Nabble.com. -- Register Now

[iText-questions] Rounding an Image with border

2009-05-22 Thread Mathias Nilsson
Hi, I'm using the sample code from the iText in action to round my image. Image img1 = Image.getInstance("d:\\7311310034092.jpg"); float w = MeasurementUtil.millimetersToPostscriptPoints(70.8f); float h = MeasurementUtil.millimetersToPostscriptPoints(90f); img1.scaleToFit( w, h); PdfTemplate tp1

Re: [iText-questions] Fill out a line with .......

2009-05-22 Thread Mathias Nilsson
Thank you, this was exactly what I was looking for. -- View this message in context: http://www.nabble.com/Fill-out-a-line-with-...-tp23668839p23671147.html Sent from the iText - General mailing list archive at Nabble.com. ---

[iText-questions] Fill out a line with .......

2009-05-22 Thread Mathias Nilsson
Hi, Is it possible to make something like this in iText Chapter 1 Java in action Chapter 2 .net framework .. and fill out the paragraph or line with dots? -- View this message in context: http://www.nabble.com/Fill-out-a-line-with-...-tp23668839p23668839.htm

Re: [iText-questions] Question on how to stamp and create new pdf in the same creation

2009-05-15 Thread Mathias Nilsson
Yes, your right! The setFillColor is copied from another class I have used so I know that this isn't used. The problem is that If I don't use columnText and just do a doc.add( new Paragraph( "test" ) ); then the paragraf is not visible. I will come back when I have read chapter 11. -- View this

Re: [iText-questions] Question on how to stamp and create new pdf in the same creation

2009-05-15 Thread Mathias Nilsson
consider this code public class Test { public static void main( String args[]){ Document doc = new Document(PageSize.A4, 0 , 0, 0 , 0); try{ PdfWriter writer

Re: [iText-questions] Question on how to stamp and create new pdf in the same creation

2009-05-15 Thread Mathias Nilsson
If I use cb.beginText(); and cb.endText() before and after the new paragraph is inserted but I don't know why I must do this. -- View this message in context: http://www.nabble.com/Question-on-how-to-stamp-and-create-new-pdf-in-the-same-creation-tp23556345p23557186.html Sent from the iText - Gen

[iText-questions] Question on how to stamp and create new pdf in the same creation

2009-05-15 Thread Mathias Nilsson
Hi!, I have some questions on how to stamp and create new pdf. My xml looks something like this. This document should create a pdf with two pages. One that is copied from somefile.pdf and added a block and one new page with a block. What is the best way of achieving t

Re: [iText-questions] Simple example top, bottom

2009-05-14 Thread Mathias Nilsson
Never mind. I figured it out -- View this message in context: http://www.nabble.com/Simple-example-top%2C-bottom-tp23545844p23547725.html Sent from the iText - General mailing list archive at Nabble.com. -- The NEW KOD

Re: [iText-questions] Vector Graphics not using EPS

2009-05-14 Thread Mathias Nilsson
Yes, the vector is kept by doing this. PdfReader reader = new PdfReader( "test.pdf" ); PdfImportedPage p = writer.getImportedPage(reader, 1); Image img1 = Image.getInstance(p); document.add( img1 ); thanks! -- View this message in context: http://www.nabble.com/Vector-Graphics-not-using-EPS-t

Re: [iText-questions] Vector Graphics not using EPS

2009-05-14 Thread Mathias Nilsson
Ahhh, I must be very slow on this. let's say the eps is saved as a pdf. 300 x 100 or something like that. How can I get the pdf that contains the logo to be added to another pdf that will have a lot more information pseudo code public void render(){ ** get document height and so forth from x

Re: [iText-questions] Simple example top, bottom

2009-05-14 Thread Mathias Nilsson
To explain more. If I use 0 , height - the top when viewing the pdf no content is visible. It looks like height - 10 is the top position when viewing the pdf. -- View this message in context: http://www.nabble.com/Simple-example-top%2C-bottom-tp23545844p23546019.html Sent from the iText - Gene

Re: [iText-questions] Vector Graphics not using EPS

2009-05-14 Thread Mathias Nilsson
to be honest I don't know. I don't generate the logos. A graphic designer savesthe eps as svg and then the svg can be used when I generate the pdf. The main problem when using the Salamander code is that it is slow. My collegue ask if I could use a pdf instead of SVG. The bottom line is. We must

[iText-questions] Simple example top, bottom

2009-05-14 Thread Mathias Nilsson
Hi, I just want to render a tiny rectangle at the top of the pdf. I know that 0,0 is bottom-left in the iText spec. consider this code. When I look at the pdf the rectangle is at the top of the pdf page. Why isn't it 10 points down from the top of the pdf? I've used heigth - 10? float height =

Re: [iText-questions] Vector Graphics not using EPS

2009-05-14 Thread Mathias Nilsson
How does this apply to using vector. The logos that I will render on pdf is now eps and about 100 different from different companies. -- View this message in context: http://www.nabble.com/Vector-Graphics-not-using-EPS-tp23542048p23545252.html Sent from the iText - General mailing list archive

Re: [iText-questions] Vector Graphics not using EPS

2009-05-14 Thread Mathias Nilsson
can you please explain this furture? How can this be achieved? -- View this message in context: http://www.nabble.com/Vector-Graphics-not-using-EPS-tp23542048p23544287.html Sent from the iText - General mailing list archive at Nabble.com. ---

Re: [iText-questions] have more blank page

2009-05-14 Thread Mathias Nilsson
Please post some code for us so we can help you. -- View this message in context: http://www.nabble.com/have-more-blank-page-tp23541731p23543672.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Vector Graphics not using EPS

2009-05-14 Thread Mathias Nilsson
I've tried the SVG salamander for this and it worked. is this the way of doing this. would it be fair to say that svg is used instead of eps as eps is postscript. What are the complications of using svg with iText? Graphics2D graphics = null; PdfTemplate template = null; try{ SVGDiagram diagram

[iText-questions] Vector Graphics not using EPS

2009-05-14 Thread Mathias Nilsson
Hi, I'm trying to add logos in my pdf and they need to be vector graphics. I've read in the book iText in action that only some eps are supported and when trying with eps generated from adobe it throws an exception. Is there a way to use vector graphics with iText. The book says SVG is supported