Sign In  Sign Up Live-Chat

Stamping PDF Documents

Last post 12-23-2007, 3:05 AM by seawolf. 18 replies.
Page 1 of 2 (19 items)   1 2 Next >
Sort Posts: Previous Next
  •  10-09-2007, 12:45 PM 97962

    Stamping PDF Documents

    Attachment: Present (inaccessible)

    We use PDF.Kit to put a time stamp on all documents filed via our website. We have some documents filed that do not get the time stamp and I cannot figure out why this happens. I have attached one of the files that did not get stamped.

     

     

     
  •  10-09-2007, 7:00 PM 98009 in reply to 97962

    Re: Stamping PDF Documents

    Hi,

    Thank you for considering Aspose.

    I have checked your file and found that the problem is that there is no Text part in your Pdf. Everything is image. You can check this by selecting the Text Tool from toolbar and you will find that you can't select anything in Pdf. Hence the stamping is not done. I will discuss this with the developers and will let you know it's solution as soon as possible.

    Thanks.

     
  •  10-11-2007, 12:25 PM 98257 in reply to 98009

    Re: Stamping PDF Documents

    Attachment: Present (inaccessible)
    That was my 1st thought also. But I was able to stamp another pdf that has no text. It is attached.
     
  •  10-11-2007, 1:36 PM 98272 in reply to 98257

    Re: Stamping PDF Documents

    Hi,

    Thanks for more information. I have intimated the developer, he will check and will let you know as soon as solution is found.

    Thanks.

     
  •  10-11-2007, 2:14 PM 98280 in reply to 98272

    Re: Stamping PDF Documents

    Hi,

    I have tested it and reproduce the error. It's a realy strange problem and I think it may take us more time to solve this error.

    Regards.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-11-2007, 8:18 PM 98321 in reply to 98280

    Re: Stamping PDF Documents

    Hi,

    I have logged this as PDFKITNET-3900. We will try our best to resolve this issue as soon as possible.


    Regards.



    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-15-2007, 11:25 PM 98698 in reply to 98257

    Re: Stamping PDF Documents

    Attachment: Present (inaccessible)

    hi vaughnrk,

    I have test your sample pdf document( eFiled Doc No TS.pdf) that can not be stamped. But I have get the right result. my code is as below.The attachment is the result stamped with time. Please notice the red part.

    string path1 =  @"gemini_3900\eFile Doc No TS.pdf";
       string path2 =  @"gemini_3900\Stamp.pdf";
       Stamp logoStamp = new Stamp();
       DateTime dt1=DateTime.Now;
       logoStamp.BindLogo(new FormattedText(dt1.ToLongTimeString(),System.Drawing.Color.FromArgb(180,0,0),FontStyle.TimesItalic,EncodingType.Winansi,false,50));
       logoStamp.Rotation = 45;
       logoStamp.Opacity = 0.5f;
       logoStamp.IsBackground=false;
       logoStamp.SetOrigin(60,500);
       PdfFileStamp _stamp = new PdfFileStamp(path1, path2);
       _stamp.AddStamp(logoStamp);
       _stamp.Close();

     

    If you still does not not get the right result, please post the code you used, which can help us to solve the problem.


    Allen Wen
    Developer
    Aspose Changsha Team

     
  •  10-18-2007, 12:06 PM 99207 in reply to 98698

    Re: Stamping PDF Documents

    I don't see any significant differences between our code. But mine is still not working. I tried chaning the embedded field in formattedtext from true to flase but it made no differnce. Below is the code I am using:

    Dim Stamper As PdfFileStamp, FileStamp As Stamp = New Stamp

    Dim sFiledText As FormattedText

    sFiledText = New FormattedText("Filed " & sDateFiled & " ET Office of the Judges of Compensation Claims.", New FontColor(0, 0, 200), FontStyle.HelveticaBoldOblique, EncodingType.Winansi, True, 10)

    Stamper = New PdfFileStamp(sInFile, sOutFile)

    FileStamp.BindLogo(sFiledText)

    FileStamp.IsBackground = False

    FileStamp.Pages = New Integer() {1}

    FileStamp.SetOrigin(75, 10)

    Stamper.AddStamp(FileStamp)

    Stamper.Close()

     
  •  10-18-2007, 1:00 PM 99223 in reply to 99207

    Re: Stamping PDF Documents

    I tries the code you supplied and it worked. Upon checking further it seems the problem lies with the SetOrigin statement. I was using FileStamp.SetOrigin(75, 10) which did not work but FileStamp.SetOrigin(75, 450) and FileStamp.SetOrigin(75, 500) both work. We wnat the stamp as close to the bottom of the page as we can get so I tried FileStamp.SetOrigin(75, 400) but this did not work. Seems that the y-origin for pdfs are calculated differently. I tried FileStamp.SetOrigin(75, 450) on another pdf (one that had no problem with FileStamp.SetOrigin(75, 10)) and it placed the stamp in the middle on the document. Why would it be different on the different documents?
     
  •  10-18-2007, 10:15 PM 99285 in reply to 99223

    Re: Stamping PDF Documents

    Hi vaughnrk,

    The first pdf document you provided is strange, I have a test of adding a stamp in the top, but the stamp is the middle of the pdf document. I have test many other samples, the result are right. So i have not comprehend the cause. We will continue to investigate this problem , but it maybe not be solved in a short time.


    Allen Wen
    Developer
    Aspose Changsha Team

     
  •  10-19-2007, 7:15 AM 99332 in reply to 99223

    Re: Stamping PDF Documents

    hi,

    I have check the pdf document carefully, and found the MediaBox  of this document was different from other documents. I will do some work to solve this problem. It requires two days. When it does work, I will inform you.


    Allen Wen
    Developer
    Aspose Changsha Team

     
  •  10-28-2007, 9:59 PM 100371 in reply to 99332

    Re: Stamping PDF Documents

    Please try hotfix 2.6.4.0.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-29-2007, 2:22 PM 100507 in reply to 100371

    Re: Stamping PDF Documents

    I downloaded and installed version 2.6.4 and now I get the following message:

    "The subscription included in this license allows free upgrades until 02 Nov 2006, but this version of the product was released on 28 Oct 2007. Please renew the subscription or use a previous version of the product."

    What now?

     
  •  10-29-2007, 4:43 PM 100518 in reply to 100507

    Re: Stamping PDF Documents

    Hi,

    I think your license got expired. Please contact sales for the renewal of your licenses.

    Thanks.

     
  •  12-04-2007, 3:12 PM 105156 in reply to 100518

    Re: Stamping PDF Documents

    Attachment: Present (inaccessible)

    OK. I contacted sales and got the license problem taken care of. The new version corrected the problem with the stamp not being applied to the document in question (or applied in a location off the document so that it was not seen). Now I have another document that appears not to get the stamp (it is attached). I tried stamping it with the old version of PDF.kit we were using and it does get stamped, but the document is inverted (turned upside down) and it changes from protrait to landscape.

    Please advise

    Thanks

    Russ

     
Page 1 of 2 (19 items)   1 2 Next >
View as RSS news feed in XML