I have a web application that opens PDF files (created from faxes, ie. TIFF images). On many of these files the first page image is rotated. could be 90, 180 or 270 degrees. My application opens the PDF and adds a button to page 1. The button must always appear in the top left corner of page 1, even when page one has been rotated.
Hi there,
example code attached. Due to laws regarding healthcare information I cannot attach a PDF. However I put detailed instructions in the example code file for creating a sample PDF.
Hi,
Thanks for sharing the code snippet.
I have tested the scenario where I have first converted a multi-page TIFF image to PDF format, rotated the first page of the PDF file to 90 degrees, and then added a Button as per the code snippet which you have shared. As per my observations, the button does not appear on the resultant file.
Please note that for testing purposes, we need to replicate the issue in our environment and all the resource files shared by our customers are only used for testing purposes. Once a particular issue is resolved, the files are removed from our system.
For your convenience, I have also marked this thread as private so that the contents shared in this thread are only accessible to Aspose staff.
Code to convert TIFF image to PDF
[C#]
Document doc = new Document();
Aspose.Pdf.Image image = new Aspose.Pdf.Image();
image.File = "c:/pdftest/Test PDF_output.tif";
doc.Pages.Add().Paragraphs.add(image);
doc.Pages[1].Rotate = Rotation.on90;
doc.Save( "c:/pdftest/MultiPage_Tiff_Image.pdf" );