Print Page | Close Window

Stamping Document

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3429
Printed Date: 02 May 24 at 6:03PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Stamping Document
Posted By: vtyler
Subject: Stamping Document
Date Posted: 04 Jan 17 at 5:06PM
I am writing an application that includes stamping documents.

On most documents everything works just fine the document stamps and is visible etc.

On this one type of document it does not, what is happening is that it appears that the stamp is being placed on a different layer and is not visible. When I grab the OCR layer for that PDF I can see that the stamp as been applied but just not visible.

What's the best way to make sure that the stamp is visible?



Replies:
Posted By: Ingo
Date Posted: 04 Jan 17 at 7:43PM
Hi Tyler,

pdf-documents are sometimes - for example - designed as portrait format and then they were rotated.
The drawing-/stamping-syntax always works regarding the original layout.
A rotation later doesn't have any influence on it.
So what you should do as preparation before drawing/stamping is...
1. combining the layers with CombineContentStreams:
http://www.debenu.com/docs/pdf_library_reference/CombineContentStreams.php
2. saying to QuickPDF that the current - perhaps rotated - page is the normal layout with NormalizePage:
http://www.debenu.com/docs/pdf_library_reference/NormalizePage.php

After these preparations your stamps should be where you want them to be ;-)

Cheers and welcome here,
Ingo

BTW: 
The online reference:
http://www.debenu.com/docs/pdf_library_reference/FunctionGroups.php
The developer guides:
http://www.debenu.com/products/development/debenu-pdf-library/help/developer-guide/




-------------
Cheers,
Ingo



Posted By: vtyler
Date Posted: 04 Jan 17 at 10:05PM
Thank you.
It appears that using the NormalizePage(0) function works.

Are you able to elaborate on the different options and what they actually do to the PDF?

0 = Standard normalization
1 = Normalize and also balance the graphics state stack
2 = Maintain existing page structure
3 = Maintain existing page structure and balance the stack


Posted By: vtyler
Date Posted: 04 Jan 17 at 10:41PM
Also is it normal that you can't stamp and adobe form that was created in adobe live cycle? I can't do it within the Arts Aerililst application it self.

When doing through Quick PDF it's similar to the above ie I can see that it's there when I look at the PDF Internals and or get the OCR layer but not visible. The Normalize and CombineContentStreams don't change anything for this type of form.

Also grabbing the OCR layer doesn't appear to to work as it grabs a different layer and grabs text that says....Please wait...if this message is not eventually replaced....




Posted By: Ingo
Date Posted: 05 Jan 17 at 5:08PM
"...Are you able to elaborate..."

Hi Tyler,

no... i'm not able 'cause my time is limited ;-)
This here is a user-user-forum - not a publisher forum.
Perhaps there's another internal adobe-lock inside live-cycle-made pdf?
What you always can try is:
Load the pdf with QuickPDF...
Save it with QuickPDF...
Reload it and try your stamps.



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk