[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.

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


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.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[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
using iText I use scalePercent

72 / 450 * 100 = 16% scale
72 / 300 * 100 = 24% scale

Before using the lowres images I use Imagemagick to set the density and 
scale the images. The lowres images should be. 100 dpi

// With Imagemagick
For the 450 dpi images I scale them to
100 / 450 = 22% and set 100 dpi
100 / 300 = 33% and set 100 dpi.

// iText
In my application using iText I do the same
72 / 100 = 72% and so on.

My problem is that the images isn't rendered exactly the same. In some cases
the images is a whole A4 page and the diffrens is clear. How should I make a
lowres and highres and getting the same result. what is the best way of
constructing lowres pdf:s.

I know that this is a rounding and that 22.222% is more correct but I
guess there is a better way of constructing low pdf. First I tried just with
Image magick and converted the pdf to 100 dpi but the fonts etc got very
blurry.

/ Mathias 


-- 
View this message in context: 
http://old.nabble.com/Need-to-be-certain-images-and-scale-tp28355138p28355138.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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-tp28355138p28355239.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 same size?
-- 
View this message in context: 
http://old.nabble.com/resolution-images-indesign-server-my-implementation-tp28326082p28326082.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[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, Rectangle rect,PdfContentByte[]
canvas) {
  // Here I have tried to just add it to the PdfContentByte but then every
block 
  // is the color of the last block. I've tried cb.saveState() and
restoreState() but without luck 
  PdfContentByte cb = canvas[PdfPTable.LINECANVAS];
  PdfTemplate template = cb.createTemplate( rect.getWidth() ,
rect.getHeight());

  if( getBorder() != null ){
template.setLineWidth( MeasurementUtil.millimetersToPostscriptPoints(
getBorder().getThickness()) );
template.setColorStroke( getPage().getPdfDocument().getColors().get(
getBorder().getColorReference() ));
  }

  if( getBackgroundReference() != null ){
template.setColorFill( getPage().getPdfDocument().getColors().get(
getBackgroundReference() ));
  }

  template.roundRectangle(0 , 0, rect.getWidth() ,rect.getHeight() ,
MeasurementUtil.millimetersToPostscriptPoints( getRadius() ));

  if( getBackgroundReference() != null || getBorder() != null ){
if( getBackgroundReference() != null  getBorder() != null ){
  template.fillStroke();
}else if( getBackgroundReference() != null ){
  template.fill();
}else{
  template.stroke();
}
  }

  cb.addTemplate( template, rect.getLeft(), rect.getBottom());
}});
-- 
View this message in context: 
http://old.nabble.com/problem-with-rounded-corners-tp28328340p28328340.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 PdfDocumentException{
  float width = MeasurementUtil.millimetersToPostscriptPoints( getWidth());
  float height = MeasurementUtil.millimetersToPostscriptPoints( getHeight()
);
  float left = getLeft();
  float top = getTop();
  if( getPage().getPdfDocument().getCutMark() != null ){
left += getPage().getPdfDocument().getCutMark().getWidth();
top -= getPage().getPdfDocument().getCutMark().getHeight();
  }

  PdfTemplate tp = cb.createTemplate(width, height);
  tp.roundRectangle(0, 0, width, height,
MeasurementUtil.millimetersToPostscriptPoints( getRadius() ));
  cb.addTemplate(tp, MeasurementUtil.millimetersToPostscriptPoints( left ),
MeasurementUtil.millimetersToPostscriptPoints(
getPage().getPdfDocument().getHeight() - ( top + getHeight(;
  ColumnText ct = new ColumnText( cb );
  ct.setSimpleColumn( MeasurementUtil.millimetersToPostscriptPoints( left ),
MeasurementUtil.millimetersToPostscriptPoints(
getPage().getPdfDocument().getHeight() - ( top + getHeight())),
MeasurementUtil.millimetersToPostscriptPoints( left + getWidth() ),
MeasurementUtil.millimetersToPostscriptPoints(
getPage().getPdfDocument().getHeight() -  top ), 0, Element.ALIGN_LEFT );

  PdfPTable table = new PdfPTable(1);
 
table.setTotalWidth(MeasurementUtil.millimetersToPostscriptPoints(getWidth()));
  table.setLockedWidth( true );
  table.setSpacingBefore(0);
  table.setSpacingAfter(0);
  PdfPCell cell =  new PdfPCell();
  cell.setBorderWidth( 0 );
  cell.setVerticalAlignment( getVerticalAlign().getAlignment() );
  cell.setLeft(0);
  cell.setTop(0);
  cell.setRight( 0 );
  cell.setBottom( 0 );
  if( isUseAscender() != null )
cell.setUseAscender( isUseAscender() );
  cell.setIndent(0);
  cell.setPaddingLeft(
MeasurementUtil.millimetersToPostscriptPoints(marginLeft) );
  cell.setPaddingBottom(
MeasurementUtil.millimetersToPostscriptPoints(marginBottom) );
  cell.setPaddingRight(
MeasurementUtil.millimetersToPostscriptPoints(marginRight) );
  cell.setPaddingTop(
MeasurementUtil.millimetersToPostscriptPoints(marginTop) );
 
cell.setFixedHeight(MeasurementUtil.millimetersToPostscriptPoints(getHeight()
));
  cell.setBorder( 0 );
  cell.setCellEvent( new PdfPCellEvent(){
public void cellLayout(PdfPCell cell, Rectangle rect,PdfContentByte[]
canvas) {
  PdfContentByte cb = canvas[PdfPTable.LINECANVAS];
  PdfTemplate template = cb.createTemplate( rect.getWidth() ,
rect.getHeight());
  // HERE. If I remove this there will be no color
  template.roundRectangle(0, 0,  rect.getWidth() ,rect.getHeight() ,
MeasurementUtil.millimetersToPostscriptPoints( getRadius() ));
template.clip();
template.newPath();
if( getBackgroundReference() != null ){
  template.setColorFill( getPage().getPdfDocument().getColors().get(
getBackgroundReference() ));
}
if( getBorder() != null ){
   template.setLineWidth( MeasurementUtil.millimetersToPostscriptPoints(
getBorder().getThickness()) );
   template.setColorStroke( getPage().getPdfDocument().getColors().get(
getBorder().getColorReference() ));
}

 template.roundRectangle(0, 0,  rect.getWidth() ,rect.getHeight() ,
MeasurementUtil.millimetersToPostscriptPoints( getRadius() ));

 if( getBackgroundReference() != null || getBorder() != null ){
   if( getBackgroundReference() != null  getBorder() != null ){
 template.fillStroke();
   }else if( getBackgroundReference() != null ){
 template.fill();
   }else{
 template.stroke();
   }
 }

 cb.addTemplate( template, rect.getLeft(), rect.getBottom());
}
});

if( getRotation() != null )
  cell.setRotation( getRotation() );
if( ! paragraphs.isEmpty() ){
 for( AbstractParagraph paragraph : paragraphs ){
   paragraph.onRender( cell );
  }
}else{
   // Need to make this otherwise the block wont show
  com.lowagie.text.Paragraph pr = new com.lowagie.text.Paragraph();
  Chunk chunk = new Chunk();
   pr.add( chunk );
  cell.addElement( pr );
}
table.addCell(cell);
ct.addElement( table );

try {
  ct.go();
} catch (DocumentException e) {
  throw new PdfDocumentException( e );
}

}
-- 
View this message in context: 
http://old.nabble.com/problem-with-rounded-corners-tp28328340p28330366.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list

[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.


--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

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 context: 
http://old.nabble.com/Separation-color-for-cut-marks-tp27637814p27643124.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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

2010-02-18 Thread Mathias Nilsson

Yes is was this one but Marcus says depending on the RIP. Since this should
be printed on any printer world wide I don't know the name. Any other
pointers?

Markus Meyer wrote:
 
 Mathias
 
 look into the manual of your RIP or printer driver for the exact name of 
 the 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 Mathias Nilsson:
 Hi,

 can anyone help me on how to create the correct separation color for cut
 marks.

 
 
 --
 Download Intelreg; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs 
 proactively, and fine-tune applications for parallel performance. 
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 Check the site with examples before you ask questions:
 http://www.1t3xt.info/examples/
 You can also search the keywords list:
 http://1t3xt.info/tutorials/keywords/
 
 

-- 
View this message in context: 
http://old.nabble.com/Separation-color-for-cut-marks-tp27637814p27643843.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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();

-- 
View this message in context: 
http://old.nabble.com/Separation-color-for-cut-marks-tp27637814p27644715.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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: 
http://old.nabble.com/Create-cut-marks-for-pdf-tp27077823p27101389.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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-cut-marks-for-pdf-tp27077823p27077823.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.nabble.com/IDENTITY-H-encoding-in-iText-tp26230847p26255826.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.com/IDENTITY-H-encoding-in-iText-tp26230847p26240922.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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-tp26160129p26192913.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 can't manage it. 

Is there anyone that can point me in the right direction of using java and a
WYSIWYG pdf editor?

/ Mathias
-- 
View this message in context: 
http://old.nabble.com/Editor-for-iText-tp26160129p26160129.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 everything
works but not if there is multiple lines. how can I make my paragraph start
at the very top of the table?

// Mathias
-- 
View this message in context: 
http://www.nabble.com/Paragraph-and-leading-tp25914314p25914314.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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));

This will work for the greek encoding but I would like to use unicode
instead because I do not know wich language the user is typing in. I have
read about the IDENTITY_H AND V but when trying that it does not work. When
viewing the text in the eclipse debug I can see the greek characters, λκδσφ
λκαξ σδφκξ σαφλκ ξασφλκ ξασφκλξ ασδφ


How can I use unicode instead of greek encoding?
-- 
View this message in context: 
http://www.nabble.com/encoding-and-fonts-tp25888960p25888960.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

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 iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 wasegra...@bellsouth.net



  -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-questions] Thumbnail image of PDF
 
  Hi, I was scanning the archives for a solution to this -- there seem
  to be various solutions like using JPedal.  I would like to generate a
  png/jpg/gif thumbnail image of the first page of a PDF that I create
  with iText.
 
  Is JPedal the best route?  Can it be done easily with JAI ?
 
  Thanks in advance,
  Davis

 MS Windows XP Explorer, and perhaps other versions, generates thumbnails of
 the 1st pages of PDFs in the current directory when View + Thumbnails is
 selected. IIRC, the file manager for various Linux distros does the same
 (not checked, as I don't have a Linux system running at the moment.

 You might check to see where those thumbnails are archived/cached and if
 you can get at them.

 Best regards,
 Bill Segraves



 --
  Come build with us! The BlackBerryreg; Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
 http://p.sf.net/sfu/devconf
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 Buy the iText book: http://www.1t3xt.com/docs/book.php
 Check the site with examples before you ask questions:
 http://www.1t3xt.info/examples/
 You can also search the keywords list:
 http://1t3xt.info/tutorials/keywords/

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

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 us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 try scalePercent( 72f / 300 * 100 ). But I'm concerned that the
dpi of every image is not 300. Any advice?
-- 
View this message in context: 
http://www.nabble.com/another-dpi-image-question-tp25610028p25610028.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 ImageMagic it
worked fine except for Spotcolor but I guess that is a different story.
Thanks!

// Mathias
-- 
View this message in context: 
http://www.nabble.com/DottedLineSeparator-and-borders-tp25288829p25347713.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[iText-questions] DottedLineSeparator and borders

2009-09-04 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( Element.ALIGN_LEFT );
sep.setLineColor(
getParagraph().getBlock().getPage().getPdfDocument().getColor(
getForegroundReference() ) );
com.lowagie.text.Font f = new com.lowagie.text.Font(
getParagraph().getBlock().getPage().getPdfDocument().getFont(
getFontReference()), getFontSize()  );
f.setColor( 
getParagraph().getBlock().getPage().getPdfDocument().getColor(
getForegroundReference() )  );
Chunk separator = new Chunk( sep );
separator.setFont(  f );
paragraph.add( separator );

}


-- 
View this message in context: 
http://www.nabble.com/DottedLineSeparator-and-borders-tp25288829p25288829.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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-tp25289941p25289941.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 the itext-hyph.jar for
testing the hyphenation sample in the itext book( Charles Dickens ).
However, when looking in the jar it is missing some languages that I need to
support. Where do I go from here? Should I make my own hyphenation( Seems
like rocket sience ) or is there another way to go?

Thanks!

// Mathias


-- 
View this message in context: 
http://www.nabble.com/Hyphenation-for-iText-tp25022751p25022751.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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-tp25022751p25024960.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] DottedLineSeparator and paragraph alignment

2009-05-31 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 at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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;
import com.lowagie.text.pdf.CMYKColor;
import com.lowagie.text.pdf.ColumnText;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfPCell;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfSpotColor;
import com.lowagie.text.pdf.PdfWriter;
import com.lowagie.text.pdf.SpotColor;
import com.lowagie.text.pdf.draw.DottedLineSeparator;

public class Test {


public static void main(String args[]) {

Document doc = new Document();
try {

SpotColor pink = new SpotColor(new 
PdfSpotColor(PANTONE 708 M, 1.0f,new
CMYKColor(0.0f, 0.46f, 0.22f, 0.0f)));
CMYKColor gray = new CMYKColor(0.0f, 0.0f, 0.0f, 0.2f);

PdfWriter writer = PdfWriter.getInstance(doc, new
FileOutputStream(d:/pdf/test.pdf));

doc.open();
PdfContentByte cb = writer.getDirectContent();
cb.roundRectangle(150, 150, 150, 150, 10f);
cb.setColorFill(pink);
cb.setLineWidth(1f);
cb.setColorStroke(gray);
cb.fillStroke();


ColumnText ct = new ColumnText( cb );
ct.setSimpleColumn( 150, 150, 300, 300, 8, 
Element.ALIGN_LEFT );


/**
 * Only set the nessesary settings
 */
PdfPTable table = new PdfPTable(1);
table.setTotalWidth( 150 );
table.setWidthPercentage(100);
PdfPCell cell =  new PdfPCell();
cell.setBorderWidth( 0 );
cell.setVerticalAlignment( Element.ALIGN_MIDDLE ); // 
Top, Middle, bottom
cell.setFixedHeight( 150 );


Paragraph pr = new Paragraph();
pr.setLeading(  12f );
pr.setExtraParagraphSpace(0);

/**
 * If we align left it will work but not right, center
 */
pr.setAlignment( Element.ALIGN_RIGHT); 

Font font = new Font(Font.COURIER, 8, Font.BOLD);
font.setColor( gray );


pr.add( new Chunk( This is a test, font ) );
pr.add( new Chunk( new DottedLineSeparator() ));
pr.add( new Chunk( continue, font ));


cell.addElement( pr );
table.addCell(cell);
ct.addElement( table );
ct.go();


} catch (Exception ex) {
ex.printStackTrace();
}finally{
doc.close();
}
}

}

-- 
View this message in context: 
http://www.nabble.com/DottedLineSeparator-and-paragraph-alignment-tp23763684p23794299.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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.

If I use center or right the bounds are not kept. The text does not stay in
the columnText and the pdftable. I have used fixed width and height for the
table.

Any clues?
-- 
View this message in context: 
http://www.nabble.com/DottedLineSeparator-and-paragraph-alignment-tp23763684p23763684.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 digits
between the last pair of guardbars?


-- 
View this message in context: 
http://www.nabble.com/barcode-and-position-of-code-tp23730391p23730391.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 = cb.createTemplate(w, h);
img1.setAbsolutePosition(0, 0);
tp1.roundRectangle(0, 0, w, h, 10f);
tp1.clip();
tp1.newPath();
tp1.addImage(img1);
cb.addTemplate(tp1, 300, 300);

I have tried to set the color stroke and linewidth on the PdfTemplate but I
can't get the border to show.
can someone please point me in the right direction.
-- 
View this message in context: 
http://www.nabble.com/Rounding-an-Image-with-border-tp23673724p23673724.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 - General mailing list archive at Nabble.com.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 = PdfWriter.getInstance( doc, new 
FileOutputStream(
new.pdf ));
doc.open();
PdfReader reader = new PdfReader( d:\\file.pdf );
PdfImportedPage p = writer.getImportedPage(reader, 1);
Image pdf = Image.getInstance(p); 
doc.setPageSize( new Rectangle( pdf.getWidth(), 
pdf.getHeight()));
doc.newPage();

PdfContentByte cb = writer.getDirectContent();
pdf.setAbsolutePosition( 0 ,0 );
cb.addImage( pdf );
ColumnText ct = new ColumnText(cb);

ct.setSimpleColumn(5, 500, 100, 100, 9, 
Element.ALIGN_RIGHT);

ct.addText( new Phrase( the new phrase));
cb.setColorFill( Color.black );
cb.stroke();
ct.go();
doc.setPageSize( PageSize.A2 );
doc.newPage();
doc.add( new Paragraph( new paragraph ));
}catch( Exception ex ){
ex.printStackTrace();
}
doc.close();
}
}

The new paragraph is not inserted. Is there anyone that can explain why?
-- 
View this message in context: 
http://www.nabble.com/Question-on-how-to-stamp-and-create-new-pdf-in-the-same-creation-tp23556345p23557167.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 message in context: 
http://www.nabble.com/Question-on-how-to-stamp-and-create-new-pdf-in-the-same-creation-tp23556345p23557954.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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. Is this the preferred way or is there another path? 
-- 
View this message in context: 
http://www.nabble.com/Vector-Graphics-not-using-EPS-tp23542048p23542048.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 = SVGCache.getSVGUniverse().getDiagram( new
java.io.File( d:file.svg ).toURI() ); 
  template = writer.getDirectContent().createTemplate( diagram.getWidth(),
diagram.getHeight());
  graphics = template.createGraphics(diagram.getWidth(),
diagram.getHeight()); 
  diagram.render(graphics); 
}catch( Exception e ){
  e.printStackTrace();
} finally { 
if( graphics != null )
  graphics.dispose(); 
} 
Image image = Image.getInstance(template); 
image.setAbsolutePosition( 0f,0f);
document.add( image );
-- 
View this message in context: 
http://www.nabble.com/Vector-Graphics-not-using-EPS-tp23542048p23542981.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[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 = 720f;
float width = 360f;
Rectangle bounds = new Rectangle(width, height);
bounds.setBackgroundColor( Color.green);
/**
  * Always construct the document before open the stream
 */
Document document = new Document( bounds ,0,0,0,0);
try{
  PdfWriter writer = PdfWriter.getInstance( document,new FileOutputStream(
test.pdf ));
  document.open();

  PdfContentByte cb = writer.getDirectContent();
  cb.roundRectangle( 10, height - 10 , 10, 10, 0);
  cb.fill();
}catch( Exception e){
  e.printStackTrace();
}
document.close();
-- 
View this message in context: 
http://www.nabble.com/Simple-example-top%2C-bottom-tp23545844p23545844.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 use vector graphics for the logos, and maybe
some other graphics. All logos is today in EPS. What would be the best way
of getting the vector to a generated pdf?




-- 
View this message in context: 
http://www.nabble.com/Vector-Graphics-not-using-EPS-tp23542048p23545958.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 xml
  ** get block data from xml
  ** get phrases from xml

   ** Add Vector image from PDF file *// How can this be done?
}
-- 
View this message in context: 
http://www.nabble.com/Vector-Graphics-not-using-EPS-tp23542048p23546907.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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-tp23542048p23547420.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


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 KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/