Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
I want to do this by simple document file rather then pdf control, that you did in attached zip file of https://forum.pdf-xchange.com/ ... 39#p109139 link.
so, it's possible??
if, yse than how??
Could you please explain in a few more details what problems are you currently experiencing? What changes have you made to the project so that you are attaching it here? As I have requested before, please describe precisely what you need and why do you need this. Please also note that we won't do the implementation and coding for you, we can just advice and guide you to the correct answer.
if, there is any other way to create thumbnail?
i don't want to load control on form. Without loading pdfcontrol on form it is possible?
i want to create thumbnail silently.
Our development team have asked me to convey to you that they are not here to code your application for you but to assist you with your coding (not providing it) and specifically related to our SDK.
You need to provide sample code that you have created and where you have issues that relate to our functionality.
Please provide code that you need help with and detailed explanation of where you are having issues - otherwise we cannot help.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Dim srcPage As PDFXEdit.IPXC_Page = CType(IPage, PDFXEdit.IPXC_Page)
Dim pageW, pageH As Double
srcPage.GetDimension(pageW, pageH)
Dim page_pixel_W, page_pixel_H As Integer
page_pixel_W = Pt2Pixel(pageW, dpi)
page_pixel_H = Pt2Pixel(pageH, dpi)
Dim iDestPage As PDFXEdit.IIXC_Page = ixcInst.Page_CreateEmpty(page_pixel_W, page_pixel_H, PDFXEdit.IXC_PageFormat.PageFormat_8RGB, Convert.ToUInt32(1))
Dim destRect As PDFXEdit.tagRECT
destRect.left = 0
destRect.bottom = 0
destRect.right = iDestPage.Width
destRect.top = iDestPage.Height
Dim srcPageMatrix As PDFXEdit.PXC_Matrix = srcPage.GetMatrix(PDFXEdit.PXC_BoxType.PBox_PageBox)
Dim srcRect As PDFXEdit.PXC_Rect = srcPage.Box(PDFXEdit.PXC_BoxType.PBox_PageBox)
srcPageMatrix.a = (destRect.right - destRect.left) / (srcRect.right - srcRect.left)
srcPageMatrix.d = (destRect.top - destRect.bottom) / (srcRect.top - srcRect.bottom)
Dim Image As Bitmap = New Bitmap(iDestPage.Rect.right - iDestPage.Rect.left, iDestPage.Rect.bottom - iDestPage.Rect.top)
Dim g As Graphics = Graphics.FromImage(Image)
g.Clear(Color.White)
Dim hdc As IntPtr = g.GetHdc()
Dim bb() = System.BitConverter.GetBytes(hdc.ToInt32())
Dim MyUint = System.BitConverter.ToUInt32(bb, 0)
In this Code i got only image with only black or other color when pass Uinteger in "Dim iDestPage As PDFXEdit.IIXC_Page = ixcInst.Page_CreateEmpty(page_pixel_W, page_pixel_H, PDFXEdit.IXC_PageFormat.PageFormat_8RGB, Convert.ToUInt32(1))" code.
I want to get actual image as pdf has, so what to do?
In this topic, where you took the sample from, the developer asks the same question, to which I have provided an answer: https://forum.pdf-xchange.com/ ... 32#p108032
Please try doing the same in your project and see whether it helps. When you will succeed with the Image then we will move to the byte.
In my Sample code,Thumbnail is generated with specified color in
Dim iDestPage As PDFXEdit.IIXC_Page = ixcInst.Page_CreateEmpty(page_pixel_W, page_pixel_H, PDFXEdit.IXC_PageFormat.PageFormat_8RGB, Convert.ToUInt32(1))
i want the thumbnail with actual pages as pdf has.
This thumbnail is used as page preview in our system.
Regretably we can only offer assistance related to the functionality and documentation of our SDK's. As this latest is a general coding issue and not related to the functionality of our SDK, you will need to seek assistance elsewhere.
With the best will in the world, from what we've seen so far, we're not entirely sure that our SDK's are suitable for your use; they are incredibly complex and not for novice developers. You will very likely need assistance from a more experienced developer in order to achieve what you need.
Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
The thing is that we will need to know where and how exactly is Byte() used. Can you send us the code inside of the XtraForm1(img) so that we would know what do you need inside that byte, only then we can advice further.
Dim Doc As PDFXEdit.IPXC_Document = m_pxcInst.OpenDocumentFrom(path, Nothing) ==> Throws An unhandled exception of type 'System.ArgumentException' occurred in WindowsApplication1.exe.
Here i pass image in "path" parameter. So, How to open image like jpg,png,tiff,tif,bmp and others?