<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Everyone, <div><br></div><div>I am trying to annotate a PDF with text using Poppler, and I can get it to work, but the text is oriented up-down rather than left-right. Looking at the pdfinfo, I see that the sheet is rotated by 270. Short of rotating the source PDF to 0, adding the annotation, and then rotating back, is there a way to set the orientation of the text box? My code is below.</div><div><br></div><div>Thanks!</div><div>-Cory</div><div><br></div><div><br></div><div><div><font class="Apple-style-span" face="Courier">  QString *annFileName = new QString (srcFileName);</font></div><div><font class="Apple-style-span" face="Courier">  Poppler::Document* doc = Poppler::Document::load(*annFileName);</font></div></div><div><div><font class="Apple-style-span" face="Courier">  Poppler::TextAnnotation *it = new Poppler::TextAnnotation(Poppler::TextAnnotation::InPlace);</font></div><div><font class="Apple-style-span" face="Courier">  it->setInplaceText(QString("Bingo Bango Bongo"));</font></div><div><font class="Apple-style-span" face="Courier">  it->setBoundary(QRectF(0.1,0.1,0.05,0.2));</font></div><div><font class="Apple-style-span" face="Courier">  it->setTextFont( QFont( QString("Arial"), 25 ) );</font></div><div><font class="Apple-style-span" face="Courier">  Poppler::Annotation::Style styleT;</font></div><div><font class="Apple-style-span" face="Courier">  styleT.setColor(QColor(0, 255, 0));</font></div><div><font class="Apple-style-span" face="Courier">  it->setStyle(styleT);</font></div></div><div><font class="Apple-style-span" face="Courier">  pdfPage->addAnnotation(it);</font></div><div><div><font class="Apple-style-span" face="Courier">  Poppler::PDFConverter *conv = doc->pdfConverter();</font></div><div><font class="Apple-style-span" face="Courier">  conv->setOutputFileName(QString(destFileName));</font></div><div><font class="Apple-style-span" face="Courier">  conv->setPDFOptions(conv->pdfOptions() | </font></div><div><font class="Apple-style-span" face="Courier">  Poppler::PDFConverter::WithChanges);</font></div><div><font class="Apple-style-span" face="Courier">  conv->convert();</font></div></div></body></html>