our code is that. And there is no setFullCompression
Document document = new Document(PageSize.A4, 0, 0, 0, 0);
try {
// step 2:
// we create a writer that listens to the
// and directs a PDF-stream to a file
httpServletResponse.setContentType
("application/pdf;charset=iso-8859-9");
PdfWriter writer = PdfWriter.getInstance
(document, httpServletResponse.getOutputStream());
// step 3: we open the document very well
document.open();
//step 4:
PdfContentByte cb = writer.getDirectContent();
//BaseFont bf = BaseFont.createFont
(BaseFont.COURIER, "CP1254", BaseFont.EMBEDDED);
BaseFont bf =BaseFont.createFont
("/CLRNDNL.TTF","CP1254",BaseFont.EMBEDDED);
cb.beginText();
cb.setFontAndSize(bf, 12);
//-------------
if(s.isYeniTesis()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 98, 714.5f, 0); //yeni tesis
if(s.isGeriVerme()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 213, 722, 0); //Geri Verme
if(s.isDevir()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 289, 722, 0); //Devir
if(s.isSebekelerArasiGecis())
cb.showTextAligned(PdfContentByte.ALIGN_LEFT, "X", 157, 708, 0); //?
ebekeleraras? Geçi?
if(s.isKampanya()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 251, 698.5f, 0); //Kampanya
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getKampanyaAdi(), 126, 687.5f, 0); //Kampanya Ad?
//-------------
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getTarihGun(), 406, 717, 0); //Tarih gün
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getTarihAy(), 470, 717, 0); //Tarih ay
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getTarihYil(), 521, 717, 0); //Tarih y?l
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getBayiAdi(), 406, 698, 0); //Bayi ad?
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getBayiKodu(), 406, 682, 0); //Bayi kodu
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getAltBayiAdi(), 406, 666, 0); //Alt Bayi ad?
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getAltBayiKodu(), 406, 644, 0); //Alt Bayi kodu
//-------------
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo1(), 159, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo2(), 178, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo3(), 192, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo4(), 206, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo5(), 226, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo6(), 240, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo7(), 261, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getGsmNo8(), 274, 638.4f, 0); //GSM No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo1(), 159, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo2(), 178, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo3(), 192, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo4(), 206, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo5(), 226, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo6(), 240, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo7(), 261, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getFaxCellNo8(), 274, 621, 0); //FaxCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo1(), 159, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo2(), 178, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo3(), 192, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo4(), 206, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo5(), 226, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo6(), 240, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo7(), 261, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDataCellNo8(), 274, 603, 0); //DataCell No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellName(), 45, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo1(), 159, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo2(), 178, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo3(), 192, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo4(), 206, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo5(), 226, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo6(), 240, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo7(), 261, 586, 0); //... No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getOtherCellNo8(), 274, 586, 0); //... No
//-------------
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo1(), 106, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo2(), 119, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo3(), 134, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo4(), 148, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo5(), 168, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo6(), 182, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo7(), 197, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo8(), 212, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo9(), 232, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo10(), 246, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo11(), 261, 552, 0); //Sim Kart Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSimNo12(), 275, 552, 0); //Sim Kart Seri No
//-------------
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getAdiSoyadi(), 126, 506, 0); //Ad? Soyad?
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getVergiDairesi(), 123, 491.5f, 0); //Vergi Dairesi
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getVergiNo(), 126, 471.6f, 0); //Vergi No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getMeslek(), 126, 451, 0); //Meslek
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getEgitimDurumu(), 126, 434, 0); //E?itim durumu
//-------------
if(s.isNufusCuzdani()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 122, 380, 0); //Nüfus cüzdan?
if(s.isPasaport()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 205, 380, 0); //Pasaport
if(s.isEhliyet()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 280, 380, 0); //Ehliyet
if(s.isDigerKimlik()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 68, 358, 0); //Di?er
if(sozlesmeType.equals("Prepaid") &&
s.getDigerKimlikName().equals("Y")){
cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "Yabancı Pasaport", 104, 330, 0); //Di?er kimlik
türü
}
if(sozlesmeType.equals("Prepaid") &&
s.getDigerKimlikName().equals("G")){
cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "Gemici Adamı Cüzdanı", 104, 330, 0); //Di?er
kimlik türü
}
if(sozlesmeType.equals("Prepaid") &&
s.getDigerKimlikName().equals("E")){
cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "Evlilik Cüzdanı", 104, 330, 0); //Di?er kimlik
türü
}
if(sozlesmeType.equals("Prepaid") &&
s.getDigerKimlikName().equals("S")){
cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "Silahlı Kuvvetler Kartı", 104, 330, 0); //Di?er
kimlik türü
}
if(sozlesmeType.equals("Prepaid") &&
s.getDigerKimlikName().equals("B")){
cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "Sarı Basın Kartı", 104, 330, 0); //Di?er kimlik
türü
}
if(sozlesmeType.equals("Prepaid") &&
s.getDigerKimlikName().equals("A")){
cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "Avukat Kimliği", 104, 330, 0); //Di?er kimlik türü
}
if(sozlesmeType.equals("Prepaid") &&
s.getDigerKimlikName().equals("C")){
cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "T.C. Vatandaşlığından Çıkma Belgesi", 104, 330,
0); //Di?er kimlik türü
}
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDigerKimlikName(), 104, 360, 0); //Di?er kimlik türü
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getKimlikSeriNo(), 147, 339, 0); //Kimlik Seri No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getTcKimlikNo(), 147, 320, 0); //TC Kimlik No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDogumTarihiGun(), 150, 304, 0); //do?um tarihi gün
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDogumTarihiAy(), 208, 304, 0); //do?um tarihi ay
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDogumTarihiYil(), 258, 304, 0); //do?um tarihi y?l
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getAnneKizlikSoyadi(), 100, 272, 0); //Anne k?zl?k soyad?
//-------------
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getMarkaModel(), 174, 223, 0); //Marka/Model
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei1(), 78, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei2(), 94, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei3(), 105, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei4(), 120, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei5(), 135, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei6(), 150, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei7(), 164, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei8(), 180, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei9(), 195, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei10(), 209, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei11(), 225, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei12(), 240, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei13(), 254, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei14(), 267, 197, 0); //Imei No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getImei15(), 283, 197, 0); //Imei No
//-------------
if(s.isKendi()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 77, 153.5f, 0); //Kendi
if(s.isVekil()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 155, 153.5f, 0); //Vekil
if(s.isVasi()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 235, 153.5f, 0); //Vasi
//-------------
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getMahCadSok1(), 406, 600, 0); //Mah1
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getMahCadSok2(), 322, 585, 0); //Mah2
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getBina1(), 462, 565, 0); //Bina1
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getBina2(), 322, 547, 0); //Bina2
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getSemtIlce(), 392, 534, 0); //semt
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getPostaKodu(), 392, 513, 0); //posta kodu
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIl(), 476, 513, 0); //il
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo1(), 392, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo2(), 408, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo3(), 422, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo4(), 436, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo5(), 450, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo6(), 464, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo7(), 478, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo8(), 492, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo9(), 506, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getIrtibatNo10(), 520, 495, 0); //irtibat No
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getDahili(), 392, 478, 0); //dahili
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getEposta1(), 392, 463, 0); //email
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getEposta2(), 322, 448, 0); //email2
if(s.isEfatura()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 429, 0); //e-fatura
if(s.isNobill()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 410, 0); //nobill
//-------------
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getTarife(), 394, 353, 0); //tarife
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,
s.getAltTarife(), 394, 316, 0); //alt tarife
if(s.isRoaming()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 316.6f, 0); //roaming
if(s.isInternational()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 301.6f, 0); //international
if(s.isDetayliFatura()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 286.6f, 0); //detayl? fatura
if(s.isClir()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 271.6f, 0); //clir
if(s.isRehber()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 256.6f, 0); //rehbere geçmesin
if(s.isCoptout1()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 227, 0); //COPTOUT1
if(s.isCoptout2()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 200, 0); //COPTOUT2
if(s.isOzelcell()) cb.showTextAligned
(PdfContentByte.ALIGN_LEFT, "X", 571, 184.5f, 0); //OZELCELL
cb.endText();
}
catch(DocumentException de) {
System.err.println(de.getMessage());
}
catch(IOException ioe) {
System.err.println(ioe.getMessage());
}
// step 5: we close the document
document.close();
} catch (Exception e) {
handleTheException(e, httpServletRequest,
httpServletResponse, session);
}
}
Quoting bruno <[EMAIL PROTECTED]>:
> Ferhat Degirmenci wrote:
>
> > Sorry I forgot to say version. At version 5 we could not see, And At
> >version 6 and 7 we can see
> >
> >>Let's give it a try: are you using full encryption?
> >>
> I stick to what I guessed in my previous mail:
> Search your code for setFullCompression.
> If you find it, remove it.
> So called 'full compression' was a new feature in PDF 1.5.
> It works for Acrobat 6 and 7, but not for Acrobat 5.
> br,
> Bruno
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions