error C2001:常量中有换行符

oid CreateUnicodeAnnotationText( PdfPage* pPage, PdfDocument* pDocument )
{
PdfString sJap(reinterpret_cast<const pdf_utf8*>("「PoDoFo」は今から日本語も話せます。"));//--------这里出错, error C2001: 常量中有换行符
PdfAnnotation* pAnnotation = 
        pPage->CreateAnnotation( ePdfAnnotation_Text, PdfRect( 400.0, 200.0, 20.0, 20.0 ) );

    PdfString sGerman(reinterpret_cast<const pdf_utf8*>("Unicode Umlauts: ÄÖÜß"));
    pAnnotation->SetTitle( sGerman );
    pAnnotation->SetContents( sJap );
    pAnnotation->SetOpen( true );
}
"「PoDoFo」は今から日本語も話せます。"将“。”改为英文
 

猜你喜欢

转载自blog.csdn.net/zhuzi2129/article/details/44565945