Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jul 31, 2019 6:33 pm

Hi,

When I use the code below to add a note to PDF files containing a resized stamp it goes back to the size before it was resized. Do you guys know what could be causing it?

foreach (PdfPageBase page in document.Pages)
{
PdfPageBase newPage;
if (page.Rotation == PdfPageRotateAngle.RotateAngle90)
newPage = newPdf.Pages.Add(new SizeF(page.Size.Height, page.Size.Width), new PdfMargins(0));
else if (page.Rotation == PdfPageRotateAngle.RotateAngle270)
newPage = newPdf.Pages.Add(new SizeF(page.Size.Height, page.Size.Width), new PdfMargins(0));
else
newPage = newPdf.Pages.Add(page.Size, new PdfMargins(0));
page.CreateTemplate().Draw(newPage, new PointF(0, 0));


Thank You
Last edited by mferraro15@gmail.com on Mon Aug 05, 2019 12:05 pm, edited 1 time in total.
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Thu Aug 01, 2019 6:23 am

Hi,

Thanks for your inquiry.
To help us solve your issue quickly and accurately, please provide us with following information.
1. Your input and output file you got
2. Tell me what is the value of "DataSourceStamp" and "Stamping"
You could upload the file here, or send to us(support@e-iceblue.com).

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Aug 01, 2019 11:55 am

Hi,

I Figure out that the piece of code below is causing the issue.

//verify the orientation of the page in order to add the stamp alway in the bottom of the page.
foreach (PdfPageBase page in document.Pages)
{
PdfPageBase newPage;
if (page.Rotation == PdfPageRotateAngle.RotateAngle90)
newPage = newPdf.Pages.Add(new SizeF(page.Size.Height, page.Size.Width), new PdfMargins(0));
else if (page.Rotation == PdfPageRotateAngle.RotateAngle270)
newPage = newPdf.Pages.Add(new SizeF(page.Size.Height, page.Size.Width), new PdfMargins(0));
else
newPage = newPdf.Pages.Add(page.Size, new PdfMargins(0));
page.CreateTemplate().Draw(newPage, new PointF(0, 0));
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Thu Aug 01, 2019 12:28 pm

Test.zip
Please take a look in the attachment, there are 2 files in the attached file one before use Spire PDF and another one after use Spire PDF.
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Fri Aug 02, 2019 3:27 am

Hi,

Thanks for your information.
I have reproduced your issue and logged it in our bug tracking system. We will let you know once there is any update.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Aug 02, 2019 12:07 pm

Hi,

Thanks for the reply, I'm looking forward for the feedback from responsible team.

Thank You
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Wed Aug 14, 2019 1:05 pm

Hi,

Any news from the development team?
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Thu Aug 15, 2019 1:36 am

Hi,

Sorry that there is no progress at present. If there is any good news, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Aug 26, 2019 11:29 am

Hi,

I'm sorry to be a little bit pushy but I need the solution for this issue before roll out my app into the production environment.


Thank You.
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Tue Aug 27, 2019 6:00 am

Hi,

Your issue is under testing phase now. Once the hotfix is available, we will provide for you.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Aug 27, 2019 12:05 pm

Hi,

Thank You very much for the reply.

Regards,
Leandro
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Wed Aug 28, 2019 6:00 am

Hi,

Considering your urgent situation, here is a hotfix for you.
http://www.e-iceblue.com/downloads/Temp ... 5.8.13.zip

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Aug 28, 2019 3:13 pm

Hi,

Just test it, works just fine.

Thank you very much.
Thank You

mferraro15@gmail.com
 
Posts: 57
Joined: Tue Mar 19, 2019 6:41 pm

Thu Aug 29, 2019 1:32 am

Hi,

Thanks for your feedback.
If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF

cron