Re: [iText-questions] XMLWorker : HTML to PDF problem with external css

2012-02-09 Thread Balder VC
The code has been adapted from svn commit 272 to remove " and ' quotes from font family names. Thanks for the notification of this bug. On 9/02/2012 19:34, Dean McCarthy wrote: Also, just as something else to be aware of, if you create your CSS in Visual Studio and any of your font names hav

[iText-questions] PdfPTable keepTogether with skipped header rows

2012-02-09 Thread Jason Berk
I noticed if I create a table with some header rows and set skipFirstHeader(true) and then set keepTogether(true) and add the table to the document using doc.add(table) the header rows are being considered in the calculation to determine if the table fits on the current page...even if they aren't g

Re: [iText-questions] XMLWorker : HTML to PDF problem with external css

2012-02-09 Thread Keith O
Hi Dean, On Thu, Feb 9, 2012 at 7:34 PM, Dean McCarthy wrote: > Also, just as something else to be aware of, if you create your CSS in > Visual Studio and any of your font names have more than one word and are > enclosed in quotes, such as > font-family: ‘Century Gothic’; That's not specific

[iText-questions] PdfShading.SimpleAxial in a landscape page

2012-02-09 Thread Vahid Nasiri
Hello, If I use PageSize.A4.Rotate() as the page size, It rotates PdfShading.SimpleAxial too. For example   public void CellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases) {    //...     var shading = PdfShading.SimpleAxial(     cb.PdfWri

Re: [iText-questions] XMLWorker : HTML to PDF problem with external css

2012-02-09 Thread Dean McCarthy
Hi Myriam It looks like you're not telling XMLworker about your external CSS file. Here is my working code, in VB... Protected Sub AddHTML(ByVal HTMLContent As String) Dim HtmlContext As HtmlPipelineContext = New HtmlPipelineContext HtmlContext.SetTagFactory(iTextSharp.tool.

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-09 Thread Raffaele
None of the examples as solved the problem!!! I've seen these examples many and many times without success Any suggestion??? Thanks -- View this message in context: http://itext-general.2136553.n4.nabble.com/Sign-and-PDF-with-SmartCard-and-web-browser-only-tp4319344p4373383.html Sent fro

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-09 Thread aszomor
see the book examples at part3 and chapter12 /* * This class is part of the book "iText in Action - 2nd Edition" * written by Bruno Lowagie (ISBN: 9781935182610) * For more info, go to: http://itextpdf.com/examples/ * This example only works with the AGPL version of iText. */ package par

[iText-questions] Split PDF by plain Bookmark

2012-02-09 Thread gdn13
Hi, My need is to be able to split a PDF between 2 bookmarks. BUT the difficulty is that the bookmarks have been created with no parameters, only the 'Title' property is set... I am currently using the SimpleBookmark static class to get all the bookmarks. And when I meet the wanted bookmark I would

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-09 Thread Raffaele
Hi aszomor, same result!!! Are 2 days that i'm facing with this issue: If i would to include the "signed attributes" into the PKCS#7 envelope, Adobe say that the PDF as changed. Otherwise if i decide do not include "signed attributes", it' all ok. I've posted the question in other thread on thi

[iText-questions] XMLWorker : HTML to PDF problem with external css

2012-02-09 Thread Myriam Economou
Hi, For a project I have to parse an HTML page into a pdf using XMLWorker and I am encountering a problem since my external css file is not taken into consideration. I had no problem parsing a simple HTML file, an HTML file with CSS in the tags, HTML file with CSS in the but the external CSS file

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-09 Thread aszomor
sap.CertificationLevel = PdfSignatureAppearance.CERTIFIED_NO_CHANGES_ALLOWED; beore sgn.SetExternalDigest Idézet (Raffaele ): > Hi aszomor, > > i've tried your sample code, but Adobe say that the PDF file is Modified. > > If i call the GetEncodedPKCS7 method without the "secondDigest" parameter,

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-09 Thread Raffaele
Hi aszomor, i've tried your sample code, but Adobe say that the PDF file is Modified. If i call the GetEncodedPKCS7 method without the "secondDigest" parameter, it's all ok but into the signature tjere aren't the signed attributes. Any suggestion??? Thanks -- View this message in context: ht

Re: [iText-questions] Informations regarding iText methods

2012-02-09 Thread Raffaele
Up!!! Someone can help me??? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Informations-regarding-iText-methods-tp436p4372542.html Sent from the iText - General mailing list archive at Nabble.com.

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-09 Thread mkl
Max, madmax wrote > 1) removed the date stamps from both the itext and CAPICOM As mentioned before, thw two signing times are not a problem. The PDF specification recommends not to use both in the same PDF signature but it does not forbid it. > 2) Also changed the bDetached parameter value to "

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-09 Thread aszomor
using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using iTextSharp.text.pdf; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Security; namespace PdfSi