草庐IT

pdf-form

全部标签

c# - 如何使用 xamarin.forms 在弹出窗口中创建表单?

我正在使用Xamarin.forms,我需要在弹出View中有一个登录表单,如下图所示:现在我正在使用PushModalAsync,但这会使带有表单的新页面覆盖整个屏幕,而不是像我想要的那样只显示弹出View。有没有办法使用xamarin.forms来做到这一点?如果没有,是否已经实现了任何跨平台(Android、iOS和UWP)替代方案? 最佳答案 我的经验表明XLabs的PopupLayoutdoesn'tworkproperlysometimes.但是有一个非常好的库允许创建复杂的弹出窗口:Rg.Plugins.Popup.唯

c# - 在 Xamarin.Forms 中绑定(bind)自定义 View

我在将Xamarin表单中的自定义View中的数据绑定(bind)到包含页面的View模型时遇到问题。我的自定义View很简单,一对标签代表一个键值对:后面的代码:publicpartialclassKeyValueView:ContentView{publicKeyValueView(){InitializeComponent();this.VerticalOptions=LayoutOptions.Start;this.BindingContext=this;}publicstaticreadonlyBindablePropertyValueProperty=BindablePro

c# - iTextSharp 密码保护的 PDF

StackOverflow上的以下问答展示了如何生成没有适当密码就无法打开的PDF。PasswordprotectedPDFusingC#我想以类似的方式使用这个框架,但稍作改动以允许我的用户在不需要密码的情况下“打开”PDF,但只允许他们在有密码的情况下编辑PDF。iTextSharp可以吗?如果这很重要,我正在WF4.0自定义事件中使用C#4.0。 最佳答案 是的,您可以将两个密码传递给PdfEncryptor.Encrypt(),userPassword和ownerPassword。只需将null传递给userPassword

c# - 在 Xamarin.Forms 中使用 Thread.Sleep

我要执行以下操作MainPage=newContentPage{Content=newStackLayout{Children={newButton{Text="Thread.Sleep",Command=newCommand(()=>{Thread.Sleep(1000);MainPage.Animate("",x=>MainPage.BackgroundColor=Color.FromRgb(x,x,x));}),},newButton{Text="Task.Run+Thread.Sleep",Command=newCommand(async()=>{awaitTask.Run((

c# - 使用 iTextSharp 在 C# 中旋转 PDF

我正在使用以下函数将pdf分成两部分。虽然它是拆分pdf,但内容是颠倒的。如何将其旋转180度。请帮忙。下面是相同的代码privatestaticvoidExtractPages(stringinputFile,stringoutputFile,intstart,intend){//getinputdocumentPdfReaderinputPdf=newPdfReader(inputFile);//retrievethetotalnumberofpagesintpageCount=inputPdf.NumberOfPages;if(endpageCount){end=pageCoun

c# - 如何在 itextsharp pdf 创建中设置单元格宽度

如何使用C#在itextsharppdf单元格中设置单元格宽度和高度。我只是用cell.width=200f;但它应该显示错误信息。widthcannotbeset.我该怎么办?.. 最佳答案 您没有设置单元格的宽度。您应该设置列的宽度。您可以通过将它们应用于表格对象来做到这一点:float[]widths=newfloat[]{1f,2f};table.SetWidths(widths);Neha的回答是设置表格对象的宽度更多引用资料在这里:http://www.mikesdotnetting.com/Article/86/iTe

c# - 打印Pdf文档C#字体生成的Barcode

我有一个小应用程序,我可以在其中执行pdf文档打印。除了从字体生成条形码的文件外,一切正常,页面的这一部分看起来变形(条形码条中间的条形码文本)。有谁知道为什么会发生这种情况,有什么方法可以解决这个问题吗?我的代码:publicstaticvoidPrindDocument(stringfilePath,PrinterSettingprinterSetting,intcopies){SpirePdf.PdfDocumentdoc=newSpirePdf.PdfDocument();doc.LoadFromFile(filePath);PrintDialogdialogPrint=new

c# - 未记录的 Windows 内置 PDF 渲染器功能?

使用Windows.Data.Pdf命名空间,我能够在不使用任何第三方库的情况下呈现pdf(作为图像)。如果我没记错的话,Microsoft的Edge浏览器使用相同的库来呈现pdf(Windows.Data.Pdf.dll)。通过查看官方Windows.Data.Pdf文档here我可以看到它只是关于convertingapageinaPortableDocumentFormat(PDF)documenttoanimagefile.但是,Edge浏览器在呈现pdf时具有“搜索文本”功能,我在Windows.Data.Pdf库中的任何地方都找不到。我的问题是,Windows.Data.P

c# - 在 Azure 网站中将 rdlc 渲染为 pdf

尝试在azure上将localreport.rdlc导出为PDF时出现以下错误。Microsoft.Reporting.WebForms.LocalProcessingException:Anerroroccurredduringlocalreportprocessing.--->System.ArgumentException:Parameterisnotvalid.atSystem.Drawing.Graphics.GetHdc()我知道这是一个已知问题,与GDI有关,请参阅WindowsAzureforum不管怎样,有没有人知道这个问题。我想导出到html或其他东西,但本地报告似

c# - 如何在 Xamarin.Forms 的 ListView 中绑定(bind)列表

我的页面上有一个ListViewItemSource作为List如下图:publicclassAssetModel{publicstringAssetId{get;set;}publicstringDescription{get;set;}publicListTaskDetailList{get;set;}}publicclassTaskDetail{publicstringDescription{get;set;}}如何绑定(bind)TaskDetail在我的parent列表中列出?所需的布局: 最佳答案 这似乎是一个经典的分组