Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task-935620-Need to add details for the editing capability for the combobox field #133

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.13.35617.110 d17.13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Saving-and-Restoring-the-PdfGraphics", "Saving-and-Restoring-the-PdfGraphics\Saving-and-Restoring-the-PdfGraphics.csproj", "{A81CE32D-AAEE-45DB-B18A-224639CAE5E1}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Enabling-Edit-Option-for-the-PdfComboboxField", "Enabling-Edit-Option-for-the-PdfComboboxField\Enabling-Edit-Option-for-the-PdfComboboxField.csproj", "{B042DC77-96A1-4EA8-9776-6F10B092BE24}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A81CE32D-AAEE-45DB-B18A-224639CAE5E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A81CE32D-AAEE-45DB-B18A-224639CAE5E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A81CE32D-AAEE-45DB-B18A-224639CAE5E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A81CE32D-AAEE-45DB-B18A-224639CAE5E1}.Release|Any CPU.Build.0 = Release|Any CPU
{B042DC77-96A1-4EA8-9776-6F10B092BE24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B042DC77-96A1-4EA8-9776-6F10B092BE24}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B042DC77-96A1-4EA8-9776-6F10B092BE24}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B042DC77-96A1-4EA8-9776-6F10B092BE24}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DEC52A59-B6AE-4347-84D1-1DCD62427AE9}
SolutionGuid = {BDBFE219-C7AF-4C85-A096-0F5DCDB0360E}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Adding_Document_Level_JavaScript_Actions</RootNamespace>
<RootNamespace>Enabling_Edit_Option_for_the_PdfComboboxField</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//Create a new PDf document

using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Interactive;
using Syncfusion.Drawing;

PdfDocument document = new PdfDocument();

//Creates a new page and adds it as the last page of the document

PdfPage page = document.Pages.Add();

PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f);

//Create a combo box

PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox");

positionComboBox.Editable = true;

positionComboBox.Bounds = new RectangleF(100, 115, 200, 20);

positionComboBox.Font = font;

positionComboBox.Editable = true;

//Add it to document

document.Form.Fields.Add(positionComboBox);

using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
{
//Save the PDF document to file stream.
document.Save(outputFileStream);
}
document.Close(true);

Loading